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
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)
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)