diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-26 16:55:51 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2022-04-26 16:55:51 -0700 |
commit | 3af62be37cd2407da1f44396cd9390bd560ed01f (patch) | |
tree | 8a7b38d87b9103e17210b8c78d19531ecfaa6c5f /lib | |
parent | 4d9c009c343ce1247d9df583b22110f348201b3d (diff) | |
download | f2fs-tools-3af62be37cd2407da1f44396cd9390bd560ed01f.tar.gz |
f2fs-tools: show segment/section layout correctly
This patch fixes wrong segment/section print-outs.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libf2fs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libf2fs.c b/lib/libf2fs.c index afdbbbe..961e70c 100644 --- a/lib/libf2fs.c +++ b/lib/libf2fs.c @@ -1272,6 +1272,9 @@ int f2fs_get_f2fs_info(void) c.segs_per_zone = c.segs_per_sec * c.secs_per_zone; + if (c.func != MKFS) + return 0; + MSG(0, "Info: Segments per section = %d\n", c.segs_per_sec); MSG(0, "Info: Sections per zone = %d\n", c.secs_per_zone); MSG(0, "Info: sector size = %u\n", c.sector_size); |