delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/16/08:59:28

X-Spam-Check-By: sourceware.org
Message-ID: <a5f030530606160559r11ecf1far9a78eb2180b1500d@mail.gmail.com>
Date: Fri, 16 Jun 2006 08:59:12 -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: <20060616123743.GC10880@trixie.casa.cgf.cx>
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> <a5f030530606160435o3a8cdd3bne0c4899cbeebdfad AT mail DOT gmail DOT com> <20060616122412 DOT GB10880 AT trixie DOT casa DOT cgf DOT cx> <a5f030530606160528x5b5ebf5bm93e1be8d601e6fcb AT mail DOT gmail DOT com> <20060616123743 DOT GC10880 AT trixie DOT casa DOT cgf DOT cx>
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

> >>>NTFS and FAT file systems simply do not have the concept of inodes,
> >>>Cygwin is dependent upon the facilities supplied by these file systems.
> >>
> >>Actually NTFS does have something like an inode.  That's what Cygwin
> >>uses.
> >
> >Then why does this fail?  Please enlighten us?
>
> http://cygwin.com/ml/cygwin/2006-06/msg00347.html

This is the same email thread, nothing here that helps explain what
I'm asking.  Rereading it all I see is the reference to open
handles/handlers (Windows/UNIX terminology).  This is precisely what
an inode does in a Linux/UNIX file system, the kernel is given the
inode to hold as the handle to the open file.  If the directory entry
is detached from this inode, no problem, but the file is still open
and exists.  Ultimately the only difference is that UNIX/Linux says no
problem, Windows generates an error due to this difference.

> It has nothing to do with inodes.  There have been versions of UNIX
> which didn't allow you to remove a directory when someone has cd'ed to
> it, too.

Well, the UNIX/Linux rules don't change in this regard, this area has
been stable for as long as I've been using UNIX/Linux (20+ years).
This is one of the great strengths of UNIX, the basic rules are
simple, well understood and stable.  When you cd to a directory, you
are maintaining the directory as a open file.   It is more likely the
specific file system in use does or doesn't support inodes.

ext2/ext3 has been the predominate file system atleast in Linux,
althought there are many choices and ext2/ext3 is an inode based file
system.  I cannot say that all file system available are inode based,
but all the ones I've worked with in the last decade have been.

So this brings me back to my original question, what is it in NTFS
that provides Inode type functionality that Cygwin is leveraging?  The
inode functionality would disassociate a files meta-data from the
directory entry to allow the functionality we've been talking about as
well as hard links.

Thanks!

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019