linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Roman Mamedov <rm@romanrm.net>
To: Nikolay Borisov <n.borisov.lkml@gmail.com>
Cc: Christoph Anton Mitterer <calestyo@scientia.net>,
	"Janos Toth F." <toth.f.janos@gmail.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: deleted subvols don't go away?
Date: Mon, 28 Aug 2017 17:18:55 +0500	[thread overview]
Message-ID: <20170828171855.142a7224@natsu> (raw)
In-Reply-To: <83c6b0bb-a120-e0e3-dfc3-069ede63906f@gmail.com>

On Mon, 28 Aug 2017 15:03:47 +0300
Nikolay Borisov <n.borisov.lkml@gmail.com> wrote:

> when the cleaner thread runs again the snapshot's root item is going to
> be deleted for good and you no longer will see it.

Oh, that's pretty sweet -- it means there's actually a way to reliably wait
for cleaner work to be done on all deleted snapshots before unmounting the FS.
I was wondering about that recently for some transient filesystems (which get
mounted, synced to, snapshot-created/removed, then unmounted). Now can just
loop with a few second sleeps until `btrfs sub list -d $PATH` comes up empty.

-- 
With respect,
Roman

      parent reply	other threads:[~2017-08-28 12:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-27 17:15 deleted subvols don't go away? Christoph Anton Mitterer
2017-08-28  3:43 ` Janos Toth F.
2017-08-28  6:43   ` Nikolay Borisov
2017-08-28  8:07     ` Christoph Anton Mitterer
2017-08-28 12:03       ` Nikolay Borisov
2017-08-28 12:16         ` Hugo Mills
2017-08-28 12:18         ` Roman Mamedov [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=20170828171855.142a7224@natsu \
    --to=rm@romanrm.net \
    --cc=calestyo@scientia.net \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=n.borisov.lkml@gmail.com \
    --cc=toth.f.janos@gmail.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;
as well as URLs for NNTP newsgroup(s).