diff options
Diffstat (limited to 'misc-utils/lsblk.c')
| -rw-r--r-- | misc-utils/lsblk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc-utils/lsblk.c b/misc-utils/lsblk.c index d466a25b18..2a6044c0e5 100644 --- a/misc-utils/lsblk.c +++ b/misc-utils/lsblk.c @@ -786,7 +786,7 @@ static char *get_vfs_attribute(struct blkdev_cxt *cxt, int id) if (!cxt->fsstat.f_blocks) { mnt = lsblk_device_get_mountpoint(cxt); - if (!mnt) + if (!mnt || cxt->is_swap) return NULL; if (statvfs(mnt, &cxt->fsstat) != 0) return NULL; |
