From: Bruce Guenter <bruce@untroubled.org>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: synchronous removal?
Date: Mon, 2 Aug 2010 09:02:42 -0600 [thread overview]
Message-ID: <20100802150242.GA12234@untroubled.org> (raw)
In-Reply-To: <4C55E2F3.3030202@noir.com>
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
On Sun, Aug 01, 2010 at 02:11:15PM -0700, K. Richard Pixley wrote:
> I notice that when I remove old snapshots and delete old directories,
> the free space on my disk, (according to df), doesn't rise immediately.
> Basically, I want to check to see if there's enough space available. If
> not, I want to remove some things, (including at least one snapshot),
> wait for the cleaner to digest, and then start over with the checking to
> see if there's enough space available and loop until I've removed enough
> things that there is enough space available. How can I do that on a
> btrfs file system?
I asked a similar question a while back, and the short answer is that
you can't, short of unmounting and remounting the filesystem. The
indication was made that writing a new ioctl to wait for all background
activity wouldn't be too hard, but I don't recall seeing it in any
recent patches.
See this thread:
http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg04872.html
--
Bruce Guenter <bruce@untroubled.org> http://untroubled.org/
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-08-02 15:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-01 21:11 synchronous removal? K. Richard Pixley
2010-08-02 11:35 ` Leonidas Spyropoulos
2010-08-02 15:25 ` K. Richard Pixley
2011-03-08 8:36 ` Andreas Philipp
2010-08-02 15:02 ` Bruce Guenter [this message]
2010-08-02 15:29 ` K. Richard Pixley
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=20100802150242.GA12234@untroubled.org \
--to=bruce@untroubled.org \
--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).