Changeset 5a58ae2 in mainline
- Timestamp:
- 2011-03-17T20:30:51Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d04324
- Parents:
- e54ba607
- Location:
- uspace/srv/fs/minixfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs.h
re54ba607 r5a58ae2 100 100 extern void mfs_mounted(ipc_callid_t rid, ipc_call_t *request); 101 101 extern void mfs_mount(ipc_callid_t rid, ipc_call_t *request); 102 extern bool mfs_is_directory(fs_node_t *fsnode); 102 103 extern devmap_handle_t mfs_device_get(fs_node_t *fsnode); 103 104 extern int mfs_get_instance(devmap_handle_t handle, -
uspace/srv/fs/minixfs/mfs_ops.c
re54ba607 r5a58ae2 45 45 46 46 libfs_ops_t mfs_libfs_ops = { 47 .device_get = mfs_device_get 47 .device_get = mfs_device_get, 48 .is_directory = mfs_is_directory 48 49 }; 49 50 … … 202 203 } 203 204 205 bool mfs_is_directory(fs_node_t *fsnode) 206 { 207 struct mfs_node *node = fsnode->data; 208 struct mfs_sb_info *sbi = node->instance->sbi; 209 210 if (sbi->fs_version == MFS_VERSION_V1) 211 return S_ISDIR(node->ino->i_mode); 212 else 213 return S_ISDIR(node->ino2->i_mode); 214 } 215 204 216 /* 205 217 * Find a filesystem instance given the devmap handle
Note:
See TracChangeset
for help on using the changeset viewer.