[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: