summaryrefslogtreecommitdiffstats
path: root/sys-utils/losetup.c
diff options
context:
space:
mode:
authorKarel Zak2014-01-06 09:08:40 +0100
committerKarel Zak2014-01-06 09:08:40 +0100
commit5f68593d7a9a89e5a7960bdd87c739373aa988d6 (patch)
treeab2277873fb47c3f3b992dd163ca91d14a3375c3 /sys-utils/losetup.c
parentlosetup, mount: remove --pass-fd at all (diff)
downloadkernel-qcow2-util-linux-5f68593d7a9a89e5a7960bdd87c739373aa988d6.tar.gz
kernel-qcow2-util-linux-5f68593d7a9a89e5a7960bdd87c739373aa988d6.tar.xz
kernel-qcow2-util-linux-5f68593d7a9a89e5a7960bdd87c739373aa988d6.zip
losetup: remove warning for unsupported -e and -E
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/losetup.c')
-rw-r--r--sys-utils/losetup.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys-utils/losetup.c b/sys-utils/losetup.c
index 088652f77..e0c25d943 100644
--- a/sys-utils/losetup.c
+++ b/sys-utils/losetup.c
@@ -442,7 +442,6 @@ int main(int argc, char **argv)
{ "set-capacity", 1, 0, 'c' },
{ "detach", 1, 0, 'd' },
{ "detach-all", 0, 0, 'D' },
- { "encryption", 1, 0, 'e' },
{ "find", 0, 0, 'f' },
{ "help", 0, 0, 'h' },
{ "associated", 1, 0, 'j' },
@@ -476,7 +475,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:PrvV",
+ while ((c = getopt_long(argc, argv, "ac:d:Dfhj:lno:O:PrvV",
longopts, NULL)) != -1) {
err_exclusive_options(c, longopts, excl, excl_st);
@@ -505,10 +504,6 @@ int main(int argc, char **argv)
case 'D':
act = A_DELETE_ALL;
break;
- case 'E':
- case 'e':
- errx(EXIT_FAILURE, _("encryption not supported, use cryptsetup(8) instead"));
- break;
case 'f':
act = A_FIND_FREE;
break;