Changeset 5a58ae2 in mainline for uspace/srv/fs/minixfs/mfs_ops.c
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.