Re: [Request for review] [RFC] Add label support for snapshots and subvols

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

 



On Fri, Nov 2, 2012 at 5:16 AM, cwillu <cwillu@xxxxxxxxxx> wrote:
>>  btrfs fi label -t /btrfs/snap1-sv1
>> Prod-DB-sand-box-testing
>
> Why is this better than:
>
> # btrfs su snap /btrfs/Prod-DB /btrfs/Prod-DB-sand-box-testing
> # mv /btrfs/Prod-DB-sand-box-testing /btrfs/Prod-DB-production-test
> # ls /btrfs/
> Prod-DB  Prod-DB-production-test


... because it would mean possibilty to decouple subvol name from
whatever-data-you-need (in this case, a label).

My request, though, is to just implement properties, and USER
properties, like what we have in zfs. This seems to be a cleaner,
saner approach. For example, this is on Ubutu + zfsonlinux:

# zfs create rpool/u
# zfs set user:label="Some test filesystem" rpool/u
# zfs get creation,user:label rpool/u
NAME     PROPERTY    VALUE                  SOURCE
rpool/u  creation    Fri Nov  2  5:24 2012  -
rpool/u  user:label  Some test filesystem   local

More info about zfs user properties here:
http://docs.oracle.com/cd/E19082-01/817-2271/gdrcw/index.html

--
Fajar
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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