bug#68504: [PATCH v3] Add copy-on-write support to scm_copy_file.
Tomas Volf <[email protected]>
| Newsgroups | gmane.lisp.guile.bugs |
|---|---|
| Message-ID | <ZfDi_NzJ9rFxJ3xN@ws> |
On 2024-03-12 14:06:34 +0100, Ludovic Courtès wrote:
>
> Finally pushed as e1690f3fd251d69b3687ec12c6f4b41034047f0f. Note that I
> added copyright lines for you, let me know if I got it wrong.
Thank you for merging it, and thanks for the copyright, looks correct :)
> As a followup, we should add support for ‘copy_file_range’ when FICLONE
> cannot be used; glibc supports it on all platforms but it returns ENOSYS
> on GNU/Hurd currently.
>
> WDYT?
Sure, I am willing to do my part. I managed to find this blog post[0], so after
some minor troubles I did manage to get a VM with GNU/Hurd running. Next I will
read up on copy_file_range and try to put together a patch.
Just to make sure, your idea here is exactly what? Always try to use
copy_file_range before the regular copy? So the flow would be
For 'always case:
CoW ---fail--> FAIL
For 'auto case:
CoW ---fail--> copy_file_range ---fail--> current copy ---fail--> FAIL
For 'never case:
copy_file_range ---fail--> current copy ---fail--> FAIL
Is that an accurate summary? Or did you mean only as a fallback for the CoW, so
only for 'auto, but not for the 'never?
Tomas
0: https://guix.gnu.org/en/blog/2020/a-hello-world-virtual-machine-running-the-hurd/
--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXw4vwACgkQL7/ufbZ/ wamXaA//e89I0+8GmuZOBp9Ah0Sd983f/D+tQiuA3T8oDe99nWRl9RAuTfsz4uq2 NAY1ekT+x+07nEDmFoRMko0KWglObZGFO6h5Zu4buAG/81beh6QqNSsv3Jr9ZD1J weUOo/AiAQG8GelP4ZxAa185GDN9I9oBWkD4raGeeUErXaXzKw6M/R1c9ss1iswW txs/vbsdkP0FxSi7cBuL4cw3kdFRzZ7Ylcth2kTR3ers8p+76+MK+qqLOmYYQKry vR4Jsjjv4qJBF/aVJnLYrvjLA6FrF64xywvCLo2cmtGitNHlsK98ykwVRc/MDtEy gmefNWYXOssxqrtD/d74vz9Nkuo9Vh8/3fP8nxIh+Mx0tjrxzvTHJUVAaWq8ASnW jbbP8nC+kACuEk+JO4gU2yUb4OCw56illy8i75/0krXff+8zkfiL634Lg8DHrBxB B8/Uvy7vl8ND2yMmS97BsgHLyIgCjs6SKrlt1lqIkGRjS9ogKqHYhNLB70La5b3d XtRCYkRo0rsMluROuI9RWcjK9t/1VcC6X5a7gsDFGNMWP/7lffbGOJ/B8iSS+fe+ eFLr0ALmAYmI4SezgC0mG9fmIBJITxarprCcFtX5aqdQtPkaeoMM0KY/Nv4qWEqP fAdeh5QpVW3Cej9Q/p1vjzOb3EiUzsI9SQwGEoVD8ZTnzxxKPzE= =/Jsb -----END PGP SIGNATURE-----