[Rpm-maint] [rpm-software-management/rpm] rpm --rebuilddb in an overlayfs without redirect_dir=on (Discussion #2905)
th-hummel
notifications at github.com
Tue Feb 13 16:42:43 UTC 2024
Well, I'm no expert either but my understanding is that for instance a tool like `mv` would first try `rename()` and if it returns `EXDEV` it will workaround by copying data.
So, to me the main difference is the atomicity: when you set an `xattr` to the orignal dir then `rename()` the copied up dir, though this means 2 actions, the `rename()` is atomic since no data is actually copied.
My understanding is that such actions are somehow "prepared" in the `workdir`.
I don't know if in the` rpm --rebuilddb` you need this atomicity or not but that would be the first question to be answered I think ?
Thanks for your help
--
Thomas HUMMEL
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/discussions/2905#discussioncomment-8456277
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/repo-discussions/2905/comments/8456277 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240213/bac60459/attachment-0001.html>
More information about the Rpm-maint
mailing list