On Thu, Feb 21, 2013 at 03:46:59PM +0100, Swâmi Petaramesh wrote: > Hi folks, > > I'm using Ubuntu 12.10 Quantal with > # uname -r > 3.5.0-24-generic > > And it seems I cannot defrag : > > # filefrag /boot/initrd.img-3.5.0-24-generic > /boot/initrd.img-3.5.0-24-generic: 3 extents found > > # btrfs filesystem defrag /boot/initrd.img-3.5.0-24-generic > # echo $? > 20 That's a success. The return code for defrag is broken, and for some reason returns 20 on success. > # filefrag /boot/initrd.img-3.5.0-24-generic > /boot/initrd.img-3.5.0-24-generic: 3 extents found This is pretty good. You can't guarantee that any given file will be defragmented completely. I think if the file is large (bigger than a block group), then it'll be split across the block group boundaries. I'd say 3 fragments is pretty good, unless it's a couple of KiB in size... Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk === PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Try everything once, except incest and folk-dancing. ---
Attachment:
signature.asc
Description: Digital signature
