Repository navigation
mv: improve the hardlink support - #8296
Conversation
|
GNU testsuite comparison: |
Kudos, three passing GNU tests :) Unfortunately, there is also a regression:
|
There was a problem hiding this comment.
You already test moving a file and a hard link in test_mv_preserves_hardlinks_across_partitions and thus I wouldn't do it again in this test function.
There was a problem hiding this comment.
The naming with "a_file" and "second_file" feels a bit odd. Maybe it would be better to use names that contain "a1" and "b1", similar to the naming on lines 2096/2097?
There was a problem hiding this comment.
I don't know what the purpose of this test is: the function name and the comment indicate the test is related to some error handling, but there is no error. Currently, it looks like the test function is a duplicate of test_mv_move_file_into_dir.
There was a problem hiding this comment.
This test function also looks like a duplicate of test_mv_move_file_into_dir.
There was a problem hiding this comment.
This test function also looks like a duplicate of test_mv_move_file_into_dir.
There was a problem hiding this comment.
I think you could use a similar approach as on lines 659 - 662 and use the same call of rename for both unix and non-unix.
|
GNU testsuite comparison: |
Should fix GNU tests/mv/part-hardlink.sh tests/mv/hard-link-1.sh Co-authored-by: Daniel Hofstetter <[email protected]>
b2aeefd to
232233c
Compare
|
GNU testsuite comparison: |
No description provided.