RE: [ntfsd] why the fileSysDevice->vpb  is NULL  in f

The initial Vpb is created by the I/O Manager for disks (and virtual disks), tapes and cd-rom devices. After that, they may change, but that change is accomplished by the file systems and you can see this code in the FAT examples of the IFS Kit, for example.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of f
Sent: Monday, November 08, 2004 9:35 PM
To: ntfsd redirect
Subject: Re:[ntfsd] [ntfsd] why the fileSysDevice->vpb  is NULL  in f

I dont know who allocate the vpb?
I have read the source of disk.sys, but have no clue who is responsible for
"create them and free them "? Is it “Io Mananger” created them when we set
device-type as FILE_DEVICE_DISK and free them opaquely when we call
IoDeleteDevice?

in filemon’s HookDriver function

it first create the file for example the path “C:”
after this it obtain the fileobject throw the file handle
then use
fileSysDevice = IoGetRelatedDeviceObject( fileObject );

I want to obtain the fileSysDevice->vpb->RealDevice to see the
RealDevice->characteristic;
but it failed because the vpb get from the fileSysDevice is NULL;

why fileSysDevice->vpb is NULL.

thanks.


???ĵ???ʼ?ϵͳ?? MSN Hotmail?? http://www.hotmail.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@eyou.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

http://www.eyou.com
–?ȶ??ɿ??ĵ??? ???ʼ? ?ƶ???ǩ ??? ???洢…???δ??

http://vip.eyou.com
–???¼???VIP??? ע???û???


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com