examples: use zstd compression as default

This commit is contained in:
DavHau 2023-09-04 23:02:07 +02:00
parent 1c38664f59
commit b755564539
3 changed files with 4 additions and 4 deletions

View File

@ -152,7 +152,7 @@
type = "zpool"; type = "zpool";
mode = "mirror"; mode = "mirror";
rootFsOptions = { rootFsOptions = {
compression = "lz4"; compression = "zstd";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
mountpoint = "/"; mountpoint = "/";

View File

@ -48,7 +48,7 @@
type = "zpool"; type = "zpool";
mode = "mirror"; mode = "mirror";
rootFsOptions = { rootFsOptions = {
compression = "lz4"; compression = "zstd";
"com.sun:auto-snapshot" = "false"; "com.sun:auto-snapshot" = "false";
}; };
mountpoint = "/"; mountpoint = "/";

View File

@ -19,8 +19,8 @@ diskoLib.testLib.makeDiskoTest {
out == expected_value out == expected_value
), f"Expected {property}={expected_value} on {ds}, got: {out}" ), f"Expected {property}={expected_value} on {ds}, got: {out}"
assert_property("zroot", "compression", "lz4") assert_property("zroot", "compression", "zstd")
assert_property("zroot/zfs_fs", "compression", "lz4") assert_property("zroot/zfs_fs", "compression", "zstd")
assert_property("zroot", "com.sun:auto-snapshot", "false") assert_property("zroot", "com.sun:auto-snapshot", "false")
assert_property("zroot/zfs_fs", "com.sun:auto-snapshot", "true") assert_property("zroot/zfs_fs", "com.sun:auto-snapshot", "true")
assert_property("zroot/zfs_testvolume", "volsize", "10M") assert_property("zroot/zfs_testvolume", "volsize", "10M")