This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: available for test: findutils-20041219-1


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]