Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!hacgate!tcville!sed170!lee From: lee@sed170.HAC.COM (John Lee) Newsgroups: comp.sys.amiga.tech Subject: Re: Determining disk devices (Summary) Summary: It's not boolean. Sigh. Message-ID: <333@sed170.HAC.COM> Date: 9 Jan 90 21:51:14 GMT Reply-To: lee@sed170.UUCP (John Lee) Organization: Hughes Aircraft Co., El Segundo, CA Lines: 37 Thanks everyone! It's a shame it's not simple (yet), but then anything worth anything rarely is. Here are the summaries of how to find only those devices in the system device list that are disks: (From Doug Teeter :) [Doug E-mailed me a bit of code for Manx C that prints out all disk volume and their devices. Basically, it scans the device list, queries each device with a ACTION_DISK_INFO packet, verifies the DiskType return, and for each device, rescans the device list for volumes, printing the device and volume name if the volume's task is the same as the device's. E-mail me if you'd like it.] (From Andy Finkel :) >Well, until the recent spate of handlers, there was a packet or >two that could tell the difference between a handler and a filesystem... >(and there will be a way again in the future) > >For now (and, if you always want to be safe) run through the list >twice, and only report the devices that have matching volume nodes. > > andy (From Chuck McManis :) >Check for an ENVIRONMENT vector. Or send an ACTION_DISK_INFO packet to >the Task you found and see if it knows what to do with it. > >--Chuck McManis --John ------------------------------------------------------------------------------- Raining CATS and DOGS? Join the RATS: Remote Amiga Teleconferencing System +--------+ John Lee | HUGHES | +--------+ ARPAnet: jhlee@hac2arpa.hac.com Hughes Aircraft Company The above opinions are those of the user and not of those of this machine.