On 2017年12月04日 21:46, ST wrote:
>>> Hello,
>>>
>>> what is the command to get btrfs quota limit on certain subvolume?
>>
>> btrfs qgroup show -re
>>
>> The result is for all subvolumes, then just find the subvolume you need.
>>
> 
> I need to use the quota number in a script... is there a more specific
> command, otherwise I need to get the groupID first and then to parse the
> output...

IIRC "btrfs qgroup show -re <mnt>" is specific enough.

Just try it, and read btrfs-qgroup(8).

As long as you're using it in a script, the you will need subvolume id
anyway.

Thanks,
Qu

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to