Optimizing write_uncompressed_file_from_fd()

Daan De Meyer daan.j.demeyer at gmail.com
Thu Aug 31 19:33:39 AEST 2023


Hi,

For hacking on systemd, we build disk images using mkosi, and use an erofs
filesystem for the /usr directory. When hacking on systemd, we would like
to be able to rebuild the disk image as fast as possible. One part of
rebuilding the image that takes a while is generating the erofs filesystem.
I had a look at the mkfs source code for erofs and noticed that in
write_uncompressed_file_from_fd(), there is no usage of FICLONERANGE or
copy_file_range() to speed up copying data from the filesystem to the erofs
filesystem. Would it be possible to use either of these to make copying
data in mkfs.erofs faster when the data does not need to be compressed?

Cheers,

Daan De Meyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-erofs/attachments/20230831/ef125813/attachment.htm>


More information about the Linux-erofs mailing list