public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto@mit.edu>
To: Chris Mason <chris.mason@oracle.com>,
	Josef Bacik <josef@redhat.com>,
	"Yan, Zheng" <zheng.yan@oracle.com>,
	linux-btrfs@vger.kernel.org
Subject: Re: snapshot/subvol deletion
Date: Wed, 26 Aug 2009 23:47:25 -0400	[thread overview]
Message-ID: <4A9601CD.8040005@mit.edu> (raw)
In-Reply-To: <20090825160414.GC16561@think>

Chris Mason wrote:
> 
> ;) The problem is the directory entry for the snapshot, but its a little
> more complex. Lets say subvolA has a directory entry for snapshotZ, and
> then someone wanders in and snapshots subvolA, creating snapshotA'.
> 
> This means that both subvolA and snashotA' have a directory entry for
> snapshotZ.  If we delete snapshotZ we have to deal with both directory
> entries.

I would've expected that, if we delete snapshotZ by IOCTL / rmdir / 
whatever from within snapshotA', then it still exists until it's also 
deleted from (the original) subvolA.  But maybe I just don't get it.

Is there some end-user-oriented documentation on what the semantics of 
snapshots and subvolumes are supposed to be?  I couldn't find it with a 
bit of Googling and wiki reading.

--Andy

  reply	other threads:[~2009-08-27  3:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25 14:38 snapshot/subvol deletion Yan, Zheng
2009-08-25 15:03 ` Chris Mason
2009-08-25 15:53   ` Josef Bacik
2009-08-25 16:04     ` Chris Mason
2009-08-27  3:47       ` Andy Lutomirski [this message]
2009-08-26  5:25   ` Yan, Zheng
2009-08-26  6:50     ` Chris Mason
2009-08-26  9:19       ` Yan, Zheng

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=4A9601CD.8040005@mit.edu \
    --to=luto@mit.edu \
    --cc=chris.mason@oracle.com \
    --cc=josef@redhat.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=zheng.yan@oracle.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox