Removing a "busy" text file?

Laurence laurence at orchards.org.uk
Wed Feb 2 12:26:40 UTC 2005


On Mon, 2005-01-31 at 18:59 +0000, James Wilkinson wrote:
> Richard S. Crawford wrote:
> > richard at seamus: ~/music/Howard Shore
> > $ rm -rf THELO~1H/
> > rm: cannot remove `THELO~1H//Concerning Hobbits.mp3': Text file busy
> 
> Turns out that this is on a Samba drive.
> 
> For what it's worth, I believe that this is significant. Unix natively
> is quite happy to let you unlink (= remove from the file tree) an open
> file: a number of programs explicitly use this to ensure that their
> temporary files go away when they finish. [1]
> 
> SMB  / CIFS, coming from the DOS / OS/2 / Windows world, doesn't have
> this concept. When a file is open, it's kept busy, and you can't delete
> it.
> 
> It looks like Linux and rm understand this concept for SMB shares. It's
> the approach that causes the fewest problems, but it is still not pure
> Unix.
> 
> James. 

Hi

Could I ask why you're using samba to a RH8 system, rather than nfs?

Laurence




More information about the fedora-list mailing list