Questions tagged [unlink]

4 questions
32
votes
11 answers

How to make `rm` faster on ext3/linux?

I have ext3 filesystem mounted with default options. On it I have some ~ 100GB files. Removal of any of such files takes long time (8 minutes) and causes a lot of io traffic, which increases load on server. Is there any way to make the rm not as…
user13185
2
votes
3 answers

PHP unlink() deleting file user has no permission to

A bit of a long shot here but thought I'd see if anyone had a fix for this: I am having an issue whereby the PHP function unlink() is being able to successfully delete a file even though explicit deny NTFS permissions have been applied to the file…
1
vote
0 answers

Can NFS unlink and recreate result in a race condition?

I'm seeing strange behavior and I'm wondering if it's a race condition. The strange behavior is MySQL getting EEXIST when trying to create a temporary file. MySQL reuses temp file names by default, and because it chooses names in order from a pool…
Bill Karwin
  • 206
  • 1
  • 7
0
votes
3 answers

PHP unlink can't delete file while I can unlink this file in Linux shell

There is a file(644, owner:apache) that I can't delete it using a PHP script with unlink function. I can't figure it out why unlink fails to delete this file. BTW, I have tried fclose it before unlink it. Unfortunately, it still didn't…
David Liu
  • 313
  • 1
  • 3
  • 6