[Info-vax] Long uptime cut short by Hurricane Sandy

Paul Sture nospam at sture.ch
Sat Feb 2 07:18:38 EST 2013


In article <kegcqk$nke$2 at dont-email.me>,
 Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:

> From the man page on the RHEL clone box I am currently using:
> 
> -----------------------------------------------------------------------------
> NAME
>        rename - Rename files

...


> 
> SEE ALSO
>        mmv(1), mv(1)
> 
>                                 1 January 2000                       RENAME(1)
> -----------------------------------------------------------------------------

What is mmv?  I don't have it anywhere here.

The OS X version of 'man rename' gives help on the BSD system call 
'rename'; the utility itself does not exist.

There's an interesting caveat section:

-------------------------------------------------------------------------
CAVEATS
The system can deadlock if a loop is present in the file system graph.
This loop takes the form of an entry in directory `a', say `a/foo', being
a hard link to directory `b', and an entry in directory `b', say `b/bar',
being a hard link to directory `a'.  When such a loop exists and two sep-
arate processes attempt to perform `rename a/foo b/bar' and `rename b/bar
a/foo', respectively, the system may deadlock attempting to lock both
directories for modification.

Whether or not hard links to directories are supported is specific to the
underlying filesystem implementation.

It is recommended that any hard links to directories in an underlying
filesystem should be replaced by symbolic links by the system administra-
tor to avoid the possibility of deadlocks.

Moving or renaming a file or directory into a directory with inheritable
ACLs does not result in ACLs being set on the file or directory. Use
acl(3) in conjunction with rename() to set ACLs on the file or directory.
-------------------------------------------------------------------------

-- 
Paul Sture



More information about the Info-vax mailing list