rmw won't move files across bind mounts (even if they share the same underlying filesystem) #523
durable-vest
started this conversation in
Feature Requests
Replies: 1 comment
-
|
@durable-vest What I do in that case is add a separate trash folder (a path at the top level of the bound filesystem) to my I'm not sure yet if implementing something like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If the file to be trashed (
some_file) is on a bindmount and the trash folder (trash_folder) isn't, then rmwrc will fail even ifsome_fileandtrash_foldershare the same underlying filesystem.The use case for such a setup is on a NixOS system running impermanence, not sure if this is something that's supported.
One idea to work around this is to add a
--move-across-filesystemsflag that falls back tomvwhen the files are across filesystems (i.e.cp some_file trash_folder && rm some_file).Reproduction steps
Tested on Arch Linux using an ext4 filesystem mounted to
/mnt, rmw built from source at 6a78b31Expected Behavior
The file moves across bind mounts
Actual Behavior
Beta Was this translation helpful? Give feedback.
All reactions