From: Kai Krakow <hurikhan77+btrfs@gmail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: Possible to wait for snapshot deletion?
Date: Fri, 14 Feb 2014 01:15:29 +0100 [thread overview]
Message-ID: <1q30ta-po2.ln1@hurikhan77.spdns.de> (raw)
In-Reply-To: pan.2014.02.13.21.42.31@googlemail.com
Holger Hoffstätte <holger.hoffstaette@googlemail.com> schrieb:
> On Thu, 13 Feb 2014 20:02:43 +0100, Kai Krakow wrote:
>
>> Is it technically possible to wait for a snapshot completely purged from
>> disk? I imagine an option like "--wait" for btrfs delete subvolume.
>
> That would indeed be sweet (see pointer to patch by Garry Williams).
>
> In the meantime have you tried issuing a simple "sync" in your script
> after every snapshot deletion? I've observed that this kicks the cleaner
> into action.
I was under the impression that a sync command just doesn't do the trick. It
kicks in the cleaner but returns to early. But I din't try that again
lately.
But I'm actually currently using "btrfs fs sync" to do it because a normal
"sync" command would affect all my filesystems and I'd like to keep it
isolated.
I'll post a link to my backup script for reference in another post in this
thread.
--
Replies to list only preferred.
next prev parent reply other threads:[~2014-02-14 0:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-13 19:02 Possible to wait for snapshot deletion? Kai Krakow
2014-02-13 19:29 ` Brendan Hide
2014-02-14 0:25 ` Kai Krakow
2014-02-13 19:57 ` Hugo Mills
2014-02-13 20:45 ` Garry T. Williams
2014-02-14 0:12 ` Kai Krakow
2014-02-14 16:05 ` David Sterba
2014-02-13 21:42 ` Holger Hoffstätte
2014-02-14 0:15 ` Kai Krakow [this message]
2014-02-14 16:15 ` 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=1q30ta-po2.ln1@hurikhan77.spdns.de \
--to=hurikhan77+btrfs@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).