Re: Unable to recirsively delete a directory

2007-10-17 Thread Andrew DeFaria

Igor Peshansky wrote:

On Tue, 16 Oct 2007, Dave Korn wrote:

  

On 16 October 2007 18:18, Paul McFerrin wrote:



I've been seeing this same problem
  

  Specifically on a NAS over SMB?  Or are you talking about something
you've seen happen on your local hard drive, which would very likely be
a completely different problem?



since B20!
  

  Say, you /could/ have mentioned it a little sooner ...  you've had
nearly ten years now to write a bug report, y'know!

  The only time I've ever seen anything like this is when I've messed
up, and the directory hasn't actually been empty, and I only thought it
was because I forgot the -a flag to ls, or I've mistyped something or
forgotten some perms.  Pilot error every time.  That's not to say it's
impossible, and my first line of attack would be Is this one of those
versioning NASs and is it perhaps treating the directory as
not-really-empty-because-you-might-want-to-roll-it-back-I-wonder?.



FWIW, you can also get this message if some program has an open handle to
either the directory itself or some file in that directory.  Usually
either a service or another shell...  Check the cwd of all shells, etc.
Igor
  

Try Process Explorer
--
Andrew DeFaria http://defaria.com
A friend of mine is into Voodoo Acupuncture. You don't have to go. 
You'll just be walking down the street, and...ohh, 
that's much better...



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



Re: Unable to recirsively delete a directory

2007-10-16 Thread Larry Hall (Cygwin)

[EMAIL PROTECTED] wrote:

Hi,

I am running XP SP2. I have a drive mapped (z:). See mount output. It is
a
NAS drive that supports smb.

sh-3.2$ mount
D:\cygwin\bin on /usr/bin type system (binmode)
D:\cygwin\lib on /usr/lib type system (binmode)
D:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
f: on /cygdrive/f type system (binmode,noumount)
y: on /cygdrive/y type system (binmode,noumount)
z: on /cygdrive/z type system (binmode,noumount)
 
I can read and write to the /z drive and I can delete individual files

but I
can't delete folders (rm -rf anypath) from the cygwin command line. I
get the followning error.
 
$ rm -rf /s/test/

rm: cannot remove directory `/s/test/': Directory not empty
 
I can delete folders if I use windows explorer, or in a Unix xterm. The

files belong to the user and are not locked. Does anyone have any ideas?


Let's start here:


Problem reports:   http://cygwin.com/problems.html


Include in your report a onsistent example and 'cygcheck rm' prior to your
example showing the problem.  Also, we need to know what kind of network
drive this is and where it's coming from.  My WAG right now is that 'rm'
isn't Cygwin's version outside of 'xterm'.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



Re: Unable to recirsively delete a directory

2007-10-16 Thread Paul McFerrin
I've been seeing this same problem since B20!  It usually involves 
deleting a large directory tree with a few thousand files.  I just 
switch to MS-Dos mode and use their rm command without any problem.  So 
yes, looks like more than one person has seen this problem. 


- Paul

Larry Hall (Cygwin) wrote:

[EMAIL PROTECTED] wrote:

Hi,

I am running XP SP2. I have a drive mapped (z:). See mount output. It is
a
NAS drive that supports smb.

sh-3.2$ mount
D:\cygwin\bin on /usr/bin type system (binmode)
D:\cygwin\lib on /usr/lib type system (binmode)
D:\cygwin on / type system (binmode)
c: on /cygdrive/c type system (binmode,noumount)
d: on /cygdrive/d type system (binmode,noumount)
f: on /cygdrive/f type system (binmode,noumount)
y: on /cygdrive/y type system (binmode,noumount)
z: on /cygdrive/z type system (binmode,noumount)
 
I can read and write to the /z drive and I can delete individual files

but I
can't delete folders (rm -rf anypath) from the cygwin command line. I
get the followning error.
 
$ rm -rf /s/test/

rm: cannot remove directory `/s/test/': Directory not empty
 
I can delete folders if I use windows explorer, or in a Unix xterm. The

files belong to the user and are not locked. Does anyone have any ideas?


Let's start here:


Problem reports:   http://cygwin.com/problems.html


Include in your report a onsistent example and 'cygcheck rm' prior to 
your

example showing the problem.  Also, we need to know what kind of network
drive this is and where it's coming from.  My WAG right now is that 'rm'
isn't Cygwin's version outside of 'xterm'.



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



Re: Unable to recirsively delete a directory

2007-10-16 Thread Larry Hall (Cygwin)

Paul McFerrin wrote:

Larry Hall (Cygwin) wrote:

Michael.MacAllister wrote:


snip


I can read and write to the /z drive and I can delete individual files
but I
can't delete folders (rm -rf anypath) from the cygwin command line. I
get the followning error.
 
$ rm -rf /s/test/

