Re: "dpkg --info" produces errors if /tmp NFS mounted

Trond Myklebust (trond.myklebust@fys.uio.no)
09 Mar 1999 14:50:48 +0100


Brian May <bam@snoopy.apana.org.au> writes:

>
> dpkg --info /home/ftp/files/linux/hurd-i386/base/timezones_2.0.110-0.1.deb
> [... good output deleted...]
> rm: /tmp/00545aaa/.nfs58031b3b00000013: Device or resource busy
> rm: /tmp/00545aaa: Device or resource busy
> rm cleanup failed, code 256

In NFS you cannot delete a file that another process is holding open
as this would cause the file to physically disappear. The standard
trick (on all UNIX NFS clients) is to rename the open file to some
unique and very unlikely name (typically .nfsxxxxx), and then to
postpone deleting it until it is closed. Since deleting such a file
makes no sense, it is not allowed.

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/