Skip to content

Commit ca71b53

Browse files
committed
test/utils: fix image creation setup
Between ext2fs 1.46.5 (Ubuntu 22.04) and ext2fs 1.45.5 (Ubuntu 20.04), there is a breaking change in the default size when creating inode. > Mke2fs now creates 256 byte inodes by default for > all non-GNU Hurd file systems. > (Previously small file systems would be created using 128 byte inodes.) Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent e304196 commit ca71b53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/update_engine/test_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void CreateEmptyExtImageAtPath(const string& path,
189189
EXPECT_EQ(0, System(StringPrintf("dd if=/dev/zero of=%s"
190190
" seek=%zu bs=1 count=1",
191191
path.c_str(), size)));
192-
EXPECT_EQ(0, System(StringPrintf("mkfs.ext2 -b %d -F %s",
192+
EXPECT_EQ(0, System(StringPrintf("mkfs.ext2 -b %d -F %s -I 128",
193193
block_size, path.c_str())));
194194
}
195195

0 commit comments

Comments
 (0)