From: Tomasz Chmielewski <tch@virtall.com>
To: linux-btrfs@vger.kernel.org
Subject: btrfs quota examples?
Date: Mon, 10 Jun 2013 15:21:27 +0900 [thread overview]
Message-ID: <20130610152127.38fb8a50@virtall.com> (raw)
I'm trying to use btrfs quotas, but I'm unable to find reliable
documentation on its usage.
Let's start with an empty subvolume:
- assign 200 MB space to it:
# btrfs qgroup limit 200m /mnt/btrfs-backup/tester/
- see the usage:
# btrfs qgroup show /mnt/btrfs-backup/tester/
0/803 0 0
- let's add a 100 MB file:
# dd if=/dev/urandom of=bigfile bs=1M count=100
- sync the FS to make sure quota is updated:
# btrfs filesystem
sync /mnt/btrfs-backup/ FSSync '/mnt/btrfs-backup/'
- see current quota usage:
# btrfs qgroup show /mnt/btrfs-backup/backuppc/tester/
0/803 104882176 104882176
Now, my questions:
- what do both 104882176 104882176 numbers represent?
- how can I verify the quota assigned to any given subvolume? I've assigned 200 MB, but how can I verify that number?
--
Tomasz Chmielewski
http://wpkg.org
next reply other threads:[~2013-06-10 6:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 6:21 Tomasz Chmielewski [this message]
2013-06-10 7:41 ` btrfs quota examples? Arne Jansen
2013-06-10 7:47 ` Tomasz Chmielewski
2013-06-10 9:24 ` Wang Shilong
2013-07-29 8:05 ` Tomasz Chmielewski
2013-08-02 6:23 ` Arne Jansen
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=20130610152127.38fb8a50@virtall.com \
--to=tch@virtall.com \
--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).