diff options
author | Karel Zak | 2013-11-04 10:50:48 +0100 |
---|---|---|
committer | Karel Zak | 2013-11-04 10:50:48 +0100 |
commit | 889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12 (patch) | |
tree | 71c0d942974d35487a5bd8028d1f0cd120b1f21e /libmount/src/context_mount.c | |
parent | libblkid: fix swap-area version (diff) | |
download | kernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.tar.gz kernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.tar.xz kernel-qcow2-util-linux-889fc9fe3ab3197cbe6a2e53fcc8c0fd96bc5b12.zip |
libmount: allow to use -s (sloppy) for all external helpers
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/context_mount.c')
-rw-r--r-- | libmount/src/context_mount.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 967ec336a..ffea65354 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -518,12 +518,7 @@ static int exec_helper(struct libmnt_context *cxt) args[i++] = mnt_fs_get_srcpath(cxt->fs);/* 2 */ args[i++] = mnt_fs_get_target(cxt->fs); /* 3 */ - /* - * TODO: remove the exception for "nfs", -s is documented - * for years and should be usable everywhere. - */ - if (mnt_context_is_sloppy(cxt) && - type && startswith(type, "nfs")) + if (mnt_context_is_sloppy(cxt)) args[i++] = "-s"; /* 4 */ if (mnt_context_is_fake(cxt)) args[i++] = "-f"; /* 5 */ |