nixpkgs/nixos/modules/tasks/filesystems
Jakub Sokołowski c70f047315
nixos/zfs: assert no force import with hibernation
According to a ZFS issue about hibernation causing data corruption:
https://github.com/openzfs/zfs/issues/12842

The way this happens is if the system force imports a pool that was
suspended during hibernation. I've had this happen twice on NixOS and
I'd like to avoid having this happen again, to me or others.

To do this I've added an assertion that makes sure you can't have
`forceImportRoot` or `forceImportAll` enabled with `allowHibernation`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-17 13:11:23 +01:00
..
apfs.nix
bcachefs.nix
btrfs.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
cifs.nix
ecryptfs.nix
exfat.nix
ext.nix nixos: Add ext to fsPackages in stage 2 with systemd-initrd enabled 2022-11-20 22:30:01 -05:00
f2fs.nix
glusterfs.nix
jfs.nix nixos/jfs: correct broken toplevel reference 2022-10-06 19:26:13 +00:00
nfs.nix treewide: automatically md-convert option descriptions 2022-07-30 15:16:34 +02:00
ntfs.nix
reiserfs.nix
unionfs-fuse.nix
vboxsf.nix
vfat.nix
xfs.nix
zfs.nix nixos/zfs: assert no force import with hibernation 2022-12-17 13:11:23 +01:00