Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS equivalent for tune2fs?
Date: Tue, 2 Dec 2014 08:20:55 +0000 (UTC)	[thread overview]
Message-ID: <pan$630e$cc82698$5b1e5632$d2123a7b@cox.net> (raw)
In-Reply-To: CAE8gLhnq_HjcB=Teis751eXD1FKEVTgfbY-2yDCB77-7oz5Yaw@mail.gmail.com

MegaBrutal posted on Tue, 02 Dec 2014 06:54:47 +0100 as excerpted:

> Hi all,
> 
> I know there is a btrfstune, but it doesn't provide all the
> functionality I'm thinking of.
> 
> For ext2/3/4 file systems I can get a bunch of useful data with "tune2fs
> -l". How can I retrieve the same type of information about a BTRFS file
> system? (E.g., last mount time, last checked time, blocks reserved for
> superuser*, etc.)
> 
> * Anyway, does BTRFS even have an option to reserve X% for the
> superuser?

btrfs-show-super, btrfs filesystem show, and btrfs filesystem df, show 
various btrfs-specifics of the filesystem.  Last check time doesn't 
really apply, as the kernel automatically does a lot of checks 
dynamically at mount and btrfs check isn't designed to be run routinely, 
only to repair a broken filesystem when mounting with the recovery 
option, etc, fails.

As for reserving a percentage for superuser, btrfs doesn't do that 
directly.  There is the GlobalReserve space (as shown by btrfs fi df) for 
use by the filesystem itself.  Other than that, btrfs quotas could I 
think be (ab)used to reserve superuser space, but they're definitely 
optional, and I always recommend not using them if you can avoid it due 
to the additional complexity/overhead/bugs they add.

There's also btrfs property get/set/list, for some of what tune2fs would 
do plus a lot more btrfs specific stuff and not just on the filesystem 
but on devices, subvolumes and individual files too, but while the 
property infrastructure and some basics are there, I think there's more 
planned that has yet to be implemented.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


      parent reply	other threads:[~2014-12-02  8:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02  5:54 BTRFS equivalent for tune2fs? MegaBrutal
2014-12-02  7:31 ` Brendan Hide
2014-12-02  7:39   ` Brendan Hide
2014-12-02  8:11     ` Satoru Takeuchi
2014-12-02  8:20 ` Duncan [this message]

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='pan$630e$cc82698$5b1e5632$d2123a7b@cox.net' \
    --to=1i5t5.duncan@cox.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