Skip to contentSkip to conversation

btrfs Wiki account request

DISCUSSION Sjon Hortensius 2 participants 2 messages Jul 8, 2014 – Jul 13, 2014 2 messages not in the archive Btrfs file system

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

I wrote a simple alternative for a script that is currently on the btrfs wiki (for showing quotas) in bash instead of Python. I have attempted to add this to the page but after entering the captcha 15 times my account was rejected because of a missing bio. Maybe someone can add this to https://btrfs.wiki.kernel.org/index.php/Quota_support:

#!/bin/bash

[[ ! -d $1 ]] && { echo Please pass mountpoint as first argument >&2 ; exit 1 ; }

while read x i x g x x l x p
do

    volName[i]=$p

done < <(btrfs subvolume list $1)

while read g r e
do

    [[ -z $name ]] && echo -e "subvol\tqgroup\ttotal\tunshared"
    group=${g##*/}
    [[ ! -z ${volName[group]} ]] && name=${volName[group]} || name='(unknown)'
    echo $name $g `numfmt --to=iec $r` `numfmt --to=iec $e`

done < <(btrfs qgroup show $1 | tail -n+3) | column -t

Thanks,
Sjon

Quoted 5 lines · MediaWiki Mail

Sorry, your request for an account "Sjon Hortensius" has been rejected on btrfs Wiki.

try again with a useful bio

There may be contact lists on site that you can use if you want to know more about user account policy.

#3 lore raw
Quoted 16 lines · Sjon Hortensius

I wrote a simple alternative for a script that is currently on the btrfs wiki (for showing quotas) in bash instead of Python. I have attempted to add this to the page but after entering the captcha 15 times my account was rejected because of a missing bio. Maybe someone can add this to https://btrfs.wiki.kernel.org/index.php/Quota_support:

#!/bin/bash

[[ ! -d $1 ]] && { echo Please pass mountpoint as first argument >&2 ; exit 1 ; }

while read x i x g x x l x p
do

    volName[i]=$p

done < <(btrfs subvolume list $1)

Quoted 7 lines

while read g r e
do

    [[ -z $name ]] && echo -e "subvol\tqgroup\ttotal\tunshared"
    group=${g##*/}
    [[ ! -z ${volName[group]} ]] && name=${volName[group]} || name='(unknown)'
    echo $name $g `numfmt --to=iec $r` `numfmt --to=iec $e`

done < <(btrfs qgroup show $1 | tail -n+3) | column -t

I added it to the page.

Best,
Marc

Signature · 4 lines
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
                                      .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/                         | PGP 1024R/763BE901