tldr/pages.zh/linux/btrfs.md

26 lines
630 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# btrfs
> 一种基于写时复制COW原理的 Linux 文件系统。
> 此命令也有关于其子命令的文件,例如:`btrfs device`.
> 更多信息:<https://btrfs.readthedocs.io/en/latest/btrfs.html>.
- 创建子卷:
`sudo btrfs subvolume create {{指向子卷的路径}}`
- 列出子卷:
`sudo btrfs subvolume list {{指向挂载点的路径}}`
- 显示空间使用情况信息:
`sudo btrfs filesystem df {{指向挂载点的路径}}`
- 启用配额quota
`sudo btrfs quota enable {{指向子卷的路径}}`
- 显示配额quota
`sudo btrfs qgroup show {{指向子卷的路径}}`