Re: [PATCH v3] btrfs-progs: Add recursive defrag using -r option

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

 



On Mon, Sep 23, 2013 at 03:18:17PM -0400, Frank Holton wrote:
> Add an option to defrag all files in a directory recursively.

I had this patch merged but still saw some problems. If there's eg. a
symlink to file on another filesystem, defrag fails with

"ERROR: defrag range ioctl not supported in this kernel, please try
without any options."

which does not match the error that occured.

In short, we have to use nftw and specify FTW_MOUNT (do not dive into
mountpoints) and FTW_PHYS (do not follow symlinks). Fixed and added to
integration. Please write the corresponding bits of manpage and send a
patch.

thanks,
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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