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


Ignore:
Timestamp:
2013-07-29T11:44:35Z (11 years ago)
Author:
Jiri Zarevucky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
677745a
Parents:
9e9b168
Message:

Make the server oblivious to the link count. It is just another source of potential problems. Also clean up some confusion with file types and node refcount.

File:
1 edited

Legend:

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

    r9e9b168 rb7c62a9  
    280280        result->size =
    281281            (aoff64_t) MERGE_LOUP32(IPC_GET_ARG3(answer), IPC_GET_ARG4(answer));
    282         result->lnkcnt = (unsigned int) IPC_GET_ARG5(answer);
    283        
    284         if (lflag & L_FILE)
    285                 result->type = VFS_NODE_FILE;
    286         else if (lflag & L_DIRECTORY)
    287                 result->type = VFS_NODE_DIRECTORY;
    288         else
    289                 result->type = VFS_NODE_UNKNOWN;
    290 
     282        result->type = IPC_GET_ARG5(answer);
    291283        rc = EOK;
    292284
Note: See TracChangeset for help on using the changeset viewer.