diff options
author | Karel Zak | 2014-01-06 09:02:36 +0100 |
---|---|---|
committer | Karel Zak | 2014-01-06 09:02:36 +0100 |
commit | 961d69f79973d60811c172caee6ce661f5d4cd31 (patch) | |
tree | 380a28fac96cc83dcfb1ff1fe776f37d216c5e5a /sys-utils/losetup.c | |
parent | man: Syntax and spelling fixes. (diff) | |
download | kernel-qcow2-util-linux-961d69f79973d60811c172caee6ce661f5d4cd31.tar.gz kernel-qcow2-util-linux-961d69f79973d60811c172caee6ce661f5d4cd31.tar.xz kernel-qcow2-util-linux-961d69f79973d60811c172caee6ce661f5d4cd31.zip |
losetup, mount: remove --pass-fd at all
The option is unsupported since v2.23, let's cleanup man pages and
code to remove it at all.
Reported-by: "Dale R. Worley" <worley@alum.mit.edu>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r-- | sys-utils/losetup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c index 70d9155c0..088652f77 100644 --- a/sys-utils/losetup.c +++ b/sys-utils/losetup.c @@ -451,7 +451,6 @@ int main(int argc, char **argv) { "offset", 1, 0, 'o' }, { "output", 1, 0, 'O' }, { "sizelimit", 1, 0, OPT_SIZELIMIT }, - { "pass-fd", 1, 0, 'p' }, { "partscan", 0, 0, 'P' }, { "read-only", 0, 0, 'r' }, { "raw", 0, 0, OPT_RAW }, @@ -477,7 +476,7 @@ int main(int argc, char **argv) if (loopcxt_init(&lc, 0)) err(EXIT_FAILURE, _("failed to initialize loopcxt")); - while ((c = getopt_long(argc, argv, "ac:d:De:E:fhj:lno:O:p:PrvV", + while ((c = getopt_long(argc, argv, "ac:d:De:E:fhj:lno:O:PrvV", longopts, NULL)) != -1) { err_exclusive_options(c, longopts, excl, excl_st); @@ -537,9 +536,6 @@ int main(int argc, char **argv) outarg = optarg; list = 1; break; - case 'p': - warn(_("--pass-fd is no longer supported")); - break; case 'P': lo_flags |= LO_FLAGS_PARTSCAN; break; |