delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/09/11/06:59:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sat, 11 Sep 2010 12:59:03 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: rm -r removes directory but reports "cannot remove 'dir', directory not empty"
Message-ID: <20100911105903.GO16534@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <BAY158-w40010A3D63EB6665F594A6B1740 AT phx DOT gbl>
MIME-Version: 1.0
In-Reply-To: <BAY158-w40010A3D63EB6665F594A6B1740@phx.gbl>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

On Sep 10 23:32, Saurabh T wrote:
> 
> > What is that I: drive?  What does `mount' print as filesystem type of
> > /cygdrive/i, and what does `/usr/lib/csih/getVolInfo /cygdrive/i'
> > print(*)?  I assume I: is not Samba, right?
> > Corinna
> 
> mount shows:
> I: on /cygdrive/i type cifs (binary,posix=0,user,noumount,auto)
> compared to
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> 
> > /usr/lib/csih/getVolInfo /cygdrive/
> Device Type        : 7
> Characteristics    : 10
> Volume Name        : <build>
> Serial Number      : 110167052
> Max Filenamelength : 255
> Filesystemname     : <NTFS>
> Flags              : 3
>   FILE_CASE_SENSITIVE_SEARCH  : TRUE
>   FILE_CASE_PRESERVED_NAMES   : TRUE
>   FILE_UNICODE_ON_DISK        : FALSE
>   FILE_PERSISTENT_ACLS        : FALSE
>   FILE_FILE_COMPRESSION       : FALSE
>   FILE_VOLUME_QUOTAS          : FALSE
>   FILE_SUPPORTS_SPARSE_FILES  : FALSE
>   FILE_SUPPORTS_REPARSE_POINTS: FALSE
>   FILE_SUPPORTS_REMOTE_STORAGE: FALSE
>   FILE_VOLUME_IS_COMPRESSED   : FALSE
>   FILE_SUPPORTS_OBJECT_IDS    : FALSE
>   FILE_SUPPORTS_ENCRYPTION    : FALSE
>   FILE_NAMED_STREAMS          : FALSE
>   FILE_READ_ONLY_VOLUME       : FALSE
>   FILE_SEQUENTIAL_WRITE_ONCE  : FALSE
>   FILE_SUPPORTS_TRANSACTIONS  : FALSE
> 
> I believe I: is Samba (says so in "My Computer").

I don't think so.  It's not recognized as Samba by Cygwin because
the FILE_PERSISTENT_ACLS flag is not set.  That should always be
set by Samba when faking an NTFS.  However, this gives us potentially
a lever to workaround your problem.

I've checked in a change to rmdir into CVS.  Please test your case
with the next developer's snapshot from http://cygwin.com/snapshots/
and report back.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


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