dCache / dcache

dCache - a system for storing and retrieving huge amounts of data, distributed among a large number of heterogenous server nodes, under a single virtual filesystem tree with a variety of standard access methods
https://dcache.org
292 stars 136 forks source link

chimera: don't update file mtime on hard links creation #7562

Closed kofemann closed 4 months ago

kofemann commented 7 months ago

Motivation: According to POSIX, file mtime should be updated only when file content has been changed, thus creating a hardlink must not modify it.

Modification: added unit test to ensure posix behaviour. The inc/decNlink is split into two methods - one for directories, where nlink update associated with mtime update, and for files, where nlink update is independent of file modification.

Result: improved POSIX compliance.

Fixes: #7552 Acked-by: Lea Morschel Target: master, 10.0, 9.2 Require-book: no Require-notes: yes (cherry picked from commit bf4e865732f46a755219146359117f775913c406)

kofemann commented 4 months ago

The demanding community migrated to 10.0.6