chiark / gitweb /
systemd-cryptsetup: makes “discard” a synonym for “allow-discards”
[elogind.git] / src / cryptsetup / cryptsetup.c
index 3a2cfe459b16a619dab36fcd8e6c2105c256dda2..ba0fdbc8e88303d650798f44bbb67722e130f75a 100644 (file)
@@ -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;