ref: ab4ac2567203f642959e0ff8a88425254d121a52
parent: 6c6fb14455806704ea7814a31747ec551cb39928
author: ngkaho1234 <[email protected]>
date: Thu Feb 18 10:20:25 EST 2016
Fix assertion fault when disk space is full.
--- a/src/ext4_fs.c
+++ b/src/ext4_fs.c
@@ -1630,6 +1630,8 @@
rc = ext4_extent_get_blocks(inode_ref, *iblock, 1,
¤t_fsblk, true, NULL);
+ if (rc != EOK)
+ return rc;
*fblock = current_fsblk;
ext4_assert(*fblock);