I'm trying to port my virtual disk driver to Windows Server 2003 SP1 running
on Virtual Server 2005 x64. I create symbolic link using DefineDosDevice. And
I get "X:\ is not accessible. Incorrect function." every time I try to access
created drive. My driver gets only IRP_MJ_CREATE.
Symbolic link is correct: x: --> \Device\Mydevice.
In CreateClose routine:
irp.Status = STATUS_SUCCESS;
irp.Information = FILE_OPENED ;
IoCompleteRequest(irp, IO_NO_INCREMENT);
return STATUS_SUCCESS;

Seems to be OK. I'v tried to call IoCreateSymbolicLink. Same promblem. Whats
wrong?

RE: Virtual disk problem by pavel_a

pavel_a
Sun Feb 04 05:48:00 CST 2007

Does it work on the *real* Server 2003 SP1?
--PA

"Golubev.Mikhail" wrote:
> I'm trying to port my virtual disk driver to Windows Server 2003 SP1 running
> on Virtual Server 2005 x64. I create symbolic link using DefineDosDevice. And
> I get "X:\ is not accessible. Incorrect function." every time I try to access
> created drive. My driver gets only IRP_MJ_CREATE.
> Symbolic link is correct: x: --> \Device\Mydevice.
> In CreateClose routine:
> irp.Status = STATUS_SUCCESS;
> irp.Information = FILE_OPENED ;
> IoCompleteRequest(irp, IO_NO_INCREMENT);
> return STATUS_SUCCESS;
>
> Seems to be OK. I'v tried to call IoCreateSymbolicLink. Same promblem. Whats
> wrong?

Re: Virtual disk problem by cristalink

cristalink
Sun Feb 04 13:42:04 CST 2007

IMHO, a proper virtual disk does not need to create the symbolic link. It's
done automatically by the mount manager.




"Golubev.Mikhail" <Golubev.Mikhail@discussions.microsoft.com> wrote in
message news:BA4E7974-33A6-4A91-BB57-4B01D5E37A8F@microsoft.com...
> I'm trying to port my virtual disk driver to Windows Server 2003 SP1
> running
> on Virtual Server 2005 x64. I create symbolic link using DefineDosDevice.
> And
> I get "X:\ is not accessible. Incorrect function." every time I try to
> access
> created drive. My driver gets only IRP_MJ_CREATE.
> Symbolic link is correct: x: --> \Device\Mydevice.
> In CreateClose routine:
> irp.Status = STATUS_SUCCESS;
> irp.Information = FILE_OPENED ;
> IoCompleteRequest(irp, IO_NO_INCREMENT);
> return STATUS_SUCCESS;
>
> Seems to be OK. I'v tried to call IoCreateSymbolicLink. Same promblem.
> Whats
> wrong?