]> git.sesse.net Git - bcachefs-tools-debian/blobdiff - bcachefs.8
Update bcachefs sources to 8fd009dd76 bcachefs: Rip out code for storing backpointers...
[bcachefs-tools-debian] / bcachefs.8
index aee1e4a3a6d3c9713847b0a052861294b649e6be..994b50f25e9ebf71a5774eac483d7b22a70ba3a7 100644 (file)
@@ -1,5 +1,5 @@
-.Dd February 9, 2018
-.Dt BCACHEFS 8
+.Dd March 7, 2023
+.Dt BCACHEFS 8 SMM
 .Os
 .Sh NAME
 .Nm bcachefs
@@ -21,22 +21,16 @@ Format one or a list of devices with bcachefs data structures.
 .It Ic show-super
 Dump superblock information to stdout.
 .El
+.Ss Mount commands
+.Bl -tag -width 18n -compact
+.It Ic mount
+Mount a filesystem.
+.El
 .Ss Repair commands
 .Bl -tag -width 18n -compact
 .It Ic fsck
 Check an existing filesystem for errors.
 .El
-.Ss Startup/shutdown, assembly of multi device filesystems
-.Bl -tag -width 18n -compact
-.It Ic assemble
-Assemble an existing multi device filesystem
-.It Ic incremental
-Incrementally assemble an existing multi device filesystem
-.It Ic run
-Start a partially assembled filesystem.
-.It Ic stop
-Stop a running filesystem.
-.El
 .Ss Commands for managing a running filesystem
 .Bl -tag -width 18n -compact
 .It Ic fs usage
@@ -87,6 +81,11 @@ Dump filesystem metadata to a qcow2 image
 .It Ic list
 List filesystem metadata in textual form
 .El
+.Ss Miscellaneous commands
+.Bl -tag -width 18n -compact
+.It Ic version
+Display the version of the invoked bcachefs tool
+.El
 .Sh Superblock commands
 .Bl -tag -width Ds
 .It Nm Ic format Oo Ar options Oc Ar devices\ ...
@@ -94,7 +93,7 @@ Format one or a list of devices with bcachefs data structures.
 You need to do this before you create a volume.
 .Pp
 Device specific options must come before corresponding devices, e.g.
-.Dl bcachefs format --tier 0 /dev/sdb --tier 1 /dev/sdc
+.Dl bcachefs format --label=ssd /dev/sda --label=hdd /dev/sdb
 .Bl -tag -width Ds
 .It Fl b , Fl -block Ns = Ns Ar size
 block size, in bytes (e.g. 4k)
@@ -106,7 +105,7 @@ Set metadata checksum type (default:
 .It Fl -data_checksum_type Ns = Ns ( Cm none | crc32c | crc64 )
 Set data checksum type (default:
 .Cm crc32c ) .
-.It Fl -compression_type Ns = Ns ( Cm none | lz4 | gzip )
+.It Fl -compression Ns = Ns ( Cm none | lz4 | gzip | zstd )
 Set compression type (default:
 .Cm none ) .
 .It Fl -data_replicas Ns = Ns Ar number
@@ -120,13 +119,13 @@ Enable whole filesystem encryption (chacha20/poly1305);
 passphrase will be prompted for.
 .It Fl -no_passphrase
 Don't encrypt master encryption key
-.It Fl -error_action Ns = Ns ( Cm continue | readonly | panic )
+.It Fl -error_action Ns = Ns ( Cm continue | remount-ro | panic )
 Action to take on filesystem error (default:
-.Cm readonly )
+.Cm remount-ro )
 .It Fl L , Fl -label Ns = Ns Ar label
 Create the filesystem with the specified
 .Ar label
-.It Fl -uuid Ns = Ns Ar uuid
+.It Fl U , -uuid Ns = Ns Ar uuid
 Create the filesystem with the specified
 .Ar uuid
 .It Fl f , Fl -force
@@ -145,12 +144,6 @@ Specifies the bucket size;
 must be greater than the btree node size
 .It Fl -discard
 Enable discards on subsequent devices
