Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Sept/Oct 2019 Issue of The NT Insider available


Download PDF here: http://insider.osr.com/2019/ntinsider_2019_01.pdf

It’s a particularly BIG issue, too: 40 pages of technical goodness, ranging from WDF to Minifilters. Check it out.
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

Dynamic disk permanently altering shutdown behaviour

AhhmyfaceAhhmyface Member Posts: 8

It's kind of a weird problem.

I have a driver that works reliably on basic disk systems. But enabling dynamic disks causes a 9F (basically a hang) on shutdown.

After some investigation, I've determined that dynamic disk changes the behaviour of the disk shutdown, serializing them or running them synchronously whereas the old behaviour was to simultaneously send IRP_MJ_POWER to all disks. Since my driver deliberately postpones shutdown until the boot disk gets the IRP, and they refuse to send me the boot disk IRP until one or more other disks are successfully shut down, I have a problem.

Now, maybe I shouldn't be messing with the ordering, but so are they! Oh well. Maybe I'll just explicitly not support Dynamic Disks or software RAID.

I can't do that, unfortunately, because even after deleting the mirrors, returning all disks to basic disk, the same shutdown sequence persists. I've reproduced this across multiple instances.

Does anyone know how I can disable this behaviour? Or work around it?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
Writing WDF Drivers 21 Oct 2019 OSR Seminar Space & ONLINE
Internals & Software Drivers 18 Nov 2019 Dulles, VA
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 27 Apr 2020 OSR Seminar Space & ONLINE