Removing a "busy" text file?
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. 
> 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 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
Could I ask why you're using samba to a RH8 system, rather than nfs?
More information about the users