Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei From: fjrei@kbsaar.UUCP (Franz-Josef Reichert) Newsgroups: comp.sys.amiga.programmer Subject: Re: Device List Message-ID: Date: 28 Jun 91 20:09:27 GMT References: <1991Jun25.131549.25837@ira.uka.de> Organization: Private Amiga Site Lines: 34 In article <1991Jun25.131549.25837@ira.uka.de> S_ASCHMIDT@iravcl.ira.uka.de (|S| Angela Schmidt) writes: >In ad99s461@sycom.UUCP writes: > >> Help! I am desperate need of information on scanning the Device List. >> [...] > >I've included a part of my program which scans the devicelist for >DLT_DEVICE (DF0:, DF1:, DH0:, RAD:,...) > >Try to change DLT_DEVICE to DLT_VOLUMES (= Disk names) or DLT_DIRECTORY >(= ASSIGNS) and leave "if (fssm!=0)" out. > >Remember that RAM: is no device, so you won't find it using DLT_DEVICE! Of course it is. But since it has dn_Startup set to zero, you will not be able find it. > if (dn->dn_Task) { > fssm=(struct FileSysStartupMsg *) (dn->dn_Startup<<2); > if (fssm!=0) { /* StartupMessage for disks */ Would you like to see PAR: or PRT:? This might happen, since they have both dn_Task and dn_Startup set to a positive value when doing their job. My suggestion: Send a packet ACTION_DISK_INFO to each handler (dn_Task) and see if it responds properly. >Angela -- Best regards, Franz-Josef Reichert VOICE: +49 6805 7417 Kuchlingerstrasse 13 UUCP: ...uunet!cbmvax!cbmehq!cbmger!kbsaar!fjrei D-6601 Kleinblittersdorf GERMANY