]> git.proxmox.com Git - pve-installer.git/commitdiff
proxinstall, common: remove "off" as zfs checksum option
authorChristoph Heiss <c.heiss@proxmox.com>
Tue, 6 Feb 2024 13:12:26 +0000 (14:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Feb 2024 13:22:24 +0000 (14:22 +0100)
See also the thread at [0] for the initial discussion/idea.

Disabling checksums is considered an "extraordinarily bad idea" [1] (for
pretty obvious reason) and nobody should really ever use it.

Thus remove the option completely; just so that users cannot simply
disable checksum "for performance reasons" without knowing about the
implications of this.

As pointed out by Thomas, it can still be set to "off" after the
installation using the `zfs` tool, if really wanted.

[0] https://lists.proxmox.com/pipermail/pve-devel/2023-December/061188.html
[1] https://openzfs.github.io/openzfs-docs/Basic%20Concepts/Checksums.html#disabling-checksums

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxinstall
proxmox-installer-common/src/options.rs

index d6d5acbad6b3d7b042beaa4c65c267c48afbfc66..81dd3686ab28e265a4a9e8c0ca1f75d696eacf12 100755 (executable)
@@ -1145,7 +1145,7 @@ my $create_raid_advanced_grid = sub {
 
     my $combo_checksum = Gtk3::ComboBoxText->new();
     $combo_checksum->set_tooltip_text("zfs checksum algorithm for rpool dataset");
-    my $csum_opts = ["on", "off", "fletcher4", "sha256"];
+    my $csum_opts = ["on", "fletcher4", "sha256"];
     foreach my $opt (@$csum_opts) {
        $combo_checksum->append($opt, $opt);
     }
index 98cd90719997a9790f83de2780c9d829aadd99ca..1aa8f657319291086f2b0bcf40cb69aebdc3e01f 100644 (file)
@@ -145,7 +145,6 @@ pub const ZFS_COMPRESS_OPTIONS: &[ZfsCompressOption] = {
 pub enum ZfsChecksumOption {
     #[default]
     On,
-    Off,
     Fletcher4,
     Sha256,
 }
@@ -164,7 +163,7 @@ impl From<&ZfsChecksumOption> for String {
 
 pub const ZFS_CHECKSUM_OPTIONS: &[ZfsChecksumOption] = {
     use ZfsChecksumOption::*;
-    &[On, Off, Fletcher4, Sha256]
+    &[On, Fletcher4, Sha256]
 };
 
 #[derive(Clone, Debug)]