From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10109302021.AA13515@clio.rice.edu> Subject: Re: mntent problem summary on Win2K/XP To: eliz AT is DOT elta DOT co DOT il Date: Sun, 30 Sep 2001 15:21:17 -0500 (CDT) Cc: djgpp-workers AT delorie DOT com In-Reply-To: <9003-Sun30Sep2001093244+0300-eliz@is.elta.co.il> from "Eli Zaretskii" at Sep 30, 2001 09:32:44 AM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > > My CDROM drive is mounted and ready but it does not show up at all > > (not debugged yet). > > The CD-specific calls in cdrom_drive_ready probably don't work as > expected... Actually this is a problem related to the volume label call failing. There is code: /* CD-ROM without a label is taken as an empty CD drive or an audio disk, and not reported. This is because MSCDEX doesn't fail `_truename' for these cases and some DOS clones, such as NT, don't even emulate the drive empty bit reliably. I have never seen a CD-ROM without a label. Anybody? */ else if (mnt_type == NAME_cdrom) got_fsname = 0; Which was causing the problem. If I add && _os_trueversion != 0x532) to this line, my CD displays when it's in, but not when it's out. But the comment says NT doesn't emulate drive empty bit reliably - so this would be not quite right on NT 4.0 (I can confirm this). So is it better to display a drive which isn't ready on NT4, or not display a drive which is ready on Windows 2000? Even better yet, is there a reliable way on Windows 2000 to get a volume label...