CDDL HEADER START
The contents of this file are subject to the terms of the
Common Development and Distribution License (the "License").
You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
or http://www.opensolaris.org/os/licensing.
See the License for the specific language governing permissions
and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each
file and include the License file at usr/src/OPENSOLARIS.LICENSE.
If applicable, add the following below this CDDL HEADER, with the
fields enclosed by brackets "[]" replaced with your own identifying
information: Portions Copyright [yyyy] [name of copyright owner]
CDDL HEADER END
Copyright 2013 Darik Horn <dajhorn@vanadac.com>. All rights reserved.
"fsck.zfs [" "options" "] <" "dataset" ">"
fsck.zfs is a shell stub that does nothing and always returns true. It is installed by ZoL because some Linux distributions expect a fsck helper for all filesystems.
All options and the dataset are ignored.
ZFS datasets are checked by running zpool scrub on the containing pool. An individual ZFS dataset is never checked independently of its pool, which is unlike a regular filesystem.
On some systems, if the dataset is in a degraded pool, then it might be appropriate for fsck.zfs to return exit code 4 to indicate an uncorrected filesystem error.
Similarly, if the dataset is in a faulted pool and has a legacy /etc/fstab record, then fsck.zfs should return exit code 8 to indicate a fatal operational error.
Darik Horn <dajhorn@vanadac.com>.