用法:

 btrfs [--help] [--version] <group> [<group>...] <command> [<args>]


    btrfs subvolume create [-i <qgroupid>] [<dest>/]<name>

        创建一个子卷

    btrfs subvolume delete [options] <subvolume> [<subvolume>...]

       删除子卷

    btrfs subvolume list [options] [-G [+|-]value] [-C [+|-]value] [--sort=gen,ogen,rootid,path] <path>

       列出子卷(和快照)

    btrfs subvolume snapshot [-r] <source> <dest>|[<dest>/]<name>

        btrfs subvolume snapshot [-r] [-i <qgroupid>] <source> <dest>|[<dest>/]<name>

    btrfs subvolume get-default <path>

        获取文件系统的默认子卷

    btrfs subvolume set-default <subvolid> <path>

        设置文件系统的默认子卷

    btrfs subvolume find-new <path> <lastgen>

       列出文件系统中最近修改过的文件

    btrfs subvolume show <subvol-path>

        显示子卷的详细信息


    btrfs filesystem df <path>

        Show space usage information for a mount point

    btrfs filesystem show [options] [<path>|<uuid>|<device>|label]

        Show the structure of a filesystem

    btrfs filesystem sync <path>

        Force a sync on a filesystem

    btrfs filesystem defragment [options] <file>|<dir> [<file>|<dir>...]

        Defragment a file or a directory

    btrfs filesystem resize [devid:][+/-]<newsize>[kKmMgGtTpPeE]|[devid:]max <path>

        Resize a filesystem

    btrfs filesystem label [<device>|<mount_point>] [<newlabel>]

        Get or change the label of a filesystem


    btrfs [filesystem] balance start [options] <path>

        Balance chunks across the devices

    btrfs [filesystem] balance pause <path>

        Pause running balance

    btrfs [filesystem] balance cancel <path>

        Cancel running or paused balance

    btrfs [filesystem] balance resume <path>

        Resume interrupted balance

    btrfs [filesystem] balance status [-v] <path>

        Show status of running or paused balance


    btrfs device add [options] <device> [<device>...] <path>

        Add a device to a filesystem

    btrfs device delete <device> [<device>...] <path>

        Remove a device from a filesystem

    btrfs device scan [(-d|--all-devices)|<device> [<device>...]]

        Scan devices for a btrfs filesystem

    btrfs device ready <device>

        Check device to see if it has all of its devices in cache for mounting

    btrfs device stats [-z] <path>|<device>

        Show current device IO stats. -z to reset stats afterwards.


    btrfs scrub start [-BdqrRf] [-c ioprio_class -n ioprio_classdata] <path>|<device>

        Start a new scrub. If a scrub is already running, the new one fails.

    btrfs scrub cancel <path>|<device>

        Cancel a running scrub

    btrfs scrub resume [-BdqrR] [-c ioprio_class -n ioprio_classdata] <path>|<device>

        Resume previously canceled or interrupted scrub

    btrfs scrub status [-dR] <path>|<device>

        Show status of running or finished scrub


    btrfs check [options] <device>

        Check an unmounted btrfs filesystem.


    btrfs rescue chunk-recover [options] <device>

        Recover the chunk tree by scanning the devices one by one.

    btrfs rescue super-recover [options] <device>

        Recover bad superblocks from good copies


    btrfs restore [options] <device> <path> | -l <device>

        Try to restore files from a damaged filesystem (unmounted)


    btrfs inspect-internal inode-resolve [-v] <inode> <path>

        Get file system paths for the given inode

    btrfs inspect-internal logical-resolve [-Pv] [-s bufsize] <logical> <path>

        Get file system paths for the given logical address

    btrfs inspect-internal subvolid-resolve <subvolid> <path>

        Get file system paths for the given subvolume ID.

    btrfs inspect-internal rootid <path>

        Get tree ID of the containing subvolume of path.


    btrfs property get [-t <type>] <object> [<name>]

        Gets a property from a btrfs object.

    btrfs property set [-t <type>] <object> <name> <value>

        Sets a property on a btrfs object.

    btrfs property list [-t <type>] <object>

        Lists available properties with their descriptions for the given object.


    btrfs send [-ve] [-p <parent>] [-c <clone-src>] [-f <outfile>] <subvol> [<subvol>...]

        Send the subvolume(s) to stdout.

    btrfs receive [-ve] [-f <infile>] [--max-errors <N>] <mount>

        Receive subvolumes from stdin.


    btrfs quota enable <path>

        Enable subvolume quota support for a filesystem.

    btrfs quota disable <path>

        Disable subvolume quota support for a filesystem.

    btrfs quota rescan [-sw] <path>

        Trash all qgroup numbers and scan the metadata again with the current config.


    btrfs qgroup assign <src> <dst> <path>

        Enable subvolume qgroup support for a filesystem.

    btrfs qgroup remove <src> <dst> <path>

        Remove a subvol from a quota group.

    btrfs qgroup create <qgroupid> <path>

        Create a subvolume quota group.

    btrfs qgroup destroy <qgroupid> <path>

        Destroy a subvolume quota group.

    btrfs qgroup show -pcreFf [--sort=qgroupid,rfer,excl,max_rfer,max_excl] <path>

        Show subvolume quota groups.

    btrfs qgroup limit [options] <size>|none [<qgroupid>] <path>

        Limit the size of a subvolume quota group.


    btrfs replace start [-Bfr] <srcdev>|<devid> <targetdev> <mount_point>

        Replace device of a btrfs filesystem.

    btrfs replace status [-1] <mount_point>

        Print status and progress information of a running device replace

    btrfs replace cancel <mount_point>

        Cancel a running device replace operation.


    btrfs help [--full]

        Display help information

    btrfs version

        Display btrfs-progs version