Skip to content

Commit bc9be9c

Browse files
committed
imp: adds strict hole reporting for zfs < 2.1.5
* Ref: openzfs/zfs/pull/12746
1 parent d4f5c12 commit bc9be9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

nix/metal/bitteProfile/default.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ in {
6060
JobTimeoutSec = "600s";
6161
JobRunningTimeoutSec = "600s";
6262
};
63+
64+
# Remove when ZFS >= 2.1.5
65+
# Ref:
66+
# https://github.com/openzfs/zfs/pull/12746
67+
system.activationScripts.zfsAccurateHoleReporting = {
68+
text = ''
69+
echo 1 > /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
70+
'';
71+
deps = [];
72+
};
6373
})
6474
];
6575

0 commit comments

Comments
 (0)