On Fri, Mar 19, 2004 at 10:42:35AM -0800, Jacob Meuser wrote:
> On Thu, Mar 18, 2004 at 09:16:59PM -0800, Cory Petkovsek wrote:
> > Over a solaris nfs, in freebsd I told it to mv a symlink to another directory.
> > However the linked directory was moved into the target dir instead of the
> > symlink.  What's up with that?!  
 
> Or were you doing something more complex, like moving a symlink across
> a filesystem?  From local to nfs?
I'm not renaming a link.  I'm moving a link from one dir to another, however
freebsd in some cases moves the directory that the link points to.

> Why do you assume it's something with the freebsd mv, and not even
> consider solaris's nfs?  Did you try the exact same thing from a
> linux or solaris client?
Sensitive!

Here I figured out more specifics.
linux client/solaris nfs:
$ ls -l 
lrwxrwxrwx    1 cory     cory            7 Mar 18 21:31 burn -> ../burn
drwxr-xr-x    3 cory     cory          512 Mar 19  2004 pub
$ ls -ld ../burn
drwxr-sr-x    8 cory     cory          512 Mar 19  2004 ../burn
$ mv burn pub
$ ls -l
drwxr-xr-x    3 cory     cory          512 Mar 19  2004 pub
$ ls -l pub
lrwxrwxrwx    1 cory     cory            7 Mar 18 21:31 burn -> ../burn
Same thing happens if I issue "mv burn/ pub" (link moves)
Same thing happens with solaris client/solaris nfs.
Same thing happens with freebsd client/solaris nfs.

However on freebsd if I type "mv burn/ pub" it moves the target directory, not
the symlink:

$ ls -ld ../burn
drwxr-sr-x  8 cory  10  512 Mar 19 17:21 ../burn/
$ ls -l
lrwxrwxrwx  1 cory  10      7 Mar 19 17:22 burn@ -> ../burn
drwxr-xr-x  3 cory  cory  512 Mar 19 17:30 pub/
$ mv burn/ pub
$ ll
lrwxrwxrwx  1 cory  10      7 Mar 19 17:22 burn@ -> ../burn
drwxr-xr-x  4 cory  cory  512 Mar 19 17:30 pub/
$ ls -ld ../burn
ls: ../burn: No such file or directory

I also determined that this behavior also occurs on freebsd's local filesystem.

Cory

--
Cory Pytkovyek                                       Adapting Information
Adaptable IT Consulting                                Technology to Your
(858) 705-1655                                                   Business
[EMAIL PROTECTED]                                  www.AdaptableIT.com
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to