xref: /freebsd/sys/contrib/openzfs/man/man8/fsck.zfs.8 (revision eda14cbc264d6969b02f2b1994cef11148e914f1)
t

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 8 "2013 MAR 16" "ZFS on Linux" "System Administration Commands"
NAME
fsck.zfs - Dummy ZFS filesystem checker.
SYNOPSIS

"fsck.zfs [" "options" "] <" "dataset" ">"

DESCRIPTION

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.

OPTIONS

All options and the dataset are ignored.

"NOTES"

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.

"BUGS"

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.

"AUTHORS"

Darik Horn <dajhorn@vanadac.com>.

"SEE ALSO"
fsck (8), fstab (5), zpool-scrub (8)