From: Hugh Sasse Date: 2008-10-22T18:53:01+09:00 Subject: Re: Cygwin: Dir.glob ALWAYS accesses floppy?? On Wed, 22 Oct 2008, Robert Klemme wrote: > Welcome back, Hugh! I'll probably disappear again soon, the traffic levels are rather high :-) But I'll be back from time to time. > > 2008/10/21 Hugh Sasse : > > > > > > On Wed, 22 Oct 2008, Victor H. Goff III wrote: > > > > I'm avoiding that, I'm doing > > Dir.["/cygdrive/c/Documents and Settings/hgs/**/*{.rb,.pl,.txt}"] > > which should not go near /dev or /cygdrive/a. > > If I break that up to not use ** but glob each directory in turn, > > the A: drive gets hammered with activity, one hit per glob. This is > > on WinXP SP3, by the way. > > I do not have this issue with my cygwin 1.5.25. > > > I'm at a loss to account for this.... > > Did you check your environment for critical entries that point to the > floppy, like PATH, HOME, LD_LIBRARY_PATH, RUBYLIB? You could also use None of those reference /cygdrive/a or A: > "strace" to see what the interpreter does - maybe that gives you a Hmm, strange. strace ruby -e 'puts Dir["/cygdrive/c/*{.txt,.bat}"]' doesn't touch the A drive. I wonder. I'll have to strace the program I'm running, itself. Probably something messes with the definition of glob. It's ferret_helper, from Stuart Rackham, which I've modified in other places but nothing directly to do with Dir[]. > hint what causes the floppy access. The only other thing that comes to > mind is a virus scanner that for some reason during drive accesses > checks the floppy. Does Symantec Endpoint Protection do that? Why not for the short example? It will take me a while to figure that out! > > Kind regards > > robert > > -- > remember.guy do |as, often| as.you_can - without end I'm still lost for words about that.... > Hugh