Driver Problems? Questions? Issues?
Put OSR's experience to work for you! Contact us for assistance with:
  • Creating the right design for your requirements
  • Reviewing your existing driver code
  • Analyzing driver reliability/performance issues
  • Custom training mixed with consulting and focused directly on your specific areas of interest/concern.
Check us out. OSR, the Windows driver experts.

On-Access, Transparent, Per-File Data Encryption:

OSR's File Encryption Solution Framework (FESF) provides all the infrastructure you need to build a transparent file encryption product REALLY FAST.

Super flexible policy determination and customization, all done in user-mode. Extensive starter/sample code provided.

Proven, robust, flexible. In use in multiple commercial products.

Currently available on Windows. FESF for Linux will ship in 2018.

For more info: https://www.osr.com/fesf

Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 3  
13 Jul 17 06:06
Sivaller
xxxxxx@gmail.com
Join Date: 13 Jul 2017
Posts To This List: 28
IRP_MJ_FILE_SYSTEM_CONTROL not called

Hello, I need help, I'm on a filesystem driver, I create in the DriverEntry the device FILE_DEVICE_CD_ROM_FILE_SYSTEM AND Then the device FILE_DEVICE_DISK_FILE_SYSTEM And I call the function IoRegisterFileSystem function on both And later I create the device named "lambda" FILE_DEVICE_DISK, The IRP_MJ_FILE_SYSTEM_CONTROL function of the "lambda" device is not called. Why ? I need it to mount the disk FILE_DISK_FILE_SYSTEM I need help. I've been looking for 10 hours. Extract code : NTSTATUS DrvDispatch ( IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp ) { PIO_STACK_LOCATION irps; NTSTATUS status=STATUS_NOT_IMPLEMENTED; KdPrintf(("[VFUM] control\n")); irps=NULL; if (Irp!=NULL) { irps = IoGetCurrentIrpStackLocation(Irp); //if (irps!=NULL) KdPrintfd(("[VFUM] vfums_control : Device:%x Majorfunction %d irp %x\n",DeviceObject,irps->MajorFunction,Irp)); { if (irps->MajorFunction==IRP_MJ_SYSTEM_CONTROL) { KdPrintfd(("IRP_MJ_SYSTEM_CONTROL\n")); } if (irps->MajorFunction == IRP_MJ_FILE_SYSTEM_CONTROL) { KdPrintfd(("IRP_MJ_FILE_SYSTEM_CONTROL\n")); } } .... ... } I dont see in the log 'IRP_MJ_FILE_SYSTEM_CONTROL' I will put other extract code in night. Thank.
  Message 2 of 3  
13 Jul 17 08:43
Peter Scott
xxxxxx@kerneldrivers.com
Join Date: 17 Feb 2012
Posts To This List: 666
IRP_MJ_FILE_SYSTEM_CONTROL not called

For Mount Mgr to recognize your device and resulting in an attempt to=20 load a file system on it, you need to register for the mounted device=20 interface using MOUNTDEV_MOUNTED_DEVICE_GUID. Then your mountable device=20 will receive a bunch of IOCtls you need to handle from the system as=20 well as Mount Mgr. After this point you'll receive a mount request if=20 you've done everything correctly. Pete -- Kernel Drivers Windows File System and Device Driver Consulting www.KernelDrivers.com 866.263.9295 ------ Original Message ------ From: xxxxx@gmail.com To: "Windows File Systems Devs Interest List" <xxxxx@lists.osr.com> Sent: 7/13/2017 4:05:39 AM Subject: [ntfsd] IRP_MJ_FILE_SYSTEM_CONTROL not called >Hello, >I need help, > >I'm on a filesystem driver, >I create in the DriverEntry the device > FILE_DEVICE_CD_ROM_FILE_SYSTEM >AND Then the device > FILE_DEVICE_DISK_FILE_SYSTEM >And I call the function IoRegisterFileSystem function on both > <...excess quoted lines suppressed...>
  Message 3 of 3  
13 Jul 17 14:11
Scott Noone
xxxxxx@osr.com
Join Date: 10 Jul 2002
Posts To This List: 908
List Moderator
IRP_MJ_FILE_SYSTEM_CONTROL not called

You can also trigger a mount by opening the root directory on the disk device (e.g. CreateFile("\\\\.\\lambda\\", ...);) -scott OSR @OSRDrivers wrote in message news:102764@ntfsd... For Mount Mgr to recognize your device and resulting in an attempt to load a file system on it, you need to register for the mounted device interface using MOUNTDEV_MOUNTED_DEVICE_GUID. Then your mountable device will receive a bunch of IOCtls you need to handle from the system as well as Mount Mgr. After this point you'll receive a mount request if you've done everything correctly. Pete -- Kernel Drivers Windows File System and Device Driver Consulting www.KernelDrivers.com 866.263.9295 ------ Original Message ------ From: xxxxx@gmail.com To: "Windows File Systems Devs Interest List" <xxxxx@lists.osr.com> Sent: 7/13/2017 4:05:39 AM Subject: [ntfsd] IRP_MJ_FILE_SYSTEM_CONTROL not called >Hello, >I need help, > >I'm on a filesystem driver, >I create in the DriverEntry the device > FILE_DEVICE_CD_ROM_FILE_SYSTEM >AND Then the device > FILE_DEVICE_DISK_FILE_SYSTEM >And I call the function IoRegisterFileSystem function on both > <...excess quoted lines suppressed...>
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntfsd list to be able to post.

All times are GMT -5. The time now is 05:53.


Copyright ©2015, OSR Open Systems Resources, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license