Re: Fastest way of removing very large number of files?

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



On Thu, 2013-08-22 at 23:40 -0600, Frank Cox wrote:
> On Fri, 23 Aug 2013 07:34:50 +0200
> Rafał Radecki wrote:
> 
> > Can you recommend something? I use an ext4 filesystem.
> 
> Without actually trying to to see, I suspect that a C program that calls 
> remove() would probably be faster than just about anything else.
> 

I agree with what you are saying, and I think you may even want to use
unlink() if they are all files, no dirs. remove() actually will call
unlink() so you may be able to save few function calls and logical
statements.

-- 

Regards,

Xinyun ZHOU


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux