*BSD News Article 45433


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!hookup!usc!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!narcisa.sax.de!not-for-mail
From: j@narcisa.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Moving directories across filesystems
Date: 14 Jun 1995 10:07:52 +0200
Organization: Private U**x site, Dresden.
Lines: 31
Message-ID: <3rm5co$4g4@bonnie.tcd-dresden.de>
References: <3r7c0h$qn1@news.bu.edu> <3rhvhr$r2h@si-nic.hrz.uni-siegen.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Peter Merz <peter@netz.hrz.uni-siegen.de> wrote:

>: I tried to :
>: 	mv /root /usr/home/root
>: And it failed (/usr was mounted on another partition). Is this a correct 
>: behavior now? Files are moved just fine 

>That's the right behaviour. You cannot move dircetories across filesystems.

It used to work in 1.1.5.1 though.  `mv' was smart enough to handle
this:

j@bonnie 114% pwd
/a/users/j/menu
j@bonnie 115% /sbin/mount
...
/dev/sd0g on /tmp (local, NFS exported)
/dev/sd1e on /b (local, NFS exported)
/dev/sd2e on /a (local, NFS exported)
j@bonnie 116% mkdir foo
j@bonnie 117% touch foo/bar
j@bonnie 118% touch foo/mumble
j@bonnie 119% mv foo /tmp
j@bonnie 120% ls /tmp/foo
/tmp/foo:
bar     mumble  
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)