Changeset 7d04324 in mainline for uspace/srv/fs/minixfs/mfs_ops.c
- Timestamp:
- 2011-03-17T21:10:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f213ae7
- Parents:
- 5a58ae2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/minixfs/mfs_ops.c
r5a58ae2 r7d04324 46 46 libfs_ops_t mfs_libfs_ops = { 47 47 .device_get = mfs_device_get, 48 .is_directory = mfs_is_directory 48 .is_directory = mfs_is_directory, 49 .is_file = mfs_is_file 49 50 }; 50 51 … … 214 215 } 215 216 217 bool mfs_is_file(fs_node_t *fsnode) 218 { 219 struct mfs_node *node = fsnode->data; 220 struct mfs_sb_info *sbi = node->instance->sbi; 221 222 if (sbi->fs_version == MFS_VERSION_V1) 223 return S_ISREG(node->ino->i_mode); 224 else 225 return S_ISREG(node->ino2->i_mode); 226 } 227 216 228 /* 217 229 * Find a filesystem instance given the devmap handle
Note:
See TracChangeset
for help on using the changeset viewer.