I am writing a non_PNP virtual disk driver.I want to mount and unmount the disk in a driver
When I first mount a Volume, I send IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION to mountmgr,then my disk is mounted.( Both Symbolic link "\\??\\I:" and "Volume{...}" is created
When I unmount the Volume, I send FSCTL_LOCK_VOLUME , FSCTL_DISMOUNT_VOLUME,FSCTL_UNLOCK_VOLUME to the disk,and send IOCTL_MOUNTMGR_DELETE_POINTS to mountmgr, then my disk is unmounted.( Both Symbolic link "\\??\\ :" and "Volume{...}" is deleted
When I want to mount the Volume again, I send IOCTL_MOUNTMGR_CREAT_POINT to mountmgr.But Only symbolic link "\\??\\I:" is created. The Volume name isn't generated! Even worse, it seems I can read file in "I:" but cannot write things correctly to "I:"
Who can tell me how can I mount the volume the second time