Re: btrfs defrag problem

2012-11-06 Thread Sander
David Sterba wrote (ao): On Thu, Nov 01, 2012 at 05:17:04AM +0800, ching wrote: when a device is mounted under a directory, files in the directory is hidden, and files in the device is available, right? when a directory is polyinstantied, files in the original directory is hidden, and

Re: btrfs defrag problem

2012-11-05 Thread David Sterba
On Thu, Nov 01, 2012 at 05:17:04AM +0800, ching wrote: 3. Is any possible to online defrag a btrfs partition without hindered by mount point/polyinstantied directories? Sorry, I do not understand the question. when a device is mounted under a directory, files in the directory is

Re: btrfs defrag problem

2012-11-05 Thread ching
On 11/06/2012 06:57 AM, David Sterba wrote: On Thu, Nov 01, 2012 at 05:17:04AM +0800, ching wrote: 3. Is any possible to online defrag a btrfs partition without hindered by mount point/polyinstantied directories? Sorry, I do not understand the question. when a device is mounted under a

Re: btrfs defrag problem

2012-10-31 Thread ching
It seems that locked files cannot be defragged, is it expected behaviour? Yes. but i am defragging a file, not modify it. 2. Btrfs Wiki mentions that defrag directory will defrag metadata, is symlink/hardlink considered as metadata? P.S. inline data is already disabled by

btrfs defrag problem

2012-10-30 Thread ching
Hi all, I try to defrag my btrfs root partition (run by root privilege) find / -type f -o -type d -print0 | xargs --null --no-run-if-empty btrfs filesystem defragment -t $((32*1024*1024)) 1. This kind of error messages is prompted: failed to open /bin/bash open:: Text file busy

Re: btrfs defrag problem

2012-10-30 Thread cwillu
On Tue, Oct 30, 2012 at 5:47 AM, ching lschin...@gmail.com wrote: Hi all, I try to defrag my btrfs root partition (run by root privilege) find / -type f -o -type d -print0 | xargs --null --no-run-if-empty btrfs filesystem defragment -t $((32*1024*1024)) 1. This kind of error messages is

Re: btrfs defrag problem

2012-10-30 Thread ching
On 10/30/2012 08:08 PM, cwillu wrote: On Tue, Oct 30, 2012 at 5:47 AM, ching lschin...@gmail.com wrote: Hi all, I try to defrag my btrfs root partition (run by root privilege) find / -type f -o -type d -print0 | xargs --null --no-run-if-empty btrfs filesystem defragment -t

Re: btrfs defrag problem

2012-10-30 Thread David Sterba
On Tue, Oct 30, 2012 at 07:47:28PM +0800, ching wrote: failed to open /bin/bash open:: Text file busy That's not a btrfs problem, you can't directly modify an executable that is being used. failed to open /lib64/ld-2.15.so failed to open /sbin/agetty failed to open