GNU bug report logs - #61050
mv: add support for --one-file-system

Previous Next

Package: coreutils;

Reported by: Mike Frysinger <vapier <at> gentoo.org>

Date: Wed, 25 Jan 2023 01:21:01 UTC

Severity: wishlist

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Mike Frysinger <vapier <at> gentoo.org>
Cc: 61050 <at> debbugs.gnu.org
Subject: bug#61050: mv: add support for --one-file-system
Date: Wed, 25 Jan 2023 01:07:48 -0800
[Message part 1 (text/plain, inline)]
On 2023-01-24 17:20, Mike Frysinger wrote:
> i'd like to require that the mv be
> atomic when relocating a directory, and if it isn't, fallback to other
> logic

Calling the new option "--one-file-system" sounds a bit wrong, as 
--one-file-system is for programs like 'du' and 'cp' and causes them to 
not cross a file system boundary when recursing - something that 'mv' 
could also do (when it falls back on copying), but which is a different 
thing than what you're asking for.

How about if we call the new option --no-copy instead? Something like 
the attached incomplete patch, say. (It needs more documentation and 
ideally a test case.)
[no-copy.diff (text/x-patch, attachment)]

This bug report was last modified 2 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.