Format a RAM Disk

I have read the message of Michal Vodicka and implemented nearly all IOCtrl
Michal lists. But Windows cannot format my RAM Disk. My RAM Disk driver for
Windows NT works fine and also allows formating, but this driver do not
include more IOCtrl than the Win2000 version.
When i test format, i print out all IOCtrl which my driver should process.
All incomming requests are processed, but after windows has verified the
Disk, the format process suddenly stops with the error “Unable to complete
format”. Can anyone tell me what to do ?

A. Roth


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

Hi Andreas,

Do you support something like VERIFY code in your driver? I do remember
that failing SCSIIP_VERIFY will make the system refuse formatting the
drive. Maybe there is something at class driver as well?

Sometimes it’s very difficult to give up the idea make the code that
“almost works” work. But it looks like in your case (RAM disk driver) SCSI
miniport is the best choice. Not class driver. Think of it!

Regards,
Anton

I have read the message of Michal Vodicka and implemented nearly all IOCtrl
Michal lists. But Windows cannot format my RAM Disk. My RAM Disk driver for
Windows NT works fine and also allows formating, but this driver do not
include more IOCtrl than the Win2000 version.
When i test format, i print out all IOCtrl which my driver should process.
All incomming requests are processed, but after windows has verified the
Disk, the format process suddenly stops with the error “Unable to complete
format”. Can anyone tell me what to do ?

A. Roth


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


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

I support a simple Verify code, that just return STATUS_SUCCESS. The RAM
Disk driver emulates a local harddisk, so that i can start the windows
format tool.

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anton Kolomyeytsev
Sent: Sonntag, 27. Januar 2002 11:30
To: NT Developers Interest List
Subject: [ntdev] Re: Format a RAM Disk

Hi Andreas,

Do you support something like VERIFY code in your driver? I do remember
that failing SCSIIP_VERIFY will make the system refuse formatting the
drive. Maybe there is something at class driver as well?

Sometimes it’s very difficult to give up the idea make the code that
“almost works” work. But it looks like in your case (RAM disk driver) SCSI
miniport is the best choice. Not class driver. Think of it!

Regards,
Anton

I have read the message of Michal Vodicka and implemented nearly all
IOCtrl
Michal lists. But Windows cannot format my RAM Disk. My RAM Disk driver
for
Windows NT works fine and also allows formating, but this driver do not
include more IOCtrl than the Win2000 version.
When i test format, i print out all IOCtrl which my driver should process.
All incomming requests are processed, but after windows has verified the
Disk, the format process suddenly stops with the error “Unable to complete
format”. Can anyone tell me what to do ?

A. Roth


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de
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

You should steer clear of a disk class driver and use a SCSI model; the
SCSI spec is not going to change between OS versions.

Jamey

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Andreas Roth
Sent: Sunday, January 27, 2002 8:40 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Format a RAM Disk

I support a simple Verify code, that just return STATUS_SUCCESS. The RAM
Disk driver emulates a local harddisk, so that i can start the windows
format tool.

A. Roth

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Anton Kolomyeytsev
Sent: Sonntag, 27. Januar 2002 11:30
To: NT Developers Interest List
Subject: [ntdev] Re: Format a RAM Disk

Hi Andreas,

Do you support something like VERIFY code in your driver? I do remember
that failing SCSIIP_VERIFY will make the system refuse formatting the
drive. Maybe there is something at class driver as well?

Sometimes it’s very difficult to give up the idea make the code that
“almost works” work. But it looks like in your case (RAM disk driver)
SCSI miniport is the best choice. Not class driver. Think of it!

Regards,
Anton

I have read the message of Michal Vodicka and implemented nearly all
IOCtrl
Michal lists. But Windows cannot format my RAM Disk. My RAM Disk
driver
for
Windows NT works fine and also allows formating, but this driver do
not include more IOCtrl than the Win2000 version. When i test format,
i print out all IOCtrl which my driver should process. All incomming
requests are processed, but after windows has verified the Disk, the
format process suddenly stops with the error “Unable to complete
format”. Can anyone tell me what to do ?

A. Roth


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@arsoft-online.de To
unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@storagecraft.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

Try following for IOCTL_DISK_GET_PARTITION_INFO:

if (BuildNumber > NT4_BUILD_NUMBER) {
// w2k ufat.dll tests if StartingOffset isn’t zero in sectors. We
have to apply this nasty workaround.
PartitionInfo->StartingOffset =
RtlConvertUlongToLargeInteger(Extension->DriveGeometry.SectorSize);
}
else {
PartitionInfo->StartingOffset =
RtlConvertUlongToLargeInteger(0);
}

I’m not sure if it is enough but it is the only piece in my code which
examines OS version for > NT4. Note above is a workaround and maybe there is
a better way how to avoid this problem.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@arsoft-online.de[SMTP:xxxxx@arsoft-online.de]
Reply To: xxxxx@lists.osr.com
Sent: Sunday, January 27, 2002 3:37 PM
To: xxxxx@lists.osr.com
Subject: [ntdev] Format a RAM Disk

I have read the message of Michal Vodicka and implemented nearly all
IOCtrl
Michal lists. But Windows cannot format my RAM Disk. My RAM Disk driver
for
Windows NT works fine and also allows formating, but this driver do not
include more IOCtrl than the Win2000 version.
When i test format, i print out all IOCtrl which my driver should process.
All incomming requests are processed, but after windows has verified the
Disk, the format process suddenly stops with the error “Unable to complete
format”. Can anyone tell me what to do ?

A. Roth


You are currently subscribed to ntdev as: michal.vodicka@st.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