thanks.. but for me that shows the same device inside and outside a --bind,
unfortunately that doesn't provide a clue that mv will copy&delete instead
of rename.

On Thu, Dec 2, 2010 at 19:55, Brad
<brad+tclug at mifflinet.net<brad%2Btclug at mifflinet.net>
> wrote:

> you can use "stat -c %d FILENAME" -- compare for both files. i just
> tested and it works for me showing the real device under a bind mount.
>
> On Tue Nov 16, 2010 at 10:22:13AM -0600, gregwm wrote:
> > can anyone show me a bash test to put before mv that will tell whether mv
> > will do a simple rename or a copy and delete?  for example for mv into a
> > --bind mount, df reports both locations as within the same fs, yet mv
> will
> > copy and delete.  the best test I can think of would create a file, mv
> and
> > see what happens.  can anyone concoct an accurate test that doesn't need
> to
> > create a test file?  (or perhaps reveal an mv alternative..)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20101202/dc9f5c75/attachment.htm