Skip to contentSkip to conversation

syscalls/statx01: loosen the stx_blocks check

PATCH New Steve Muckle 2 participants 2 messages Jul 26, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 syscalls/statx01: loosen the stx_blocks check

Extended attributes may cause an extra block to be allocated for a file. Loosen the test to accommodate this.

---
 testcases/kernel/syscalls/statx/statx01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/statx/statx01.c +1 -1
index 23ea99b4a..c3ba94394 100644
@@ -92,7 +92,7 @@ static void test_normal_file(void)
 			buff.stx_mode, MODE);
 
 
-	if (buff.stx_blocks <= buff.stx_blksize/512)
+	if (buff.stx_blocks <= buff.stx_blksize/512 * 2)
 		tst_res(TPASS, "stx_blocks(%"PRIu64") is valid",
 			buff.stx_blocks);
 	else
Signature · 1 line
2.22.0.709.g102302147b-goog