linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs defrag problem
@ 2012-10-30 11:47 ching
  2012-10-30 12:08 ` cwillu
  2012-10-31  0:40 ` David Sterba
  0 siblings, 2 replies; 8+ messages in thread
From: ching @ 2012-10-30 11:47 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

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
    total 1 failures
    failed to open /lib64/ld-2.15.so
    open:: Text file busy
    total 1 failures
    failed to open /sbin/agetty
    open:: Text file busy
    failed to open /sbin/btrfs
    open:: Text file busy
    failed to open /sbin/dhclient
    open:: Text file busy
    failed to open /sbin/init
    open:: Text file busy
    failed to open /sbin/udevd

    It seems that locked files cannot be defragged, is it expected behaviour?

2. Btrfs Wiki mentions that defrag directory will defrag metadata, is symlink/hardlink considered as metadata?

    P.S. inline data is already disabled by "max_inline=0"

3. Is any possible to online defrag a btrfs partition without hindered by mount point/polyinstantied directories?


Thank you.

ching



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-11-06 13:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-30 11:47 btrfs defrag problem ching
2012-10-30 12:08 ` cwillu
2012-10-31  0:14   ` ching
2012-10-31  0:40 ` David Sterba
2012-10-31 21:17   ` ching
2012-11-05 22:57     ` David Sterba
2012-11-05 23:48       ` ching
2012-11-06 13:49       ` Sander

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).