Skip to content

Commit 37e64c7

Browse files
committed
syscalls/quotactl04.c: Specify inode size for prjquota feature
Background: 1) LTP uses default 256M filesystem to run test. 2) Mke2fs sets inode size to 128 bytes for small filesystem(e.g. 256M) usually. 3) Prjquota feature requires bigger inode size which is at least 256 bytes. New mke2fs can adjust inode size to 256 bytes automatically by commit 66aae96 in e2fsprogs, but old mke2fs cannot do it and reports the following error: ----------------------------------------------------------- mke2fs 1.43.4 (31-Jan-2017) mkfs.ext4: 128 byte inodes are too small for project quota; specify larger size ----------------------------------------------------------- Make quotactl04 with old mke2fs work by specifying inode size to 256 bytes. Reported-by: kernel test robot <[email protected]> Signed-off-by: Xiao Yang <[email protected]> Acked-by: Yang Xu <[email protected]>
1 parent 3aafd51 commit 37e64c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testcases/kernel/syscalls/quotactl/quotactl04.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static struct tcase {
102102

103103
static void setup(void)
104104
{
105-
const char *const fs_opts[] = {"-O quota,project", NULL};
105+
const char *const fs_opts[] = {"-I 256", "-O quota,project", NULL};
106106

107107
test_id = geteuid();
108108
SAFE_MKFS(tst_device->dev, tst_device->fs_type, fs_opts, NULL);

0 commit comments

Comments
 (0)