Changeset cead2aa in mainline for uspace/srv/vfs/vfs_lookup.c


Ignore:
Timestamp:
2010-12-21T16:54:02Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
357b5f5, 8b4e203
Parents:
c2f4b6b
Message:

Fix the return value of vfs_lookup_internal() when the "result"
parameter is NULL. Currently, the return value encodes the fs_handle
of the file system which answered the call, so when "result" is NULL,
and the return value is positive, vfs_lookup_internal() needs to return
EOK.

File:
1 edited

Legend:

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

    rc2f4b6b rcead2aa  
    179179        fibril_mutex_unlock(&plb_mutex);
    180180       
    181         if (((int) rc < EOK) || (!result))
     181        if ((int) rc < EOK)
    182182                return (int) rc;
     183
     184        if (!result)
     185                return EOK;
    183186       
    184187        result->triplet.fs_handle = (fs_handle_t) rc;
Note: See TracChangeset for help on using the changeset viewer.