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..)

> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list