delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <a5f030530606160435o3a8cdd3bne0c4899cbeebdfad@mail.gmail.com> |
Date: | Fri, 16 Jun 2006 07:35:27 -0400 |
From: | "Brett Serkez" <bserkez AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Unable to delete directory in Cygwin |
In-Reply-To: | <143umqixuj7aa$.q6uf55wgjg5t$.dlg@40tude.net> |
MIME-Version: | 1.0 |
References: | <1F211FE03383644EAA6BB7A52FCD9B9B0927A0 AT sohm DOT kpit DOT com> <1F211FE03383644EAA6BB7A52FCD9B9B0927A4 AT sohm DOT kpit DOT com> <143umqixuj7aa$.q6uf55wgjg5t$.dlg AT 40tude DOT net> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
<snip> > mkdir test && cd test && rmdir ../test > does work in Linux but not under Windows and therefor not under > Cygwin. This works under Linux/UNIX as the rmdir removes the directory entry, disassociating it from the inode, the files still exist as the OS is using the inode as the handle. When this disassociation from the inode occurs, the link count in the inode is decremented. When the files and directory finally close, the OS sees that the link count is zero and physically deletes the directory and files. This notion of an inode and directory entry pointing to the inode is what allows hardlinks in Linux/UNIX. The notion of deleting the directory entry while a file is still open is a long used trick to make sure that temporary files are never accidentally reopened unintentionally and insures deletion (zero link count) should the process or OS crash. > Cygwin can't break Windows rules. Under Linux you can name a file c:, > under Windows and under Cygwin not. NTFS and FAT file systems simply do not have the concept of inodes, Cygwin is dependent upon the facilities supplied by these file systems. Brett -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |