tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* ?Bug in mv in TU50
@ 2000-10-27 11:57 Michael A Crowley
  0 siblings, 0 replies; only message in thread
From: Michael A Crowley @ 2000-10-27 11:57 UTC (permalink / raw)
  To: tru64-unix-managers


I have experienced some odd problems with "mv" in TU50, without and
with patch level 1, in which the target file vanishes, sometimes
without an errorlevel being set.  

For example, in this code fragment (let's not worry
about why I'm doing this in this way):
               # added -f 20oct00 to see if it fixes problem
               mv -f /etc/passwd.pag.newone /etc/passwd.pag
               ErrPag=$?
               mv -f /etc/passwd.dir.newone /etc/passwd.dir
               ErrDir=$?
occasionally the pag or dir file vanishes, along with the source file.
Sometimes errorlevel is set to "2", but not always.  This has also
occurred intermittently with 'mv' of other system files that are
potentially being accessed by others.  

I have not yet done any tests of whether having the source file
open when a move is done has any effect.  But with that kind of
idea in mind with regard to the target files, I tried preceeding
the above with:
               mv /etc/passwd.dir /etc/passwd.dir-
               mv /etc/passwd.pag /etc/passwd.pag-
and the problem remains, even though when the failure occurs,
the two file moves just above have been successful (the
inode of what had been /etc/passwd.dir is now /etc/passwd.dir- ...).

Anyone seen or dealt with anything like this?

thanks,
-mike

-----------------------------------------------------------------------------
 Michael A. Crowley                   Director of Networking   
 mcrowley@mtholyoke.edu               216 Dwight Hall, Mount Holyoke College
 413-538-2140     fax: 413-538-2331   South Hadley, MA   01075-6415
 http://www.mtholyoke.edu/~mcrowley   http://www.mtholyoke.edu/lits/network
-----------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-10-27 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-27 11:57 ?Bug in mv in TU50 Michael A Crowley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox