Skip to content

Commit

Permalink
imp: adds strict hole reporting for zfs < 2.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski committed Dec 10, 2022
1 parent d4f5c12 commit bc9be9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nix/metal/bitteProfile/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ in {
JobTimeoutSec = "600s";
JobRunningTimeoutSec = "600s";
};

# Remove when ZFS >= 2.1.5
# Ref:
# https://github.com/openzfs/zfs/pull/12746
system.activationScripts.zfsAccurateHoleReporting = {
text = ''
echo 1 > /sys/module/zfs/parameters/zfs_dmu_offset_next_sync
'';
deps = [];
};
})
];

Expand Down

0 comments on commit bc9be9c

Please sign in to comment.