NVIDIA / proxyfs

Apache License 2.0
64 stars 25 forks source link

resolve error #653

Open brandon-m-wang opened 2 years ago

brandon-m-wang commented 2 years ago

Noticed that there were mtime change at every condition. I preserved the mtime change in the following cases:

e.g.

We have dir/z

mv z y stat y -> only ctime changed stat dir -> ctime, mtime changed

And removed the mtime change in the following cases:

POSIX ctime/mtime test output:

+ TESTCASE=posix/ctime-mtime/rename-ctime-mtime.py
+ TESTCASE_STRIPPED=posix/ctime-mtime/rename-ctime-mtime
+ echo '@ posix/ctime-mtime/rename-ctime-mtime'
+ tee -a /home/swift/code/functional-tests/functional/tap/tmp_results.txt
@ posix/ctime-mtime/rename-ctime-mtime
+ mkdir -p /mnt/tap/posix/ctime-mtime/rename-ctime-mtime
+ start=0
+ sh
1..10
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
+ echo 'Elapsed time for posix/ctime-mtime/rename-ctime-mtime: 8 seconds'
Elapsed time for posix/ctime-mtime/rename-ctime-mtime: 8 seconds