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:

Go Back   OSR Online Lists > ntfsd
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
09 Sep 17 14:14
Join Date: 13 Jul 2017
Posts To This List: 28
Mountmgr on empty directory

Hello, When I want to mount my disk filesystem on a empty directory using mountmgr= , I should call mandatory the Ioctl 'IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION' function b= y passing \\Device\\Volume {GUID} and then mount it using Ioctl 'IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED' M= ountPointDir: '\\DosDevices\\c:\directorymonter' and target: '\??\Volume{GU= ID}'. It works but it creates a DRIVE LETTER (eg. \\DosDevices\G:) 'The drive let= ter works' instead of mounting it on an empty folder (\\DosDevices\\c:\dire= ctorymonter)! And when I run the mountvol utility it freeze some time and returns a error= 'A device attached to the system is not functioning'. I try differently by passing the user mode function: SetVolumeMountPoint, I= have a user-mode crash exception but not BSOD. If I do not call the Ioctl 'IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION' fun= ction then the function mountmgr 'IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED= ' returns error '2' (Object not found).. conclusion: How to mount by mountmgr a disk filesystem into empty directory ? Thank. In French languages : Bonjour, Quand je veux monter mon disque sur un empty directory en utilisant mountmg= r , je suis obliger de passer obligatoirement par la fonction Ioctl 'IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFI= CATION' en lui passant \\Device\\Volume{GUID} et ensuite je le monte en utilisant la fonction Ioctl 'IOCTL_MOUNTMGR_VOLUM= E_MOUNT_POINT_CREATED' MountPointDir: '\DosDevices\c:\repertoiremonter' et = le targe: '\??\Volume{GUID}. Ca marche mais il me cr=E9er un DRIVE LETTER (eg. \\DosDevices\G:) 'Le driv= e letter fonctionne' au lieu de le monter sur un dossier vide (\\DosDevices= \\c:\repertoiremonter) ! Et quand j'execute l'utilitaire mountvol il bloque quelque temps et me renv= oie une erreur 'A device attached to the system is not functioning'. J'ai essayer autrement en passant la fonction user mode : SetVolumeMountPoi= nt , j'ai un crash user-mode. Si je n'appelle pas la fonction Ioctl' IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFI= CATION' alors mountmgr me retourne erreur '2' (Object not found) =E0 la fon= ction IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED . Merci.
  Message 2 of 2  
11 Sep 17 07:14
Slava Imameev
Join Date: 13 Sep 2013
Posts To This List: 251
Mountmgr on empty directory

In Windows this functionality is provided by a file system driver for a mount-point folder through a reparse point. As far as I know only NTFS supports it. That means \\DosDevices\\c:\directorymonter must be on NTFS volume. You should use SetVolumeMountPoint instead of composing IOCTLs. Your method with IOCTLs doesn't create a reparse point on NTFS volume. You notified the mount manager without making a real mount point.
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 13:28.

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