rm: cannot remove directory `/s/test/': Directory not empty
 
I can delete folders if I use windows explorer, or in a Unix xterm. The

files belong to the user and are not locked. Does anyone have any ideas?


Let's start here:


Problem reports:   http://cygwin.com/problems.html


Include in your report a onsistent example and 'cygcheck rm' prior to 
your

example showing the problem.  Also, we need to know what kind of network
drive this is and where it's coming from.  My WAG right now is that 'rm'
isn't Cygwin's version outside of 'xterm'.


I've been seeing this same problem since B20! It usually involves deleting a
large directory tree with a few thousand files. I just switch to MS-Dos mode
and use their rm command without any problem. So yes, looks like more than
one person has seen this problem.



I'll extend the same invitation to you as well then.  If you can provide
a reproducible problem report, that would be helpful.  Please use don't
provide it in the context of B20 though. ;-)


--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
 Q: Are you sure?
 A: Because it reverses the logical flow of conversation.
 Q: Why is top posting annoying in email?

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



RE: Unable to recirsively delete a directory

2007-10-16 Thread Dave Korn
On 16 October 2007 18:18, Paul McFerrin wrote:

 I've been seeing this same problem 

  Specifically on a NAS over SMB?  Or are you talking about something you've 
seen happen on your local hard drive, which would very likely be a completely 
different problem? 

 since B20!  

  Say, you /could/ have mentioned it a little sooner ...  you've had nearly ten 
years now to write a bug report, y'know!

  The only time I've ever seen anything like this is when I've messed up, and 
the directory hasn't actually been empty, and I only thought it was because I 
forgot the -a flag to ls, or I've mistyped something or forgotten some perms.  
Pilot error every time.  That's not to say it's impossible, and my first line 
of attack would be Is this one of those versioning NASs and is it perhaps 
treating the directory as 
not-really-empty-because-you-might-want-to-roll-it-back-I-wonder?.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


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



Re: Unable to recirsively delete a directory

2007-10-16 Thread Paul McFerrin



Larry Hall (Cygwin) wrote:

Paul McFerrin wrote:

Larry Hall (Cygwin) wrote:

Michael.MacAllister wrote:


snip


I can read and write to the /z drive and I can delete individual files
but I
can't delete folders (rm -rf anypath) from the cygwin command line. I
get the followning error.
 
$ rm -rf /s/test/

rm: cannot remove directory `/s/test/': Directory not empty
 
I can delete folders if I use windows explorer, or in a Unix xterm. 
The
files belong to the user and are not locked. Does anyone have any 
ideas?


Let's start here:


Problem reports:   http://cygwin.com/problems.html


Include in your report a onsistent example and 'cygcheck rm' prior 
to your
example showing the problem.  Also, we need to know what kind of 
network
drive this is and where it's coming from.  My WAG right now is that 
'rm'

isn't Cygwin's version outside of 'xterm'.

I've been seeing this same problem since B20! It usually involves 
deleting a
large directory tree with a few thousand files. I just switch to 
MS-Dos mode
and use their rm command without any problem. So yes, looks like more 
than

one person has seen this problem.



I'll extend the same invitation to you as well then.  If you can provide
a reproducible problem report, that would be helpful.  Please use don't
provide it in the context of B20 though. ;-)

Hey, I'm trying to forget the B20 days but someone keeps reminding me of 
found memories of those days.  I've keep closing the book on B20 but 
some how it just pops open.  :-(


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



RE: Unable to recirsively delete a directory

2007-10-16 Thread Igor Peshansky
On Tue, 16 Oct 2007, Dave Korn wrote:

 On 16 October 2007 18:18, Paul McFerrin wrote:

  I've been seeing this same problem

   Specifically on a NAS over SMB?  Or are you talking about something
 you've seen happen on your local hard drive, which would very likely be
 a completely different problem?

  since B20!

   Say, you /could/ have mentioned it a little sooner ...  you've had
 nearly ten years now to write a bug report, y'know!

   The only time I've ever seen anything like this is when I've messed
 up, and the directory hasn't actually been empty, and I only thought it
 was because I forgot the -a flag to ls, or I've mistyped something or
 forgotten some perms.  Pilot error every time.  That's not to say it's
 impossible, and my first line of attack would be Is this one of those
 versioning NASs and is it perhaps treating the directory as
 not-really-empty-because-you-might-want-to-roll-it-back-I-wonder?.

FWIW, you can also get this message if some program has an open handle to
either the directory itself or some file in that directory.  Usually
either a service or another shell...  Check the cwd of all shells, etc.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED] | [EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_Igor Peshansky, Ph.D. (name changed!)
 |,4-  ) )-,_. ,\ (  `'-'   old name: Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Belief can be manipulated.  Only knowledge is dangerous.  -- Frank Herbert

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