Changeset ea44bd1 in mainline


Ignore:
Timestamp:
2010-01-25T21:12:56Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6a4e972
Parents:
f7376cbf
Message:

When looking up the mount point node during vfs_mount() L_MP must be used
instead of L_DIRECTORY. Otherwise, if the same mount point is specified in a
consequent mount, lookup will return the mounted root instead of the actual
mount point node.

File:
1 edited

Legend:

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

    rf7376cbf rea44bd1  
    9292                }
    9393               
    94                 rc = vfs_lookup_internal(mp, L_DIRECTORY, &mp_res, NULL);
     94                rc = vfs_lookup_internal(mp, L_MP, &mp_res, NULL);
    9595                if (rc != EOK) {
    9696                        /* The lookup failed for some reason. */
Note: See TracChangeset for help on using the changeset viewer.