summaryrefslogtreecommitdiffstats
path: root/upstream/mageia-cauldron/man8/fsck.btrfs.8
blob: bbb47cc339da150b4af0f37b98dffb804488cb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "FSCK.BTRFS" "8" "Mar 10, 2024" "6.7.1" "BTRFS"
.SH NAME
fsck.btrfs \- do nothing, successfully
.SH SYNOPSIS
.sp
\fBfsck.btrfs\fP [\-aApy] [<device>...]
.SH DESCRIPTION
.sp
\fBfsck.btrfs\fP is a type of utility that should exist for any filesystem and is
called during system setup when the corresponding \fB/etc/fstab\fP entries
contain non\-zero value for \fIfs_passno\fP, see \fBfstab(5)\fP for more.
.sp
Traditional filesystems need to run their respective fsck utility in case the
filesystem was not unmounted cleanly and the log needs to be replayed before
mount. This is not needed for BTRFS. You should set fs_passno to 0.
.sp
If you wish to check the consistency of a BTRFS filesystem or repair a damaged
filesystem, see \fI\%btrfs\-check(8)\fP\&. By default filesystem consistency is checked,
the repair mode is enabled via the \fI\-\-repair\fP option (use with care!).
.SH OPTIONS
.sp
The options are all the same and detect if \fBfsck.btrfs\fP is executed in
non\-interactive mode and exits with success, otherwise prints a message about
btrfs check.
.SH EXIT STATUS
.sp
There are two possible exit codes returned:
.INDENT 0.0
.TP
.B 0
No error
.TP
.B 8
Operational error, e.g. device does not exist
.UNINDENT
.SH FILES
.sp
\fB/etc/fstab\fP
.SH SEE ALSO
.sp
\fI\%btrfs(8)\fP,
\fBfsck(8)\fP,
\fBfstab(5)\fP
.\" Generated by docutils manpage writer.
.