-.It Fl t , Fl -tier Ar index
-Specifies the tier of subsequent devices, where
-.Ar index
-is a small integer and a smaller index indicates a faster tier; tier 0
-being the fastest.
-Currently only two tiers are supported.
 .It Fl q , Fl -quiet
 Only print errors
 .El
@@ -163,6 +156,47 @@ List of sections to print
 Print superblock layout
 .El
 .El
+.Sh Mount commands
+.Bl -tag -width Ds
+.It Nm Ic mount Oo Ar options Oc Ar device mountpoint
+Mount a filesystem. The
+.Ar device
+can be a device, a colon-separated list of devices, or UUID=<UUID>. The
+.Ar mountpoint
+is the path where the filesystem should be mounted. If not set, then the filesystem won't actually be mounted
+but all steps preceeding mounting the filesystem (e.g. asking for passphrase) will still be performed.
+.Pp the options are as follows:
+.Bl -tag -width Ds
+.It Fl o Ar options
+Mount options provided as a comma-separated list. See userguide for complete list.
+.Bl -tag -width Ds -compact
+.It Cm degraded
+Allow mounting with data degraded
+.It Cm verbose
+Extra debugging info during mount/recovery
+.It Cm fsck
+Run fsck during mount
+.It Cm fix_errors
+Fix errors without asking during fsck
+.It Cm read_only
+Mount in read only mode
+.It Cm version_upgrade
+.El
+.It Fl k , Fl -key-location Ns = Ns ( Cm fail | wait | ask )
+Where the password would be loaded from. (default:
+.Cm ask ) .
+.Bl -tag -width Ds -compact
+.It Cm fail
+don't ask for password, fail if filesystem is encrypted.
+.It Cm wait
+wait for password to become available before mounting.
+.It Cm ask
+prompt the user for password.
+.El
+.It Fl v
+Be verbose. Can be specified more than once.
+.El
+.El
 .Sh Repair commands
 .Bl -tag -width Ds
 .It Nm Ic fsck Oo Ar options Oc Ar devices\ ...
@@ -180,17 +214,6 @@ Force checking even if filesystem is marked clean
 Be verbose
 .El
 .El
-.Sh Startup/shutdown, assembly of multi device filesystems
-.Bl -tag -width Ds
-.It Nm Ic assemble Ar devices\ ...
-Assemble an existing multi device filesystem.
-.It Nm Ic incremental Ar device
-Incrementally assemble an existing multi device filesystem.
-.It Nm Ic run
-Start a partially assembled filesystem.
-.It Nm Ic stop Ar filesystem
-Stop a running filesystem.
-.El
 .Sh Commands for managing a running filesystem
 .Bl -tag -width Ds
 .It Nm Ic fs Ic usage Oo Ar options Oc Op Ar filesystem
@@ -211,8 +234,6 @@ Size of filesystem on device
 Set bucket size
 .It Fl -discard
 Enable discards
-.It Fl t , Fl -tier Ns = Ns Ar number
-Higher tier (e.g. 1) indicates slower devices
 .It Fl f , Fl -force
 Use device even if it appears to already be formatted
 .El
@@ -234,8 +255,9 @@ Force, if data redundancy will be degraded
 .El
 .It Nm Ic device Ic evacuate Ar device
 Move data off of a given device
-.It Nm Ic device Ic set-state Oo Ar options Oc Ar device Ar new-state
+.It Nm Ic device Ic set-state Oo Ar options Oc Ar new-state Ar device
 .Bl -tag -width Ds
+.It Ar  new-state Ns = Ns ( Ar rw | ro | failed | spare )
 .It Fl f , Fl -force
 Force, if data redundancy will be degraded
 .El
@@ -310,5 +332,10 @@ Verbose mode
 List mode
 .El
 .El
+.Sh Miscellaneous commands
+.Bl -tag -width Ds
+.It Nm Ic version
+Display the version of the invoked bcachefs tool
+.El
 .Sh EXIT STATUS
 .Ex -std