From b755564539ea63ba1b5a2fb0aea148094251a2bb Mon Sep 17 00:00:00 2001 From: DavHau Date: Mon, 4 Sep 2023 23:02:07 +0200 Subject: [PATCH] examples: use zstd compression as default --- example/complex.nix | 2 +- example/zfs.nix | 2 +- tests/zfs.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/complex.nix b/example/complex.nix index ba6c92a..120721b 100644 --- a/example/complex.nix +++ b/example/complex.nix @@ -152,7 +152,7 @@ type = "zpool"; mode = "mirror"; rootFsOptions = { - compression = "lz4"; + compression = "zstd"; "com.sun:auto-snapshot" = "false"; }; mountpoint = "/"; diff --git a/example/zfs.nix b/example/zfs.nix index 8e85c96..8372753 100644 --- a/example/zfs.nix +++ b/example/zfs.nix @@ -48,7 +48,7 @@ type = "zpool"; mode = "mirror"; rootFsOptions = { - compression = "lz4"; + compression = "zstd"; "com.sun:auto-snapshot" = "false"; }; mountpoint = "/"; diff --git a/tests/zfs.nix b/tests/zfs.nix index bb29e98..da2e49c 100644 --- a/tests/zfs.nix +++ b/tests/zfs.nix @@ -19,8 +19,8 @@ diskoLib.testLib.makeDiskoTest { out == expected_value ), f"Expected {property}={expected_value} on {ds}, got: {out}" - assert_property("zroot", "compression", "lz4") - assert_property("zroot/zfs_fs", "compression", "lz4") + assert_property("zroot", "compression", "zstd") + assert_property("zroot/zfs_fs", "compression", "zstd") assert_property("zroot", "com.sun:auto-snapshot", "false") assert_property("zroot/zfs_fs", "com.sun:auto-snapshot", "true") assert_property("zroot/zfs_testvolume", "volsize", "10M")