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


Ignore:
Timestamp:
2008-11-29T15:39:24Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dfd77382
Parents:
abd36f7
Message:

Hold the namespace_rwlock during readdir().

File:
1 edited

Legend:

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

    rabd36f7 rb17186d  
    183183                result->size = (size_t) IPC_GET_ARG4(answer);
    184184                result->lnkcnt = (unsigned) IPC_GET_ARG5(answer);
     185                if (lflag & L_FILE)
     186                        result->type = VFS_NODE_FILE;
     187                else if (lflag & L_DIRECTORY)
     188                        result->type = VFS_NODE_DIRECTORY;
     189                else
     190                        result->type = VFS_NODE_UNKNOWN;
    185191        }
    186192
Note: See TracChangeset for help on using the changeset viewer.