HomeFreeBSD

fsck.zfs: implement 4/8 exit codes as suggested in manpage

Description

fsck.zfs: implement 4/8 exit codes as suggested in manpage

Update the fsck.zfs helper to bubble up some already-known-about
errors if they are detected in the pool.

health=degraded => 4/"Filesystem errors left uncorrected"
health=faulted && dataset in /etc/fstab => 8/"Operational error"
pool not found => 8/"Operational error"
everything else => 0

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11806

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Mar 31 2021, 5:49 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Apr 7 2021, 8:24 PM
Parents
rGbfdd001679e2: Add compatibility file sets (ZoL 0.6.1, 0.6.4, OpenZFS 2.1)
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGdc52c0d725ee: fsck.zfs: implement 4/8 exit codes as suggested in manpage (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Apr 7 2021, 8:24 PM