The btrfs 'label' property: device or filesystem-wide?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I was just looking at btrfs property and what it can do.

Now, I notice that the man page contains:

  label: label of device

When I look at a device and ask what properties I can set, I see:

-# btrfs property list -t device /dev/xvdb
label               Set/get label of device.

But, when I try to set it, it complains:

-# btrfs property set -t device /dev/xvdb label yolo
ERROR: device /dev/xvdb is mounted, use mount point

A mount point points to a whole filesystem, not a specific device.

-# btrfs property set -t device /btrfs label yolo

The result is that the label at filesystem level is set. A device
doesn't even have something like a label itself.

-# btrfs fi show
Label: 'yolo'  uuid: 370415b8-b96f-456e-8713-6833b2a65127
	Total devices 4 FS bytes used 144.00KiB
	devid    1 size 10.00GiB used 1.00GiB path /dev/xvdb
	devid    2 size 10.00GiB used 1.00GiB path /dev/xvdc
	devid    3 size 10.00GiB used 288.00MiB path /dev/xvdd
	devid    4 size 10.00GiB used 288.00MiB path /dev/xvde

So, am I missing something, or should this have been:

-# btrfs property set -t filesystem label foo /mountpoint

Hans



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux