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-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 11/21/2011 06:50 AM, Karol Šebesta wrote:> Hello, > > Is there any possibility to set quota limit for subvolume created in > BTRFS pool as in Solaris ZFS?Hi Quotas are not implemented yet in btrfs as far as I know. ~dima -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On 11/21/2011 05:15 AM, dima wrote:> On 11/21/2011 06:50 AM, Karol Šebesta wrote: >> Hello, >> >> Is there any possibility to set quota limit for subvolume created in >> BTRFS pool as in Solaris ZFS? > > Hi > Quotas are not implemented yet in btrfs as far as I know.This type of quota is implemented, but not merged yet. Please see my qgroup patchset "Subvolume Quota Groups". Testers welcome :) -Arne> ~dima-- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html