Changes in uspace/lib/ext4/src/superblock.c [38d150e:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/src/superblock.c
r38d150e rb7fd2a0 1127 1127 * 1128 1128 */ 1129 int ext4_superblock_read_direct(service_id_t service_id, ext4_superblock_t **sb)1129 errno_t ext4_superblock_read_direct(service_id_t service_id, ext4_superblock_t **sb) 1130 1130 { 1131 1131 /* Allocated memory for superblock structure */ … … 1135 1135 1136 1136 /* Read data from block device */ 1137 int rc = block_read_bytes_direct(service_id, EXT4_SUPERBLOCK_OFFSET,1137 errno_t rc = block_read_bytes_direct(service_id, EXT4_SUPERBLOCK_OFFSET, 1138 1138 EXT4_SUPERBLOCK_SIZE, data); 1139 1139 … … 1157 1157 * 1158 1158 */ 1159 int ext4_superblock_write_direct(service_id_t service_id, ext4_superblock_t *sb)1159 errno_t ext4_superblock_write_direct(service_id_t service_id, ext4_superblock_t *sb) 1160 1160 { 1161 1161 /* Load physical block size from block device */ 1162 1162 size_t phys_block_size; 1163 int rc = block_get_bsize(service_id, &phys_block_size);1163 errno_t rc = block_get_bsize(service_id, &phys_block_size); 1164 1164 if (rc != EOK) 1165 1165 return rc; … … 1199 1199 * 1200 1200 */ 1201 int ext4_superblock_check_sanity(ext4_superblock_t *sb)1201 errno_t ext4_superblock_check_sanity(ext4_superblock_t *sb) 1202 1202 { 1203 1203 if (ext4_superblock_get_magic(sb) != EXT4_SUPERBLOCK_MAGIC)
Note:
See TracChangeset
for help on using the changeset viewer.