English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   Coders. System (http://eab.abime.net/forumdisplay.php?f=113)
-   -   Matching device names with volume names. (http://eab.abime.net/showthread.php?t=79218)

Thorham 27 July 2015 12:31

Matching device names with volume names.
If I have a device name and I want the matching volume name (or vica versa, see example below), do I have to mess around with the DosList?


HD0: finds Workbench:
Workbench: finds HD0:

thomas 27 July 2015 13:12

It depends a bit on the purpose of that all. If you want to make a list of device names for example, then you have to traverse the dos list anyway. Then it is not a big deal to traverse it again to find the corresponding volume names.

If you want to do it just once, well for the first case you could just Lock() the device name and Examine() it to find the volume name.

For the second case I don't remember if there is any function which returns the device name. It's probably up to the dos list again...

To match a device node with the corresponding volume node in the dos list you can use the dol_Task field.

Thorham 27 July 2015 13:20

That's quite clear, thanks :great

All times are GMT +2. The time now is 18:38.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.03995 seconds with 11 queries