Changeset 4b995b92 in mainline for uspace/srv/vfs/vfs_ops.c


Ignore:
Timestamp:
2010-01-24T13:02:17Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
203a090
Parents:
c1a8e5e6
Message:

Introduce the L_NOCROSS_LAST_MP lookup flag and treat the last mount point node
according to it in libfs_lookup().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rc1a8e5e6 r4b995b92  
    459459        /*
    460460         * Make sure that we are called with exactly one of L_FILE and
    461          * L_DIRECTORY. Make sure that the user does not pass L_OPEN.
     461         * L_DIRECTORY. Make sure that the user does not pass L_OPEN or
     462         * L_NOCROSS_LAST_MP.
    462463         */
    463464        if (((lflag & (L_FILE | L_DIRECTORY)) == 0) ||
    464465            ((lflag & (L_FILE | L_DIRECTORY)) == (L_FILE | L_DIRECTORY)) ||
    465             ((lflag & L_OPEN) != 0)) {
     466            (lflag & L_OPEN) || (lflag & L_NOCROSS_LAST_MP)) {
    466467                ipc_answer_0(rid, EINVAL);
    467468                return;
Note: See TracChangeset for help on using the changeset viewer.