Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577126 - sys-apps/portage: egencache: always create a new inode (break hardlink) when writing a file
Summary: sys-apps/portage: egencache: always create a new inode (break hardlink) when ...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 240187
  Show dependency tree
 
Reported: 2016-03-12 07:43 UTC by Zac Medico
Modified: 2022-10-20 02:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zac Medico gentoo-dev 2016-03-12 07:43:27 UTC
When writing a file, creating a new inode has some clear advantages:

1) existing files can be replaced atomically with os.rename()
2) leads to copy-on-write behavior with hardlinks, which is useful if someone wants to use hardlinks to create copy-on-write repository snapshots on a filesystem such as ext4 (no need for btrfs or zfs)
Comment 1 Zac Medico gentoo-dev 2016-03-12 18:52:48 UTC
A fix for egencache --write-timestamp is now in the master branch:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=4ec443f2ac57040304107720f24cad6b4651c7a4

We still need to fix --update-use-local-desc and --update-changelogs.