Fix bug that would prevent us from reserving right amount of space.
Bug: 132403230 Test: inspect dmesg output: [ 10.762678] init: [libfs_mgr]Setting reserved block count on /dev/block/dm-2 to 32768 [ 10.782652] tune2fs: Setting reserved blocks gid to 1065\x0a [ 10.782655] tune2fs: Setting reserved blocks count to 32768\x0a Change-Id: Id366d478bdd8a748bb1ba97d08a3b52e3cdd1efb Merged-In: Id366d478bdd8a748bb1ba97d08a3b52e3cdd1efb
This commit is contained in:
parent
67231474fe
commit
20c4cfaa81
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ static void tune_quota(const std::string& blk_device, const FstabEntry& entry,
|
|||
// Set the number of reserved filesystem blocks if needed.
|
||||
static void tune_reserved_size(const std::string& blk_device, const FstabEntry& entry,
|
||||
const struct ext4_super_block* sb, int* fs_stat) {
|
||||
if (entry.reserved_size != 0) {
|
||||
if (entry.reserved_size == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue