diff options
author | Karel Zak | 2014-08-01 12:09:33 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-01 12:09:33 +0200 |
commit | d990deac553f881c07832247021c734c3bf320db (patch) | |
tree | e4a6820be9d29c18a0ccf70a8bc9ede7dd955198 /lib/ismounted.c | |
parent | lib/sysfs: allow to write to sysfs attributes (diff) | |
download | kernel-qcow2-util-linux-d990deac553f881c07832247021c734c3bf320db.tar.gz kernel-qcow2-util-linux-d990deac553f881c07832247021c734c3bf320db.tar.xz kernel-qcow2-util-linux-d990deac553f881c07832247021c734c3bf320db.zip |
lib/ismounted: make it more compatible with lsblk output
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/ismounted.c')
-rw-r--r-- | lib/ismounted.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ismounted.c b/lib/ismounted.c index 8a882b27e..135ac29d6 100644 --- a/lib/ismounted.c +++ b/lib/ismounted.c @@ -318,7 +318,7 @@ int check_mount_point(const char *device, int *mount_flags, if (is_swap_device(device)) { *mount_flags = MF_MOUNTED | MF_SWAP; if (mtpt && mtlen) - strncpy(mtpt, "<swap>", mtlen); + strncpy(mtpt, "[SWAP]", mtlen); } else { #ifdef HAVE_MNTENT_H retval = check_mntent(device, mount_flags, mtpt, mtlen); |