Files
tldr/pages.zh/linux/btrfs-property.md

24 lines
897 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# btrfs 属性
> 获取、设置或列出 BTRFS 文件系统对象(文件、目录、子卷、文件系统或设备)的属性。
> 更多信息:<https://btrfs.readthedocs.io/en/latest/btrfs-property.html>。
- 列出给定 btrfs 对象的可用属性(及其描述):
`sudo btrfs property list {{path/to/btrfs_object}}`
- 获取给定 btrfs 对象的所有属性:
`sudo btrfs property get {{path/to/btrfs_object}}`
- 获取给定 btrfs 文件系统或设备的 `label` 属性:
`sudo btrfs property get {{path/to/btrfs_filesystem}} label`
- 获取给定 btrfs 文件系统或设备的所有对象类型特定属性:
`sudo btrfs property get -t {{subvol|filesystem|inode|device}} {{path/to/btrfs_filesystem}}`
- 为给定的 btrfs inode文件或目录设置 `compression` 属性:
`sudo btrfs property set {{path/to/btrfs_inode}} compression {{zstd|zlib|lzo|none}}`