Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

selftests/mount_settattr: ensure that ext4 filesystem can be created

Filesystem too small for a journal
mount: /mnt/D/: mount failed: Operation not permitted.
mount_setattr_test.c:1076:idmap_mount_tree_invalid:Expected system("mount -o loop -t ext4 /mnt/C/ext4.img /mnt/D/") (256) == 0 (0)

Signed-off-by: Christian Brauner <brauner@kernel.org>

+1 -1
+1 -1
tools/testing/selftests/mount_setattr/mount_setattr_test.c
··· 1071 1071 ASSERT_EQ(mkdir("/mnt/D", 0777), 0); 1072 1072 img_fd = openat(-EBADF, "/mnt/C/ext4.img", O_CREAT | O_WRONLY, 0600); 1073 1073 ASSERT_GE(img_fd, 0); 1074 - ASSERT_EQ(ftruncate(img_fd, 1024 * 2048), 0); 1074 + ASSERT_EQ(ftruncate(img_fd, 2147483648 /* 2 GB */), 0); 1075 1075 ASSERT_EQ(system("mkfs.ext4 -q /mnt/C/ext4.img"), 0); 1076 1076 ASSERT_EQ(system("mount -o loop -t ext4 /mnt/C/ext4.img /mnt/D/"), 0); 1077 1077 ASSERT_EQ(close(img_fd), 0);