From: Chris Mason <chris.mason@oracle.com>
To: Mike Fedyk <mfedyk@mikefedyk.com>
Cc: Goffredo Baroncelli <kreijack@gmail.com>,
linux-btrfs@vger.kernel.org, Thomas Kupper <thomas@kupper.org>,
"Dipl.-Ing. Michael Niederle" <mniederle@gmx.at>,
rk <rkasl@computer.org>
Subject: Re: [PATCH 0/2 V2] btrfs: a new tool to manage a btrfs filesystem
Date: Thu, 18 Feb 2010 15:58:09 -0500 [thread overview]
Message-ID: <20100218205809.GX10559@think> (raw)
In-Reply-To: <93cdabd21002181246g7a46a767m8170859ce85eb0ab@mail.gmail.com>
On Thu, Feb 18, 2010 at 12:46:56PM -0800, Mike Fedyk wrote:
> On Thu, Feb 18, 2010 at 11:59 AM, Goffredo Baroncelli
> <kreijack@gmail.com> wrote:
> > On Thursday 18 February 2010, Chris Mason wrote:
> >> I do like the subcommand method, more details below.
> >>
> >
> > I try to summarise your suggestions. But there are some cases not t=
o clear for
> > me.
> > I grouped the commands in three categories: subvolume, devices, and
> > filesystem.
> >
> >
> > devices =A0 =A0 =A0 =A0 scan
> > devices =A0 =A0 =A0 =A0 show
> > devices =A0 =A0 =A0 =A0 balance
> > devices =A0 =A0 =A0 =A0 add
> > devices =A0 =A0 =A0 =A0 remove
> >
> > subvolume =A0 =A0 =A0 snapshot
> > subvolume =A0 =A0 =A0 delete
> > subvolume =A0 =A0 =A0 create
> > [subvolume =A0 =A0 =A0list]
> >
> > filesystem =A0 =A0 =A0resize
> > [filesystem =A0 =A0 label]
> >
> > ??? =A0 =A0 defrag
> > ??? =A0 =A0 sync
> >
> >
> >
> > For the first two categories both Chris and Mike agreed; but IMHO t=
here are
> > some commands that don't fit nor in devices, nor subvolume, like re=
size (we
> > resize a filesystem) and label (not available now).
> >
>=20
> A btrfs filesystem can span multiple devices. Resize resizes how big
> of a chunk of one device btrfs uses.
Right, resize is actually always per device. When there is one device
resizing the FS and the device are the same thing.
> This would be used by
> partitioning programs for instance. zfs uses the term "pool" instead
> of filesystem to solve this ambiguous use of the term "filesystem"
> since btrfs and zfs break people's existing definition of the word
> "filesystem".
>=20
> > I don't know how classify defrag (per file / directory level ?) and=
sync
> > (filesystem ?)
>=20
> It turns out that defrag is per file, which seems most cumbersome.
> Maybe since it will probably eventually work against several types of
> objects we could have:
>=20
> btrfs defrag file <file>
> btrfs defrag directory <directory>
> btrfs defrag subvol <subvol>
I like these, although we don't currently support the directory/subvol
side. But we can leave the option open to add these later.
> btrfs defrag pool <pool>
I don't think we'll need defrag pool.
>=20
> >
> > An option is to consider commands without classification. For examp=
les:
> >
> > $ btrfs subvolume create [path/]<subvolname>
> > $ btrfs sync <path>
> > $ btrfs defrag <file>
>=20
> Maybe if the btrfs developers are agreeable, we could do this as well=
:
>=20
> btrfs sync file <file>
> btrfs sync directory <directory>
fsync on files and dirs already does this, we don't need a btrfsctl for
it.
> btrfs sync subvol <subvol>
btrfs sync subvol is nice.
> btrfs sync pool <pool>
>=20
I don't think we need sync pool.
-chris
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2010-02-18 20:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 20:02 [PATCH 0/2 V2] btrfs: a new tool to manage a btrfs filesystem Goffredo Baroncelli
2010-02-17 20:48 ` Andreas Philipp
2010-02-17 21:00 ` Goffredo Baroncelli
2010-02-17 23:35 ` Mike Fedyk
2010-02-18 9:45 ` Piavlo
2010-02-18 16:58 ` Chris Mason
2010-02-18 17:58 ` Mike Fedyk
2010-02-18 18:20 ` Thomas Kupper
2010-02-18 19:59 ` Goffredo Baroncelli
2010-02-18 20:46 ` Mike Fedyk
2010-02-18 20:58 ` Chris Mason [this message]
2010-02-18 21:04 ` Goffredo Baroncelli
2010-02-18 21:39 ` Mike Fedyk
2010-02-18 21:25 ` Tomasz Torcz
2010-02-18 21:00 ` Goffredo Baroncelli
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=20100218205809.GX10559@think \
--to=chris.mason@oracle.com \
--cc=kreijack@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=mfedyk@mikefedyk.com \
--cc=mniederle@gmx.at \
--cc=rkasl@computer.org \
--cc=thomas@kupper.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.