-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
mv: fix moving FIFO to a different filesystem #7241
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
GNU testsuite comparison:
|
c9d7d0f
to
5cbcfb0
Compare
GNU testsuite comparison:
|
GNU testsuite comparison:
|
#[ignore = "requires access to a different filesystem"] | ||
#[test] | ||
fn test_special_file_different_filesystem() { | ||
let (at, mut ucmd) = at_and_ucmd!(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#7249
might be useful :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just now tried to use the new TestScenario::mount_temp_fs()
but I couldn't figure out how to get this test working with it. I just left a TODO comment mentioning it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matrixhead any idea ? :)
GNU testsuite comparison:
|
f018879
to
90465ac
Compare
GNU testsuite comparison:
|
@jfinkels sorry but could you please rebase it? |
I'll do that, but I'll also break some of these changes out into smaller pull requests. |
90465ac
to
3b224bc
Compare
Fix a bug in `mv` where it would hang indefinitely while trying to copy a FIFO across filesystems. The solution is to remove the old FIFO and create a new one on the new filesystem. Fixes uutils#7076
3b224bc
to
2717f9c
Compare
GNU testsuite comparison:
|
Fix a bug in
mv
where it would hang indefinitely while trying to copya FIFO across filesystems. The solution is to remove the old FIFO and
create a new one on the new filesystem.
The first commit factors out helper functions from theThis was done in pull request #7774rename_with_fallback()
functionso that there is one fallback helper per file type (symlink, directory,
or file). This doesn't change the functionality of
mv
, it is just are-organization of the code.
Fixes #7076