NetWork file system

Hello,I want to attach to usb mass storage device that present in system (Terminal Server) as network shared disk. I can implement this by file system minifilter?

Guys, who can help me understand how I can filtering ‘network mapped disk’ by using minifilter?

See your InstanceSetup callback (VolumeDeviceType + VolumeFilesystemType
input parameters).
It should be called when you attach to your network device.

Thank you for reply!
I wrote minifilter and attach to FILE_DEVICE_NETWORK_FILE_SYSTEM device and than see ‘fltmc instances’ - my minifilter attached to ‘LanmanRedirector’. But what about my network disk? - I can recieve IRP_MJ_CREATE and IRP_MJ_WRITE in my minifilter for disk? And how I can determine that it’s my network disk?

Guys, please help me! May be somebody faced this problem?

You are probably allocating a volume context in the InitInstance
callback for the ‘volume’ being mounted. In this callback is where you
receive the request for known network redirectors and in your volume
context you allocate for this request you tag it as being a network
instance.

Therefore in your dispatch callbacks, you retrieve the volume context
and can determine if it is for a local volume or a network stack based
on how you initialized the volume context in the InitInstance callback.

Pete

On 12/5/2012 12:34 PM, xxxxx@gmail.com wrote:

Thank you for reply!
I wrote minifilter and attach to FILE_DEVICE_NETWORK_FILE_SYSTEM device and than see ‘fltmc instances’ - my minifilter attached to ‘LanmanRedirector’. But what about my network disk? - I can recieve IRP_MJ_CREATE and IRP_MJ_WRITE in my minifilter for disk? And how I can determine that it’s my network disk?


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
866.263.9295

Peter Scott thank you very much!
But one question : when I mapped usb mass storage to terminal server how network disk, how I can determine in server side (in file system minifilter driver) that this usb mass storage?

Are you asking how to determine what type of device is backing the
network share you are filtering? Whether it is backed by a USB device or
some other physical device? If so, without having a filter on the
machine where the share is being exported I do not think there is any
information about the physical device sent along with the share information.

Pete

On 12/8/2012 6:48 AM, xxxxx@gmail.com wrote:

Peter Scott thank you very much!
But one question : when I mapped usb mass storage to terminal server how network disk, how I can determine in server side (in file system minifilter driver) that this usb mass storage?


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Kernel Drivers
Windows File System and Device Driver Consulting
www.KernelDrivers.com
866.263.9295

Peter Scott, thank you!
In other word - I can’t get information about type of device is backing the network share on server side (place when mapped disk is used) without filter driver on client side (place when present physical device)?

No, you cannot do this without having something on the server side. You don’t need to have a filter driver on the client.

Tony
OSR