Announcement

Collapse
No announcement yet.

Btrfs property command

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Btrfs property command

    Code:
    btrfs property:
    usage: btrfs property get/set/list [-t <type>] <object> [<name>] [value]
    
        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.
    View or modify properties of filesystem objects: s = subvolume, f=file, d=device, i=inode
    Code:
    :~$ sudo btrfs property list -t[COLOR=#ff0000]s[/COLOR] /
    ro                  Set/get read-only flag of subvolume.
    
    :~$ sudo btrfs property list -t[COLOR=#ff0000]f[/COLOR] /
    label               Set/get label of device.
    
    :~$ sudo btrfs property list -t[COLOR=#ff0000]d [/COLOR]/
    label               Set/get label of device.
    
    :~$ sudo btrfs property list -t[COLOR=#ff0000]i [/COLOR]/
    compression         Set/get compression for a file or directory
    
    :~$ sudo btrfs property list /
    ro                  Set/get read-only flag of subvolume.
    label               Set/get label of device.
    compression         Set/get compression for a file or directory
    Note: Because "/" is bound to @ in /etc/fstab when using the target / one is actually using @.
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.
Working...
X