8000 mv: fails to copy special files across filesystems · Issue #7076 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
mv: fails to copy special files across filesystems #7076
Closed
@jfinkels

Description

@jfinkels

Environment: Ubuntu 20.04, uutils main branch (git commit 1e8e16b), GNU coreutils v8.30

Steps to reproduce:

# create a directory on a different filesystem
mkdir /dev/shm/tmp
# create a special file, in this case a FIFO
mknod pipe p
mv pipe /dev/shm/tmp

What happens now: uutils mv hangs indefinitely and never terminates.

What I expected to happen: GNU mv copies the special file to the target directory

Notes: this is causing a failure in the GNU test file tests/mv/mv-special-1.sh.

Because the source file and the destination are on different filesystems, the file is copied to the destination and then the source file is removed; this can be seen by passing the --verbose option:

$ mv --verbose pipe /dev/shm/tmp
copied 'pipe' -> '/dev/shm/tmp/pipe'
removed 'pipe'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0