Hello again
first of all i’d like to thank the people who gave me useful advice
on my problems with ZwWriteFile deadlocks and so on. I managed
to route all io down into a usermode application, which helped me
develop under less…rough… conditions.
However, there are three things left that bother me.
1st) Windows doesnt shut down properly any more (hangs on shutting down
windows). Is there a way to debug that behaviour?
2nd) I just made a driver that supports the DISK entry points. I mount a drive
by issueing an IOCTL to the driver which sets up a corresponding device and
binds it to “\dosdevices<letter>:”. I can then format the drive in the dos prompt,
the explorer will not show it in its drive lists, formatted or not. Furthermore, i dont
know who to dismount it cleany. At this time, i just kill the device by another IOCTL -
but i seem to get in trouble with the filesystem drivers who didnt flush their caches
entirely - sometimes resulting in lost files. Are there some simple ways to integrate
and disintegrate such a virtual drive cleanly into the system, or do i have to do that
through plug and play things?
3rd) NTFS doesnt work. I can format and chkdsk the drive with ntfs (and chkdsk
tells me everythings fine), however i cannot
access it in the dos prompt. It returns an “invalid function” error code. FAT and FAT32
work fine. This doesnt make sense to me
if anybody could give me a hint on some of these problemes,
i would be very grateful
thx
Hannes