🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2601

Re: Anybody know how to do this stuff?

#2601
From: Steve Koren
Date: Thu, 07 Dec 1989 02:21
28 lines
1765 bytes
Another "how do you do it" question:

I want to find out, for any given device name, whether that is a currently
mounted file system device.  Moreover, I want to do this without bringing
up the requester.  In short, I need a routine like this:

   int IsMounted(char *Device_Name) {}

First of all, I would expect that there would be an easy way to do it;
ie, something like the above function call.  If there is no programatic
interface to this, I will probably forget it until one appears.  Does
anyone know?  I can't find it documented anyplace, but it seems like a
logical thing to have.  (On the other hand, a way to execute programs
seems like a logical thing to have, too, and that's not there either, at
least not in a usable manner).

I tried to write such a function using ARP's AddDADevs() call, but I had
problems with that.  They have a flag called DLX_UNMOUNTED which you can
examine, but it is only valid for "volume" names, not device (like df0:)
or "dir names" (like c:).  It tells me that df0: is always mounted, even if
it contains no disk, and it tells me that c: is never mounted, even though
it is assigned someplace.  In short, it doesn't do me any good.

Anybody know if my IsMounted() funtion exists, or if not, when it might
appear?

       - steve
Technical Details
Message-ID: <13920027@hpfelg.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!hpfelg!koren
References: <13920020@hpfelg.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcso!hpfelg!koren
From: koren@hpfelg.HP.COM (Steve Koren)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Anybody know how to do this stuff?
Message-ID: <13920027@hpfelg.HP.COM>
Date: 7 Dec 89 02:21:48 GMT
References: <13920020@hpfelg.HP.COM>
Organization: HP Elec. Design Div. -FtCollins
Lines: 28