Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: linux-btrfs@vger.kernel.org
Subject: find subvolume (used) size?
Date: Tue, 05 Oct 2010 13:26:36 +0200	[thread overview]
Message-ID: <4CAB0B6C.3050908@wpkg.org> (raw)

Since CoW / reflink does not seem to work between subvolumes (a bug or a 
feature?), is it somehow possible to get the subvolume (used) size?

There is a standard df tool, but it can be a lengthy process for 
filesystems with lots of files.


"btrfs filesystem df" only shows total size for the whole btrfs filesystem.


Say, I create subvolumes called public, office, staff and pack a lot of 
files there. Does btrfs somehow allows to get the current size of these 
subvolumes (other than using df tool to traverse all files and directories)?



-- 
Tomasz Chmielewski
http://wpkg.org

             reply	other threads:[~2010-10-05 11:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-05 11:26 Tomasz Chmielewski [this message]
2010-10-05 15:33 ` find subvolume (used) size? Phillip Susi
2010-10-05 16:07   ` Tomasz Chmielewski
2010-10-05 19:15     ` Lubos Kolouch
2010-10-06 12:08   ` Tomasz Chmielewski

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=4CAB0B6C.3050908@wpkg.org \
    --to=mangoo@wpkg.org \
    --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