Skip to contentSkip to conversation

xfs/161: adapt the test case for 64k FS blocksize

PATCH Ritesh Harjani (IBM) 1 participant 1 message May 7, 2024

lore
Share & tools
lore
#0 lore raw
Quoted 16 lines · Pankaj Raghav (Samsung)

From: Pankaj Raghav <[email protected]>

This test fails when xfs is formatted with 64k filesystem block size*. It fails because the soft quota is not exceeded with the hardcoded 64k pwrite, thereby, the grace time is not set. Even though soft quota is set to 12k for uid1, it is rounded up to the nearest blocksize.

*** Report for user quotas on device /dev/sdb3
Block grace time: 7days; Inode grace time: 7days
Block limits File limits
User used soft hard grace used soft hard grace
----------------------------------------------------------------------

0        --       0       0       0      0       3     0     0      0
1        --      64      64    1024      0       1     0     0      0
2        --      64       0       0      0       1     0     0      0
Quoted 7 lines

Adapt the pwrite to do more than 64k write when the FS blocksize is 64k.

Cap the blksz to be at least 64k to retain the same behaviour as before for smaller filesystem blocksizes.

* This happens even on a 64k pagesize system and it is not related to LBS effort.

Indeed! Thanks for fixing this for 64k bs. Please feel free to add -