Debian Codegraph @

upstream/debian-trixie/man8/fsck.btrfs.8

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