On Fri, Jul 25, 2025 at 1:41 PM Pavel Raiskup <prais...@redhat.com> wrote:
>
> On pátek 25. července 2025 0:16:53, středoevropský letní čas Aoife Moloney 
> via devel-announce wrote: > Wiki - https://fedoraproject.org/wiki/Changes/
...
> > Hard links may be confusing if the file is ''modified''. In
> > particular, all links to the same inode share the same ownership and
> > permissions, and obviously the same contents. Thus, we want to apply
> > hardlinking only to files under `/usr`, which are generally read-only
> > in packages.
>
> My /usr directories are NOT read-only.  I have no intention of making the
> switch :shrug:.  I frequently modify /usr files when I'm debugging or
> temporarily fixing issues.
>
> I think we need at least a knob to disable this feature for certain
> installations, and a feature that would safely "unlink" those files if
> necessary, in case hardlinks inadvertently came to those systems with
> released Fedora images.
>

If you are modifying contents of /usr in-place on your running host
system... you are taking your life in your hands. That's pretty much
the largest foot-gun you can have. If you aren't debugging in a
container or a virtual machine, but instead polluting your own primary
operating environment, you have only yourself to blame when something
goes horribly wrong.

If you're talking about doing something like `make install` which is
putting work-in-progress content into /usr... that's unlikely to be
meaningfully affected here; it will not modify the existing files, it
will create new ones with new inodes and put them in the same
location. So that shouldn't be affected by this. However, if you're
actually hand-editing a file on disk that is now hardlinked in
multiple places, yeah: you're in for some pain. But on the flip side,
how likely is it that two packages that contain identical files
wouldn't be able to tolerate whatever change you are making anyway?

-- 
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to