mirror of
https://github.com/systemd/systemd.git
synced 2025-02-02 13:47:27 +03:00
systemd-cryptsetup: makes “discard” a synonym for “allow-discards”
systemd-cryptsetup recognizes option 'allow-discards' in /etc/crypttab to enable TRIM passthrough to underlying encrypted device. In Debian this option was changed to 'discard' to avoid hyphen in option name. (see: #648868 and `man crypttab`). [zj: update crypttab(5) too, making "discard" the default.]
This commit is contained in:
parent
3e7f60ab32
commit
1acbb95c2b
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user