Changeset f7376cbf in mainline for uspace/srv/vfs/vfs_ops.c
- Timestamp:
- 2010-01-25T21:04:49Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ea44bd1
- Parents:
- ae75e2e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ops.c
rae75e2e3 rf7376cbf 459 459 * Lookup the mounted root and instantiate it. 460 460 */ 461 rc = vfs_lookup_internal(mp, L_ NONE, &mr_res, NULL);461 rc = vfs_lookup_internal(mp, L_ROOT, &mr_res, NULL); 462 462 if (rc != EOK) { 463 463 fibril_rwlock_write_unlock(&namespace_rwlock); … … 521 521 */ 522 522 523 /* 524 * The L_NOCROSS_LAST_MP flag is essential if we really want to 525 * lookup the mount point and not the mounted root. 526 */ 527 rc = vfs_lookup_internal(mp, L_NOCROSS_LAST_MP, &mp_res, NULL); 523 rc = vfs_lookup_internal(mp, L_MP, &mp_res, NULL); 528 524 free(mp); 529 525 if (rc != EOK) { … … 595 591 /* 596 592 * Make sure that we are called with exactly one of L_FILE and 597 * L_DIRECTORY. Make sure that the user does not pass L_OPEN or598 * L_ NOCROSS_LAST_MP.593 * L_DIRECTORY. Make sure that the user does not pass L_OPEN, 594 * L_ROOT or L_MP. 599 595 */ 600 596 if (((lflag & (L_FILE | L_DIRECTORY)) == 0) || 601 597 ((lflag & (L_FILE | L_DIRECTORY)) == (L_FILE | L_DIRECTORY)) || 602 (lflag & L_OPEN) || (lflag & L_NOCROSS_LAST_MP)) {598 (lflag & (L_OPEN | L_ROOT | L_MP))) { 603 599 ipc_answer_0(rid, EINVAL); 604 600 return;
Note:
See TracChangeset
for help on using the changeset viewer.