Re: [PATCH v7] exfat: add EXFAT_IOC_COMBINE to append a file's clusters to another
From: David Timber
Date: Thu Nov 26 2026 - 09:26:54 EST
Hello,
This is Davo coming from exfatprogs. I noticed the PR in GH which
brought me here.
On 11/26/26 07:52, Shaopei Zhu wrote:
[...]
> The workflow: cameras and dashcams keep motion or position data with
> the video, e.g. gyroscope and accelerometer samples for stabilization,
> or GPS.
>
> The products on the market keep that data in one of three ways:
>
> - as a timed metadata track inside the MP4, e.g. GoPro's GPMF, muxed
> while recording, so that the samples are interleaved with the video
> in the mdat box and indexed in the moov box;
> - as a separate sidecar file next to the video, e.g. the GPS logs of
> dashcams;
> - as a trailer appended after the MP4 boxes when recording stops,
> which players ignore and stabilization tools read.
>
> A sidecar file is lost in practice: users copy, share or import only
> the video file, and matching the two by name breaks once either is
> renamed or moved.
I think I understand the the problem being addressed here, but adding
something to the kernel to solve that particular user error sounds like
a lot of trouble to go through...
Also, there's issue of block alignment: Windows formats exfat volumes up
to 32MB cluster size(I myself unsure of this MS's decision, but it is
what it is). The release of 4TB SDUC cards are just around the corner.
At most 2MB of space lost just to padding, just to append a few MB of
metadata to a monolithic file to idiotproof the product.
I think most of the products on the market today just use multiple files
for multiple streams at different rate(LRV and WAV - fs/exfat have long
supported preallocation to alleviate the classical fragmentation issue
inherent in linked-list based filesystems). GPX and gyro data is
certainly not that big - most implementations including Gopros just
interleave that in a single MP4 file with audio and video streams. But
sensor data in industrial use may see a huge amount of data, but then
again, not a consumer product. Something you don't really need to
idiotproof. I think, if the metadata stream gets that big, we're no
longer in the realm of consumer products.
I have no share in the in-kernel fs/exfat implementaion so you don't
have to sell it to me. I'm just a dude curious about all this. However,
if you don't mind elaborating, I'd like to see some actual
implementations in the wild that may benefit from the ioctl. I also have
a bunch of ideas I'd share with the kernel devs, but I just keep them
all to myself because the kernel development is hard and the ideas are,
most of the times, not worth the trouble of maintaining it in the long
run. I don't think it's not fair for the maintainers who have to stay
behind for years to maintain things.
And, tbh with you, fs/exfat is not really the coolest part of the Linux
kernel so expect more push backs :) Just speaking from my experience.
Nothing personal. Thank you for reading my unsolicited two cents.
Davo