All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shriramana Sharma <samjnaa@gmail.com>
To: Hugo Mills <hugo@carfax.org.uk>,
	Chris Murphy <lists@colorremedies.com>,
	linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: Moving an entire subvol?
Date: Wed, 3 Dec 2014 08:02:31 +0530	[thread overview]
Message-ID: <CAH-HCWV_EhhQ11UT4Ysb0OT4tJfmEuWBek_z8MPeHwBZ0R7H3Q@mail.gmail.com> (raw)
In-Reply-To: <20141202083419.GK32735@carfax.org.uk>

On Tue, Dec 2, 2014 at 2:04 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
>
>> Is that correct: what btr sub list shows as "top level" is indeed the
>> parent subvolume?
>
>    No, it's the top-level subvolume. (See my earlier mail about
> nomenclature). "Parent subvolume" has a number of meanings, none of
> which should be "the subvolume with subvolid 5".

Um I searched my inbox but didn't find a specific definition from you
for "top-level". You only said it's better to avoid calling it "root"
to avoid confounding it with the subvol that may be mounted at root
i.e. /.

IIUC the "top-level subvolume" can only be subvolid 5 which accords
with your later comment:

> that putting files in the top-level subvol can't do what most people
> want to do with it. Hence the recommended subvol management layout at
> [1] https://btrfs.wiki.kernel.org/index.php/SysadminGuide#Subvolumes

... which means that I am not able to understand the output of btr sub
list which gives the subvolid of whichever subvol is currently the
"parent" (as in outer nesting) subvol. Observe:

$ btr sub list .
ID 257 gen 10 top level 5 path test1
ID 258 gen 10 top level 5 path test2
ID 259 gen 9 top level 258 path test2/foo
$ sudo mv test2/foo test1/
$ btr sub list .
ID 257 gen 10 top level 5 path test1
ID 258 gen 10 top level 5 path test2
ID 259 gen 9 top level 257 path test1/foo
$

So now what is the meaning of "top level"?

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

  reply	other threads:[~2014-12-03  2:32 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-30  3:31 Moving an entire subvol? Shriramana Sharma
2014-11-30  4:21 ` Marc MERLIN
2014-11-30 10:27   ` Shriramana Sharma
2014-12-01  0:10     ` Marc MERLIN
2014-12-01  0:54 ` Chris Murphy
2014-12-02  3:21   ` Shriramana Sharma
2014-12-02  8:34     ` Hugo Mills
2014-12-03  2:32       ` Shriramana Sharma [this message]
2014-12-03  8:37         ` Hugo Mills
2014-12-02  8:50     ` Duncan
2014-12-02 13:28     ` David Sterba
2014-12-02 15:11       ` Shriramana Sharma
2014-12-02 20:30         ` Robert White
2014-12-02 21:13         ` Austin S Hemmelgarn
2014-12-03  2:33           ` Shriramana Sharma
2014-12-05 17:34         ` David Sterba

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=CAH-HCWV_EhhQ11UT4Ysb0OT4tJfmEuWBek_z8MPeHwBZ0R7H3Q@mail.gmail.com \
    --to=samjnaa@gmail.com \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    /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.