Linux command
btrfs-property 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
List
sudo btrfs property list [path/to/btrfs_object]
Get
sudo btrfs property get [path/to/btrfs_object]
Example
sudo btrfs property get [path/to/btrfs_filesystem] label
Example
sudo btrfs property get -t [subvol|filesystem|inode|device] [path/to/btrfs_filesystem]
Set compression
sudo btrfs property set [path/to/btrfs_inode] compression [zstd|zlib|lzo|none]
说明
btrfs property manages properties on btrfs filesystem objects including files, directories, subvolumes, filesystems, and devices. Properties control behavior like compression, read-only status, and labels. Different object types support different properties. The list command shows what properties are available for each object.
参数
- -t _type_
- Object type: subvol, filesystem, inode, or device
FAQ
What is the btrfs-property command used for?
btrfs property manages properties on btrfs filesystem objects including files, directories, subvolumes, filesystems, and devices. Properties control behavior like compression, read-only status, and labels. Different object types support different properties. The list command shows what properties are available for each object.
How do I run a basic btrfs-property example?
Run `sudo btrfs property list [path/to/btrfs_object]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t _type_ do in btrfs-property?
Object type: subvol, filesystem, inode, or device