linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sjon Hortensius <sjon@hortensius.net>
To: linux-btrfs@vger.kernel.org
Subject: Fwd: btrfs Wiki account request
Date: Tue, 8 Jul 2014 22:19:08 +0200	[thread overview]
Message-ID: <CAK_tfuY3cnPyrsTVvKVCcDsSC1SvchKmyc6tq7T8=+ErRhnbFQ@mail.gmail.com> (raw)
In-Reply-To: <CAMqPLXUHJ8Gtc9r9cNVaaijp6VcEy_nLoeFxSWR_2ajevi+jcg@mail.gmail.com>

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

On Tue, Feb 4, 2014 at 5:38 PM, MediaWiki Mail <wikiadmin@kernel.org> wrote:
> 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.

       reply	other threads:[~2014-07-08 20:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <btrfswiki.52f1178eb44ca2.65163100@btrfs.wiki.kernel.org>
     [not found] ` <CAMqPLXUHJ8Gtc9r9cNVaaijp6VcEy_nLoeFxSWR_2ajevi+jcg@mail.gmail.com>
2014-07-08 20:19   ` Sjon Hortensius [this message]
2014-07-13 14:49     ` Fwd: btrfs Wiki account request Marc MERLIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAK_tfuY3cnPyrsTVvKVCcDsSC1SvchKmyc6tq7T8=+ErRhnbFQ@mail.gmail.com' \
    --to=sjon@hortensius.net \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).