Re: synchronous removal?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx/msg04872.html

-- 
Bruce Guenter <bruce@xxxxxxxxxxxxxx>                http://untroubled.org/

Attachment: pgpV7DOB7sKHg.pgp
Description: PGP signature


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux