Changeset 5ab597d in mainline
- Timestamp:
- 2008-08-22T19:44:52Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- be8f92d
- Parents:
- 2e4bd1f
- Location:
- uspace/srv
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/fat/fat_ops.c
r2e4bd1f r5ab597d 738 738 rootp->firstc = FAT_CLST_ROOT; 739 739 rootp->refcnt = 1; 740 rootp->lnkcnt = 0; /* FS root is not linked */ 740 741 rootp->size = rde * sizeof(fat_dentry_t); 741 742 rootp->idx = ridxp; … … 744 745 futex_up(&ridxp->lock); 745 746 746 ipc_answer_ 0(rid, EOK);747 ipc_answer_3(rid, EOK, ridxp->index, rootp->size, rootp->lnkcnt); 747 748 } 748 749 -
uspace/srv/fs/tmpfs/tmpfs_ops.c
r2e4bd1f r5ab597d 234 234 return false; 235 235 } 236 root->lnkcnt = 1;236 root->lnkcnt = 0; /* FS root is not linked */ 237 237 return true; 238 238 } … … 406 406 if (dev_handle >= 0) { 407 407 if (tmpfs_restore(dev_handle)) 408 ipc_answer_0(rid, EOK); 408 ipc_answer_3(rid, EOK, root->index, root->size, 409 root->lnkcnt); 409 410 else 410 411 ipc_answer_0(rid, ELIMIT); 411 412 } else { 412 ipc_answer_0(rid, EOK);413 ipc_answer_3(rid, EOK, root->index, root->size, root->lnkcnt); 413 414 } 414 415 } -
uspace/srv/vfs/vfs_ops.c
r2e4bd1f r5ab597d 206 206 /* We still don't have the root file system mounted. */ 207 207 if ((size == 1) && (buf[0] == '/')) { 208 vfs_lookup_res_t mr_res; 209 vfs_node_t *mr_node; 210 ipcarg_t rindex; 211 ipcarg_t rsize; 212 ipcarg_t rlnkcnt; 213 208 214 /* 209 215 * For this simple, but important case, … … 214 220 /* Tell the mountee that it is being mounted. */ 215 221 phone = vfs_grab_phone(fs_handle); 216 rc = async_req_1_ 0(phone, VFS_MOUNTED,217 (ipcarg_t) dev_handle );222 rc = async_req_1_3(phone, VFS_MOUNTED, 223 (ipcarg_t) dev_handle, &rindex, &rsize, &rlnkcnt); 218 224 vfs_release_phone(phone); 219 220 if (rc == EOK) { 221 rootfs.fs_handle = fs_handle; 222 rootfs.dev_handle = dev_handle; 225 226 if (rc != EOK) { 227 futex_up(&rootfs_futex); 228 ipc_answer_0(rid, rc); 229 return; 223 230 } 224 231 232 mr_res.triplet.fs_handle = fs_handle; 233 mr_res.triplet.dev_handle = dev_handle; 234 mr_res.triplet.index = (fs_index_t) rindex; 235 mr_res.size = (size_t) rsize; 236 mr_res.lnkcnt = (unsigned) rlnkcnt; 237 238 rootfs.fs_handle = fs_handle; 239 rootfs.dev_handle = dev_handle; 225 240 futex_up(&rootfs_futex); 241 242 /* Add reference to the mounted root. */ 243 mr_node = vfs_node_get(&mr_res); 244 assert(mr_node); 245 226 246 ipc_answer_0(rid, rc); 227 247 return;
Note:
See TracChangeset
for help on using the changeset viewer.