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.<br><br><div class="gmail_quote">On Thu, Dec 2, 2010 at 19:55, Brad <span dir="ltr"><<a href="mailto:brad%2Btclug@mifflinet.net">brad+tclug@mifflinet.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">you can use "stat -c %d FILENAME" -- compare for both files. i just<br>
tested and it works for me showing the real device under a bind mount.<br>
<div><div></div><div class="h5"><br>
On Tue Nov 16, 2010 at 10:22:13AM -0600, gregwm wrote:<br>
> can anyone show me a bash test to put before mv that will tell whether mv<br>
> will do a simple rename or a copy and delete? for example for mv into a<br>
> --bind mount, df reports both locations as within the same fs, yet mv will<br>
> copy and delete. the best test I can think of would create a file, mv and<br>
> see what happens. can anyone concoct an accurate test that doesn't need to<br>
> create a test file? (or perhaps reveal an mv alternative..)<br>
</div></div></blockquote></div>