RE: GetPartInfo BootIndicator on recently activated partition

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

V.V.Gatt_at_nospam.com
Date: 08/10/04


Date: Tue, 10 Aug 2004 15:05:09 -0700

v-raygon@online.microsoft.com (Rhett Gong [MSFT]) wrote in
news:RpvPIesfEHA.3356@cpmsftngxa06.phx.gbl:

> Hi V.V.
> After the system is booted up, the PARTITION_INFORMATION is stored in
> the system cache. By calling
> DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) you just send an irp to
> the driver, and driver returns the partition information in the cache.
> Setting the drive to active in mng tool does not change
> PARTITION_INFORMATION in the cache, it only marks the drive as active.
> The new PARTITION_INFORMATION will not take effect before the you
> reboot you system.
>

I suspected something like this... Not very efficient or consistent, but
anyway, we have to deal with Windows as it is. Yet if this could be
changed in a future release or service pack, or even documented...

Anyway...

How dos Disk Management snap-in does to get the "IsPartitionActivated"
parameter ?

If I activate a partition in Disk Management snap-in, closes
Disk Management snap-in, and then open it again, it sees that the
partition is activated...

One way to do it is to read MBR or GPT off the device and to interpret
the related data by myself, but, well, I thought that
DeviceIoControl(IOCTL_DISK_GET_PARTITION_INFO) could be more efficient
and get ACTUAL parameters, not CACHED parameters that are indeed
notreflecting the actual ones.

If anyone has any lead...

Thanks in advance

V.V.



Relevant Pages

  • pdc-ultra promise 150tx2+ driver bug? hard lock/other crashiness
    ... driver being GPL'd and possibly finding its way into the kernel itself. ... Linux would boot from the SATA controller. ... I can watch as cache consumes nearly all available RAM. ... system *never* used the swap partition every time I tried this. ...
    (Linux-Kernel)
  • RE: realtek r8169 + kernel 2.4.24 (openmosix)
    ... I copied the latest r8169.c file from kernel 2.4.28 but it didn't compile at ... CPU: Trace cache: 12K uops, ... PCI: PCI BIOS revision 2.10 entry at 0xf10f0, ... Serial driver version 5.05c with MANY_PORTS SHARE_IRQ ...
    (Linux-Kernel)
  • Re: separate hard drive for scratch disks for two different programs?
    ... I want to use it as a scratch disk for Photoshop CS3 ... I want to use it as a cache for Nikon Capture NX ... Should I create three partitions or should one partition be ... There may be some basic confusion about how hard drives work here. ...
    (rec.photo.digital.slr-systems)
  • Static LLC partitioning by MC
    ... Cache by associating each partition with a memory controller. ... balance bandwidth from each partition (this can reduce the ...
    (comp.arch)
  • Re: SATA Driver problem?
    ... controler manu reccomend disabling it ... I dont believe the controller cache settings is the same as the hd cache ... -Uninstalled my Video Card Driver ... In particular 'driver cache' settings. ...
    (microsoft.public.windowsxp.hardware)