* command to get quota limit
@ 2017-12-04 12:14 ST
2017-12-04 12:21 ` Qu Wenruo
2017-12-04 14:13 ` Marat Khalili
0 siblings, 2 replies; 5+ messages in thread
From: ST @ 2017-12-04 12:14 UTC (permalink / raw)
To: linux-btrfs
Hello,
what is the command to get btrfs quota limit on certain subvolume?
Thank you!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: command to get quota limit
2017-12-04 12:14 command to get quota limit ST
@ 2017-12-04 12:21 ` Qu Wenruo
2017-12-04 13:46 ` ST
2017-12-04 14:13 ` Marat Khalili
1 sibling, 1 reply; 5+ messages in thread
From: Qu Wenruo @ 2017-12-04 12:21 UTC (permalink / raw)
To: ST, linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 480 bytes --]
On 2017年12月04日 20:14, 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.
Thanks,
Qu
>
> 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
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: command to get quota limit
2017-12-04 12:21 ` Qu Wenruo
@ 2017-12-04 13:46 ` ST
2017-12-04 13:58 ` Qu Wenruo
0 siblings, 1 reply; 5+ messages in thread
From: ST @ 2017-12-04 13:46 UTC (permalink / raw)
To: Qu Wenruo; +Cc: linux-btrfs
> > 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...
Thank you!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: command to get quota limit
2017-12-04 13:46 ` ST
@ 2017-12-04 13:58 ` Qu Wenruo
0 siblings, 0 replies; 5+ messages in thread
From: Qu Wenruo @ 2017-12-04 13:58 UTC (permalink / raw)
To: ST; +Cc: linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 849 bytes --]
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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 520 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: command to get quota limit
2017-12-04 12:14 command to get quota limit ST
2017-12-04 12:21 ` Qu Wenruo
@ 2017-12-04 14:13 ` Marat Khalili
1 sibling, 0 replies; 5+ messages in thread
From: Marat Khalili @ 2017-12-04 14:13 UTC (permalink / raw)
To: ST, linux-btrfs
AFAIK you don't need subvolume id, `btrfs qgroup show -ref
/path/to/subvolume` shows necessary qgroup for me. Separating value you
need is more involved:
> btrfs qgroup show -ref --raw /path/to/subvolume | tail -n +3 | tr -s '
> ' | cut -d ' ' -f 4
Not sure how robust is this though.
--
With Best Regards,
Marat Khalili
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-12-04 14:13 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 12:14 command to get quota limit ST
2017-12-04 12:21 ` Qu Wenruo
2017-12-04 13:46 ` ST
2017-12-04 13:58 ` Qu Wenruo
2017-12-04 14:13 ` Marat Khalili
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).