Rev 2852 | Rev 2863 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2852 | Rev 2857 | ||
|---|---|---|---|
| Line 196... | Line 196... | ||
| 196 | nodep = ops->node_get(dev_handle, |
196 | nodep = ops->node_get(dev_handle, |
| 197 | index, ops->index_get(cur)); |
197 | index, ops->index_get(cur)); |
| 198 | if (nodep) { |
198 | if (nodep) { |
| 199 | if (!ops->link(cur, nodep, component)) { |
199 | if (!ops->link(cur, nodep, component)) { |
| 200 | if (lflag & L_CREATE) |
200 | if (lflag & L_CREATE) |
| 201 | ops->destroy(nodep); |
201 | (void)ops->destroy(nodep); |
| 202 | ipc_answer_0(rid, ENOSPC); |
202 | ipc_answer_0(rid, ENOSPC); |
| 203 | } else { |
203 | } else { |
| 204 | ipc_answer_5(rid, EOK, |
204 | ipc_answer_5(rid, EOK, |
| 205 | fs_handle, dev_handle, |
205 | fs_handle, dev_handle, |
| 206 | ops->index_get(nodep), |
206 | ops->index_get(nodep), |
| Line 265... | Line 265... | ||
| 265 | nodep = ops->node_get(dev_handle, index, |
265 | nodep = ops->node_get(dev_handle, index, |
| 266 | ops->index_get(cur)); |
266 | ops->index_get(cur)); |
| 267 | if (nodep) { |
267 | if (nodep) { |
| 268 | if (!ops->link(cur, nodep, component)) { |
268 | if (!ops->link(cur, nodep, component)) { |
| 269 | if (lflag & L_CREATE) |
269 | if (lflag & L_CREATE) |
| 270 | ops->destroy(nodep); |
270 | (void)ops->destroy(nodep); |
| 271 | ipc_answer_0(rid, ENOSPC); |
271 | ipc_answer_0(rid, ENOSPC); |
| 272 | } else { |
272 | } else { |
| 273 | ipc_answer_5(rid, EOK, |
273 | ipc_answer_5(rid, EOK, |
| 274 | fs_handle, dev_handle, |
274 | fs_handle, dev_handle, |
| 275 | ops->index_get(nodep), |
275 | ops->index_get(nodep), |