Changes in uspace/srv/fs/ext4fs/ext4fs_ops.c [d1538a1:5930e3f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/ext4fs/ext4fs_ops.c
rd1538a1 r5930e3f 101 101 static bool ext4fs_is_file(fs_node_t *node); 102 102 static service_id_t ext4fs_service_get(fs_node_t *node); 103 static long ext4fs_size_block(service_id_t); 103 104 104 105 /* Static variables */ … … 836 837 ext4fs_node_t *enode = EXT4FS_NODE(fn); 837 838 return enode->instance->service_id; 839 } 840 841 long ext4fs_size_block(service_id_t service_id) 842 { 843 ext4fs_instance_t *inst; 844 int rc = ext4fs_instance_get(service_id, &inst); 845 if (rc != EOK) 846 return rc; 847 if (NULL == inst) 848 return ENOENT; 849 ext4_superblock_t *sb = inst->filesystem->superblock; 850 uint32_t block_size = ext4_superblock_get_block_size(sb); 851 return block_size; 838 852 } 839 853 … … 857 871 .is_directory = ext4fs_is_directory, 858 872 .is_file = ext4fs_is_file, 859 .service_get = ext4fs_service_get 873 .service_get = ext4fs_service_get, 874 .size_block = ext4fs_size_block 860 875 }; 861 876
Note:
See TracChangeset
for help on using the changeset viewer.