All of lore.kernel.org
 help / color / mirror / Atom feed
* BTRFS subvolume quota limits
@ 2011-11-20 21:35 Karol Šebesta
  2011-11-20 21:50 ` Karol Šebesta
  0 siblings, 1 reply; 4+ messages in thread
From: Karol Šebesta @ 2011-11-20 21:35 UTC (permalink / raw)
  To: linux-admin

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-11-21  5:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-20 21:35 BTRFS subvolume quota limits Karol Šebesta
2011-11-20 21:50 ` Karol Šebesta
2011-11-21  4:15   ` dima
2011-11-21  5:18     ` Arne Jansen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.