Web lists-archives.com

Re: du core dump if run on directory being deleted?




On 5/22/2018 8:24 AM, Dan Kegel wrote:
> (Oh, and running du sometimes causes the delete to emit warnings like
> 
> build.deleteme.8300\src\THIRD_~1\webgl\src\sdk\tests\CONFOR~1\ogles\GL
> - The directory is not empty.
> 
> Evidently du holds the directory open, or something. )

While doing this on *NIX OS systems doing the same on Windows is not
advised.  Yes du would hold a directory open while it is summarizing the
sizes causing Windows to not to be able to delete it.  This works on
*NIX OS because it uses inode scheme while Windows doesn't do this.
With an inode, the inode can be deleted while the corresponding entry
can remain open until it is closed.  There are just some things that
cannot be emulated.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple