From: Steve Muckle <smuckle@google.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] syscalls/statx01: loosen the stx_blocks check
Date: Thu, 25 Jul 2019 17:07:27 -0700 [thread overview]
Message-ID: <20190726000727.16842-1-smuckle@google.com> (raw)
Extended attributes may cause an extra block to be allocated for a file.
Loosen the test to accommodate this.
Signed-off-by: Steve Muckle <smuckle@google.com>
---
testcases/kernel/syscalls/statx/statx01.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/statx/statx01.c b/testcases/kernel/syscalls/statx/statx01.c
index 23ea99b4a..c3ba94394 100644
--- a/testcases/kernel/syscalls/statx/statx01.c
+++ b/testcases/kernel/syscalls/statx/statx01.c
@@ -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
--
2.22.0.709.g102302147b-goog
next reply other threads:[~2019-07-26 0:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-26 0:07 Steve Muckle [this message]
2019-07-26 9:04 ` [LTP] [PATCH v2] syscalls/statx01: loosen the stx_blocks check Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190726000727.16842-1-smuckle@google.com \
--to=smuckle@google.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.