Hi,
I have a NT4 driver like the RAM Drive driver that creates a drive letter
symbol link, it works fine with normal read/write operations. I am trying
to support formatting on this drive letter. I implemented all
IOCTL_DISK_xxx commands sent to the driver, but the formatting still does
not work. When I try to format it, I got following calls:
IOCTL_DISK_MEDIA_REMOVAL
IOCTL_DISK_IS_WRITABLE
IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCTL_DISK_GET_PARTITION_INFO
IOCTL_DISK_GET_DRIVE_LAYOUT
IRP_MJ_READ at sector 1, head 1 and cylinder 0
Then a lot of IOCTL_DISK_VERIFY while format program displaying percent of
verify.
After verify finished, format program just display “Insufficient memory.”
and failed.
By the way, when I try to format it from NT explorer, the capacity of the
drive is “Unknown size”, that’s very strange because I did get a call of
GET_DRIVE_GEOMETRY and report the size correctly.
Please help me to point out what’s wrong here. I am just stuck. I’d
appreciate any help I could get. Thanks in advance!
Michael
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Do you use DMA on your Read/Write request?
-----Original Message-----
From: xxxxx@3com.com [mailto:xxxxx@3com.com]
Sent: Wednesday, May 09, 2001 6:01 PM
To: NT Developers Interest List
Subject: [ntdev] Help on formatting failure
Hi,
I have a NT4 driver like the RAM Drive driver that creates a drive letter
symbol link, it works fine with normal read/write operations. I am trying
to support formatting on this drive letter. I implemented all
IOCTL_DISK_xxx commands sent to the driver, but the formatting still does
not work. When I try to format it, I got following calls:
IOCTL_DISK_MEDIA_REMOVAL
IOCTL_DISK_IS_WRITABLE
IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCTL_DISK_GET_PARTITION_INFO
IOCTL_DISK_GET_DRIVE_LAYOUT
IRP_MJ_READ at sector 1, head 1 and cylinder 0
Then a lot of IOCTL_DISK_VERIFY while format program displaying percent of
verify.
After verify finished, format program just display “Insufficient memory.”
and failed.
By the way, when I try to format it from NT explorer, the capacity of the
drive is “Unknown size”, that’s very strange because I did get a call of
GET_DRIVE_GEOMETRY and report the size correctly.
Please help me to point out what’s wrong here. I am just stuck. I’d
appreciate any help I could get. Thanks in advance!
Michael
You are currently subscribed to ntdev as: xxxxx@1pdc.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
No, I do not use DMA.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Hello!
This reminds me of an especially nasty bug that I got rid of only a few
days ago: (NT4 driver,
creates a virtual hard disk)
While processing IOCTL_DISK_GET_PARTITION_INFO I stored all data in the
supplied buffer
but forgot to set IoStatus->Information to sizeof(PARTITION_INFORMATION)
(it was set to 0 instead).
For some strange reason my NT4 driver worked anyway (on some NT machines) -
sometimes.
Maybe you only have to verify that all your IOCTL’s really do what they are
supposed to do and have
valid return values?
Kind regards,
Michael B.
PS: I apologize in advance for any signature containing commercial stuff
that my company may
or may not attach to my emails. I can’t do anything about this
I have a NT4 driver like the RAM Drive driver that creates a drive letter
symbol link, it works fine with normal read/write operations. I am trying
to support formatting on this drive letter. I implemented all
IOCTL_DISK_xxx commands sent to the driver, but the formatting still does
not work. When I try to format it, I got following calls:
IOCTL_DISK_MEDIA_REMOVAL
IOCTL_DISK_IS_WRITABLE
IOCTL_DISK_GET_DRIVE_GEOMETRY
IOCTL_DISK_GET_PARTITION_INFO
IOCTL_DISK_GET_DRIVE_LAYOUT
IRP_MJ_READ at sector 1, head 1 and cylinder 0
Then a lot of IOCTL_DISK_VERIFY while format program displaying percent
of
verify.
After verify finished, format program just display “Insufficient memory.”
and failed.
By the way, when I try to format it from NT explorer, the capacity of the
drive is “Unknown size”, that’s very strange because I did get a call of
GET_DRIVE_GEOMETRY and report the size correctly.
±----------------------------------------------------------+
Fraud: Detect it, Uncover it, Prevent it.
http://www.vogon-computer-evidence.com
Data Recovery: Recover it, Convert it, Prevent it.
http://www.vogon-data-recovery.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com