2013-03-16 20:54:32 +00:00
|
|
|
'\" 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.
|
|
|
|
.\"
|
2021-03-31 17:49:56 +00:00
|
|
|
.TH FSCK.ZFS 8 "Mar 27, 2021" OpenZFS
|
2013-03-16 20:54:32 +00:00
|
|
|
|
|
|
|
.SH NAME
|
2014-03-05 10:07:02 +00:00
|
|
|
fsck.zfs \- Dummy ZFS filesystem checker.
|
2013-03-16 20:54:32 +00:00
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.LP
|
2021-03-31 17:49:56 +00:00
|
|
|
.BI "fsck.zfs [" "options" "] <" "dataset" ">…"
|
2013-03-16 20:54:32 +00:00
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.LP
|
2021-03-31 17:49:56 +00:00
|
|
|
\fBfsck.zfs\fR is a thin shell wrapper that at most checks the status of a
|
|
|
|
dataset's container pool. It is installed by OpenZFS because some Linux
|
|
|
|
distributions expect a fsck helper for all filesystems.
|
|
|
|
.LP
|
|
|
|
If more than one \fIdataset\fR is specified, each is checked in turn
|
|
|
|
and results binary ored.
|
2013-03-16 20:54:32 +00:00
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
.HP
|
2021-03-31 17:49:56 +00:00
|
|
|
All \fIoptions\fR are ignored.
|
2013-03-16 20:54:32 +00:00
|
|
|
|
|
|
|
.SH "NOTES"
|
|
|
|
.LP
|
|
|
|
ZFS datasets are checked by running \fBzpool scrub\fR on the
|
|
|
|
containing pool. An individual ZFS dataset is never checked
|
|
|
|
independently of its pool, which is unlike a regular filesystem.
|
|
|
|
|
|
|
|
.LP
|
2021-03-31 17:49:56 +00:00
|
|
|
However, the
|
|
|
|
.BR fsck (8)
|
|
|
|
interface still allows it to communicate some errors:
|
|
|
|
if the \fIdataset\fR is in a degraded pool, then \fBfsck.zfs\fR will
|
|
|
|
return exit code 4 to indicate an uncorrected filesystem error.
|
2013-03-16 20:54:32 +00:00
|
|
|
.LP
|
|
|
|
Similarly, if the \fIdataset\fR is in a faulted pool and has a legacy
|
2021-03-31 17:49:56 +00:00
|
|
|
/etc/fstab record, then \fBfsck.zfs\fR will return exit code 8 to
|
2013-03-16 20:54:32 +00:00
|
|
|
indicate a fatal operational error.
|
|
|
|
|
|
|
|
.SH "AUTHORS"
|
|
|
|
.LP
|
|
|
|
Darik Horn <dajhorn@vanadac.com>.
|
|
|
|
|
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR fsck (8),
|
|
|
|
.BR fstab (5),
|
2019-11-13 17:21:07 +00:00
|
|
|
.BR zpool-scrub (8)
|