Rev 2791 | Rev 2831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2791 | Rev 2792 | ||
---|---|---|---|
Line 194... | Line 194... | ||
194 | } |
194 | } |
195 | void *nodep; |
195 | void *nodep; |
196 | if (lflag & L_CREATE) |
196 | if (lflag & L_CREATE) |
197 | nodep = ops->create(lflag); |
197 | nodep = ops->create(lflag); |
198 | else |
198 | else |
199 | nodep = ops->node_get(fs_handle, |
199 | nodep = ops->node_get(dev_handle, |
200 | dev_handle, index); |
200 | index); |
201 | if (nodep) { |
201 | if (nodep) { |
202 | if (!ops->link(cur, nodep, component)) { |
202 | if (!ops->link(cur, nodep, component)) { |
203 | if (lflag & L_CREATE) |
203 | if (lflag & L_CREATE) |
204 | ops->destroy(nodep); |
204 | ops->destroy(nodep); |
205 | ipc_answer_0(rid, ENOSPC); |
205 | ipc_answer_0(rid, ENOSPC); |
Line 258... | Line 258... | ||
258 | 258 | ||
259 | void *nodep; |
259 | void *nodep; |
260 | if (lflag & L_CREATE) |
260 | if (lflag & L_CREATE) |
261 | nodep = ops->create(lflag); |
261 | nodep = ops->create(lflag); |
262 | else |
262 | else |
263 | nodep = ops->node_get(fs_handle, dev_handle, |
263 | nodep = ops->node_get(dev_handle, index); |
264 | index); |
- | |
265 | if (nodep) { |
264 | if (nodep) { |
266 | if (!ops->link(cur, nodep, component)) { |
265 | if (!ops->link(cur, nodep, component)) { |
267 | if (lflag & L_CREATE) |
266 | if (lflag & L_CREATE) |
268 | ops->destroy(nodep); |
267 | ops->destroy(nodep); |
269 | ipc_answer_0(rid, ENOSPC); |
268 | ipc_answer_0(rid, ENOSPC); |