1BTRFSCTL(8)                 System Manager's Manual                BTRFSCTL(8)
2
3
4

NAME

6       btrfsctl - control a btrfs filesystem
7

SYNOPSIS

9       btrfsctl  [  -d  file|directory  ] [ -s snapshot-name directory ] [  -S
10       subvolume-name directory ] [  -r [+-]size ] [  -A device ] [   -a  ]  [
11       -c ]
12

DESCRIPTION

14       btrfsctl  is  used to control the filesystem and the files and directo‐
15       ries stored. It is the tool to create a new snapshot for  the  filesys‐
16       tem.
17

OPTIONS

19       -d file|directory
20              Defragment  a  file  or a directory. If the argument is a direc‐
21              tory, the entire b-tree under the directory is defragged.
22
23       -s snapshot-name directory
24              Creates a new snapshot of the directory specified.
25
26       -S subvolume-name directory
27              Creates a new subvolume.
28
29       -r [+|-]size
30              Resizes the filesystem with the size specified. If the value  is
31              preceded  with  a  signed symbol, the filesystem is resized with
32              respect to the current filesystem size. size can be suffixed  by
33              k,m or g to represent kilobytes, megabytes, or gigabytes respec‐
34              tively.
35
36       -A device
37              Scans the device for btrfs filesystem.
38
39       -a     Scans all devices present in the system for btrfs filesystem.
40
41       -c     Forces a filesystem sync.
42

AVAILABILITY

44       btrfsctl is part of btrfs-progs. Btrfs is currently under heavy  devel‐
45       opment,  and  not  suitable  for  any  uses other than benchmarking and
46       review.  Please refer to the  btrfs  wiki  http://btrfs.wiki.kernel.org
47       for further details.
48

SEE ALSO

50       mkfs.btrfs(8)
51
52
53
54                                                                   BTRFSCTL(8)
Impressum