Btrfs-progs: add type root to label property
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 12 Nov 2013 13:41:45 +0000 (13:41 +0000)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:32 +0000 (08:22 -0800)
commitaea978980040462160196597d2b0ca0527af1600
tree0bc54c6e14758a575fdaaf70e83d31f18827bd6d
parentd5bd0a1f8461132af3a7d1d681d836a2e4807cf4
Btrfs-progs: add type root to label property

So that we can get the label of a mounted filesystem.

Before this change:

        $ btrfs prop get /mnt/btrfs label
        ERROR: object is not compatible with property

        $ btrfs prop get /dev/sdb3 label
        ERROR: dev /dev/sdb3 is mounted, use mount point
        ERROR: failed to set/get property for object.

After this change:

        $ btrfs prop get /mnt/btrfs label
        label=foobar

Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
props.c