diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2021-01-13 07:58:58 -0800 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@google.com> | 2021-01-26 23:36:18 -0800 |
commit | 230a75fbbdd2b0c92b5e15a896b8e11582f22c2f (patch) | |
tree | 4b4d02b9deef38afd091e20d133208e865f63118 | |
parent | c4ac1216223f1168121267caf5d16246541eb4dd (diff) | |
download | f2fs-tools-230a75fbbdd2b0c92b5e15a896b8e11582f22c2f.tar.gz |
check_f2fs: check atomic writes precisely
Recent f2fs adds atomic information, so we need to grep the exact one that we
want to see.
"
Skipped : atomic write 0 (0)
- inmem: 0, atomic IO: 0 (Max. 3), volatile IO: 0 (Max. 0)
"
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I7cb5cdc36dfc78638120b0cc19dd3ea20f55ad9a
-rw-r--r-- | tools/check_f2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/check_f2fs.c b/tools/check_f2fs.c index 579d4dd..4c4fb69 100644 --- a/tools/check_f2fs.c +++ b/tools/check_f2fs.c @@ -72,7 +72,7 @@ static int test_atomic_write(char *path) return -1; } printf("\tCheck : Atomic in-memory count: 2\n"); - run("cat /sys/kernel/debug/f2fs/status | grep atomic"); + run("cat /sys/kernel/debug/f2fs/status | grep \"atomic IO\""); printf("\tCommit ... \n"); ret = ioctl(db, F2FS_IOC_COMMIT_ATOMIC_WRITE); |