diff --git a/include/ext4.h b/include/ext4.h index 3b88771..3694410 100644 --- a/include/ext4.h +++ b/include/ext4.h @@ -227,13 +227,13 @@ int ext4_get_sblock(const char *mount_point, struct ext4_sblock **sb); * @warning Default model of cache is write trough. It means that when You do: * * ext4_fopen(...); - * ext4_fwrie(...); + * ext4_fwrite(...); * < --- data is flushed to physical drive * * When you do: * ext4_cache_write_back(..., 1); * ext4_fopen(...); - * ext4_fwrie(...); + * ext4_fwrite(...); * < --- data is NOT flushed to physical drive * ext4_cache_write_back(..., 0); * < --- when write back mode is disabled all diff --git a/src/ext4_extent.c b/src/ext4_extent.c index dc56ba7..abac59b 100644 --- a/src/ext4_extent.c +++ b/src/ext4_extent.c @@ -45,7 +45,7 @@ #define EXT4_EXT_GET_LEN(ex) to_le16((ex)->block_count) #define EXT4_EXT_GET_LEN_UNWRITTEN(ex) \ - (EXT4_EXT_GET_LEN(ex) &= ~(EXT4_EXT_UNWRITTEN_MASK)) + (EXT4_EXT_GET_LEN(ex) & ~(EXT4_EXT_UNWRITTEN_MASK)) #define EXT4_EXT_SET_LEN(ex, count) \ ((ex)->block_count = to_le16(count)) diff --git a/src/ext4_fs.c b/src/ext4_fs.c index 42927c7..8e229ef 100644 --- a/src/ext4_fs.c +++ b/src/ext4_fs.c @@ -456,7 +456,7 @@ static int ext4_fs_init_inode_table(struct ext4_block_group_ref *bg_ref) memset(b.data, 0, block_size); ext4_trans_set_block_dirty(b.buf); - ext4_block_set(bg_ref->fs->bdev, &b); + rc = ext4_block_set(bg_ref->fs->bdev, &b); if (rc != EOK) return rc; }