Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Thu, 23 Dec 2004 23:39:43 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: available for test: findutils-20041219-1 Message-ID: <20041224043943.GB22309@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <20041219203809 DOT GA32005 AT trixie DOT casa DOT cgf DOT cx> <41CB9C86 DOT DF363492 AT dessent DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41CB9C86.DF363492@dessent.net> User-Agent: Mutt/1.4.1i On Thu, Dec 23, 2004 at 08:35:18PM -0800, Brian Dessent wrote: >Anyway. Having not used a floppy disk in months, I immediately ruled >out the MRU theory. This was annoying enough that I built a debug >version of findutils from the 20041219-1 source and stepped through it >with gdb. The floppy seek occurs in the following section of code in >mountlist.c, starting at line 324: > > while ((mnt = getmntent (fp))) > { > me = xmalloc (sizeof *me); > me->me_devname = xstrdup (mnt->mnt_fsname); > me->me_mountdir = xstrdup (mnt->mnt_dir); > me->me_type = xstrdup (mnt->mnt_type); > me->me_type_malloced = 1; > me->me_dummy = ME_DUMMY (me->me_devname, me->me_type); > me->me_remote = ME_REMOTE (me->me_devname, me->me_type); > devopt = strstr (mnt->mnt_opts, "dev="); > if (devopt) > me->me_dev = strtoul (devopt + 4, NULL, 16); > else > me->me_dev = (dev_t) -1; /* Magic; means not known yet. */ > > /* Add to the linked list. */ > *mtail = me; > mtail = &me->me_next; > } > > if (endmntent (fp) == 0) > goto free_then_fail; > >This is a simple enumeration of the mounts. Right. And /cygdrive/a is one of the mounts. Someone else already pointed to the change in Cygwin which removed the exception so that floppy drives showing up in the mount table. So, you now see where the problem is coming from. This is code that has been in Cygwin for more than a year. cgf -- 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/