BTRFS subvolume quota limits

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

 



Hello,

Is there any possibility to set quota limit for subvolume created in
BTRFS pool as in Solaris ZFS?

I'm currently testing btrfs and I have a pool /home with two
partitions (disks) and three subvolumes on it:

Label: none  uuid: b742c9c7-162b-40d1-9186-f1c84418ff53
        Total devices 2 FS bytes used 513.02MB
        devid    2 size 20.00GB used 1.26GB path /dev/sdb
        devid    1 size 5.00GB used 1.26GB path /dev/sda6


BTRFS:/ # btrfs subvolume list /home
ID 257 top level 5 path Download
ID 258 top level 5 path Test
ID 261 top level 5 path Test2
BTRFS:/ #

These subvolumes are mounted as /apps, /Test and /Test2

/dev/sda6        25G  514M  9.0G   6% /home
/dev/sdb         25G  514M  9.0G   6% /apps
/dev/sdb         25G  514M  9.0G   6% /Test
/dev/sdb         25G  514M  9.0G   6% /Test2

In Solaris ZFS I can use:

Example:

zfs set quota=1G home/Download   --> and /apps will be have 1GB size
zfs set quota=5G home/Test   --> and /Test will be have 5GB size
zfs set quota=10G home/Test2   --> and /Test2 will be have 10GB size

And in pool /home will be still 9GB free space for future extends.

It is possible in BTRFS? I know there is "btrfs filesystem resize" but
this only resize/reduce the whole /home pool and not set quota on
subvolumes as I need.

Any help is appreciated.

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


[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux