summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--man/crypttab.xml2
-rw-r--r--src/cryptsetup/cryptsetup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/man/crypttab.xml b/man/crypttab.xml
index 5aade57c42..15c86d3897 100644
--- a/man/crypttab.xml
+++ b/man/crypttab.xml
@@ -112,7 +112,7 @@
<variablelist class='crypttab-options'>
<varlistentry>
- <term><varname>allow-discards</varname></term>
+ <term><varname>discard</varname></term>
<listitem><para>Allow discard requests to be
passed through the encrypted block device. This
diff --git a/src/cryptsetup/cryptsetup.c b/src/cryptsetup/cryptsetup.c
index 3a2cfe459b..ba0fdbc8e8 100644
--- a/src/cryptsetup/cryptsetup.c
+++ b/src/cryptsetup/cryptsetup.c
@@ -129,7 +129,7 @@ static int parse_one_option(const char *option) {
opt_readonly = true;
else if (streq(option, "verify"))
opt_verify = true;
- else if (streq(option, "allow-discards"))
+ else if (streq(option, "allow-discards") || streq(option, "discard"))
opt_discards = true;
else if (streq(option, "luks"))
opt_type = CRYPT_LUKS1;