Question on Fs_rec driver and disk

Hi,
I am writing a virtual disk driver, from scratch, to
understand the various mechanisms. I created all the
functions for driverentry, read/write, IOCTL, and
unload. Currently these functions set the IoStatus to
SUCCESS, and return STATUS_SUCCESS, without doing
anything else, as below.
/**** content of each function *******/
pIrp->IoStatus.Information = 0;
pIrp->IoStatus.Status = STATUS_SUCCESS;
/* nothing much to do */
IoCompleteRequest(
pIrp,
IO_NO_INCREMENT);
return STATUS_SUCCESS;
I create a device during driverEntry, and set the
device characteristic to FILE_DEVICE_DISK. Then I
create a virtual drive by using
IoCreateSymbolicLink().
The problem is, when I access this virtual device from
usermode, I get a BSOD. The screen dump mentions a
driver Fs_rec.sys. I looked into the registry and see
that this is mentioned as a legacy device under
services.
Why should this skeleton driver create a BSOD on
access? Any help would be appreciated.

thanks and regards
GS


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/