🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Colin B Maharaj Mon, 25 Feb 2008 06:05
Getting physical drives from substituted partitioned raided
#693
Author: Colin B Maharaj
Date: Mon, 25 Feb 2008 06:05
27 lines
2061 bytes
Hi folks,
I have three hard disks on my PC
2 of em are in a RAID1 arrangement. (C:)
1 is stand alone (G:)
and
I have a drive letter F: created via a sub command
I run as a service on start DRIVEF.BAT whose source is
subst f: c:\Dev
See, all my batch files I use for archiving was originally
setup as drive F on and older PC, so I place my entire
Development environment in a Path c:\dev..
ANYWAY!...

I am writing this sorting application and I think I can get
better performance if I do asynchronous writes to temp paths
on each accessible drives HOWEVER!.....

I need to know which drives are physically independent of one another.
Imagine now that my drive c: also has a partition H:, then C: and H:
and F: are all physically be the same. Making temporary writes to all 
three will be useless. SO!.... (finally)

How can I truly get a reflection of which drives letters I can use
that will represent all the physically accessible drives independent
of one another (not including CDROM/Floppy).

Thanks for reading folks!
Re: Getting physical drives from substituted partitioned raided
#702
Author: Bob Gonder
Date: Wed, 27 Feb 2008 02:27
10 lines
1353 bytes
Colin B Maharaj wrote:

>How can I truly get a reflection of which drives letters I can use
>that will represent all the physically accessible drives independent
>of one another (not including CDROM/Floppy).

Answer should be in DeviceIoControl()
Thinking  IOCTL_DISK_GET_PARTITION_INFO
And  IOCTL_DISK_GET_DRIVE_LAYOUT
Along with  GetLogicalDriveStrings()
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads