Re: [PATCH v4] exfat: add EXFAT_IOC_COMBINE to append a file's clusters to another
From: Matthew Wilcox
Date: Tue Nov 24 2026 - 12:41:05 EST
On Tue, Nov 24, 2026 at 10:28:07PM +0800, Shaopei Zhu wrote:
> As with EXT4_IOC_MOVE_EXT and F2FS_IOC_MOVE_RANGE, the source must be
> open for reading and writing, the destination for writing, and both must
> be regular files on the same mount. Files whose allocation, chain
> layout or valid_size are inconsistent, as after a failed truncate or on
> a corrupt volume, are refused with -EIO before anything is changed.
Why are you designing your own ioctl instead of implementing
EXT4_IOC_MOVE_EXT in exfat? That's the normal way of doing things as
it lets us later hoist the ioctl from all the filesystems implementing
it to the VFS.