Re: Fw: RE: Query

I have used DefineDosDevice to create a virtual drive from the
user mode. In my mirror driver, DEVICE_IOCONTROL and READ/WRITE
IRPs are forwarded to the actual disk driver.

I get the device object of the disk using IoGetDeviceObjectPointer
of
(\Device\Harddisk1\Partition0).

----- Original Message -----
From: “Jamey Kirby”
>To: “File Systems Developers”
>Sent: Friday, May 09, 2003 4:55 PM
>Subject: [ntfsd] RE: Query
>
>
> > We need much more information from you. How are you
>implementing the
> > virtual disk?
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Vipin
>Mohan
> > Sent: Friday, May 09, 2003 4:12 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Query
> >
> > Hi All,
> >
> > I am building a mirror driver wherein
> > 1. I Create a Virtual disk (with a drive letter) of my own,
>let
> > say V:
> > 2. I pass all the requests that are bound for this virtual
>disk on
> > an existing disk, let say E:
> >
> > At this moment, the directory contents on both the virtual
>disk
> > and the existing disk are the same when viewed through
>Windows
> > explorer.
> >
> > Now when I copy some files onto the virtual disk drive
>letter
> > (V:), I can only see the updated directory information on
>this
> > virtual disk drive (V:). The directory listing on the
>existing
> > disk (E:) is not updated.
> >
> > If I reboot the machine, the contents are updated on the
>actual
> > disk drive (E:) and are in sync with the contents on Virtual
> > disk(V:).
> >
> >
> > Please Help.
> >
> > TIA
> >
> > Vipul
> >
> >
> >

This will never work. You are trying to share a single disk with two
File System Instances; there is no way to synchronize the two.

Sorry, back to the drawing board :frowning:

Jamey

-----Original Message-----
From: Vipin Mohan [mailto:xxxxx@rediffmail.com]
Sent: Friday, May 09, 2003 4:58 AM
To: xxxxx@storagecraft.com
Cc: xxxxx@lists.osr.com
Subject: Re: Fw: [ntfsd] RE: Query

I have used DefineDosDevice to create a virtual drive from the
user mode. In my mirror driver, DEVICE_IOCONTROL and READ/WRITE
IRPs are forwarded to the actual disk driver.

I get the device object of the disk using IoGetDeviceObjectPointer
of
(\Device\Harddisk1\Partition0).

----- Original Message -----
From: “Jamey Kirby”
>To: “File Systems Developers”
>Sent: Friday, May 09, 2003 4:55 PM
>Subject: [ntfsd] RE: Query
>
>
> > We need much more information from you. How are you
>implementing the
> > virtual disk?
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Vipin
>Mohan
> > Sent: Friday, May 09, 2003 4:12 AM
> > To: File Systems Developers
> > Subject: [ntfsd] Query
> >
> > Hi All,
> >
> > I am building a mirror driver wherein
> > 1. I Create a Virtual disk (with a drive letter) of my own,
>let
> > say V:
> > 2. I pass all the requests that are bound for this virtual
>disk on
> > an existing disk, let say E:
> >
> > At this moment, the directory contents on both the virtual
>disk
> > and the existing disk are the same when viewed through
>Windows
> > explorer.
> >
> > Now when I copy some files onto the virtual disk drive
>letter
> > (V:), I can only see the updated directory information on
>this
> > virtual disk drive (V:). The directory listing on the
>existing
> > disk (E:) is not updated.
> >
> > If I reboot the machine, the contents are updated on the
>actual
> > disk drive (E:) and are in sync with the contents on Virtual
> > disk(V:).
> >
> >
> > Please Help.
> >
> > TIA
> >
> > Vipul
> >
> >
> >

I wonder how many companies decided they could get themselves a SAN
filesystem on the cheap by just replicating a volume at the block level
across a network and then mounting it locally using FAT or NTFS. Wasn’t
there a thread last year on this list about doing this? Somebody wanted
to unmount/remount the filesystem after every write?

  • Nick Ryan

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Jamey Kirby
Sent: Friday, May 09, 2003 7:38 AM
To: File Systems Developers
Cc: xxxxx@lists.osr.com
Subject: [ntfsd] RE: Fw: RE: Query

This will never work. You are trying to share a single disk
with two File System Instances; there is no way to
synchronize the two.

Sorry, back to the drawing board :frowning:

Jamey

-----Original Message-----
From: Vipin Mohan [mailto:xxxxx@rediffmail.com]
Sent: Friday, May 09, 2003 4:58 AM
To: xxxxx@storagecraft.com
Cc: xxxxx@lists.osr.com
Subject: Re: Fw: [ntfsd] RE: Query

I have used DefineDosDevice to create a virtual drive from the
user mode. In my mirror driver, DEVICE_IOCONTROL and READ/WRITE
IRPs are forwarded to the actual disk driver.

I get the device object of the disk using IoGetDeviceObjectPointer
of
(\Device\Harddisk1\Partition0).

>
>----- Original Message -----
> From: “Jamey Kirby”
> >To: “File Systems Developers”
> >Sent: Friday, May 09, 2003 4:55 PM
> >Subject: [ntfsd] RE: Query
> >
> >
> > > We need much more information from you. How are you
> >implementing the
> > > virtual disk?
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Vipin
> >Mohan
> > > Sent: Friday, May 09, 2003 4:12 AM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Query
> > >
> > > Hi All,
> > >
> > > I am building a mirror driver wherein
> > > 1. I Create a Virtual disk (with a drive letter) of my own,
> >let
> > > say V:
> > > 2. I pass all the requests that are bound for this virtual
> >disk on
> > > an existing disk, let say E:
> > >
> > > At this moment, the directory contents on both the virtual
> >disk
> > > and the existing disk are the same when viewed through
> >Windows
> > > explorer.
> > >
> > > Now when I copy some files onto the virtual disk drive
> >letter
> > > (V:), I can only see the updated directory information on
> >this
> > > virtual disk drive (V:). The directory listing on the
> >existing
> > > disk (E:) is not updated.
> > >
> > > If I reboot the machine, the contents are updated on the
> >actual
> > > disk drive (E:) and are in sync with the contents on Virtual
> > > disk(V:).
> > >
> > >
> > > Please Help.
> > >
> > > TIA
> > >
> > > Vipul
> > >
> > >
> > >
>
>
>
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@nryan.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

I am building a mirror driver in Win2K wherein

  1. I Create a Virtual disk (with a drive letter) of my own,
    let say V:
  2. I pass all the requests that are bound for this virtual
    disk on an existing disk, let say E:

I have used DefineDosDevice to create a virtual drive from the
user mode. In my mirror driver, DEVICE_IOCONTROL and READ/WRITE
IRPs are forwarded to the actual disk driver.

I get the device object of the disk using
IoGetDeviceObjectPointer
of (\Device\Harddisk1\Partition0).

This works fine. I have unmounted E: through mount manager. V:
appears as a normal volume and I can do all operations on it.

Now instead of using the whole disk for this virtual disk, I
wanted to just use an existing partition. How can I do this???

If I try to use (\Device\Harddisk1\Partition1) instead of
(\Device\Harddisk1\Partition0). It doesn’t work. I get a page
fault when I forward request to it using IoCallDriver.

TIA

On Fri, 09 May 2003 Jamey Kirby wrote :

This will never work. You are trying to share a single disk with
two
File System Instances; there is no way to synchronize the two.

Sorry, back to the drawing board :frowning:

Jamey

-----Original Message-----
From: Vipin Mohan [mailto:xxxxx@rediffmail.com]
Sent: Friday, May 09, 2003 4:58 AM
To: xxxxx@storagecraft.com
Cc: xxxxx@lists.osr.com
Subject: Re: Fw: [ntfsd] RE: Query

I have used DefineDosDevice to create a virtual drive from the
user mode. In my mirror driver, DEVICE_IOCONTROL and READ/WRITE
IRPs are forwarded to the actual disk driver.

I get the device object of the disk using
IoGetDeviceObjectPointer
of
(\Device\Harddisk1\Partition0).

>
>----- Original Message -----
> From: “Jamey Kirby”
> >To: “File Systems Developers”
> >Sent: Friday, May 09, 2003 4:55 PM
> >Subject: [ntfsd] RE: Query
> >
> >
> > > We need much more information from you. How are you
> >implementing the
> > > virtual disk?
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of
>Vipin
> >Mohan
> > > Sent: Friday, May 09, 2003 4:12 AM
> > > To: File Systems Developers
> > > Subject: [ntfsd] Query
> > >
> > > Hi All,
> > >
> > > I am building a mirror driver wherein
> > > 1. I Create a Virtual disk (with a drive letter) of my
>own,
> >let
> > > say V:
> > > 2. I pass all the requests that are bound for this virtual
> >disk on
> > > an existing disk, let say E:
> > >
> > > At this moment, the directory contents on both the virtual
> >disk
> > > and the existing disk are the same when viewed through
> >Windows
> > > explorer.
> > >
> > > Now when I copy some files onto the virtual disk drive
> >letter
> > > (V:), I can only see the updated directory information on
> >this
> > > virtual disk drive (V:). The directory listing on the
> >existing
> > > disk (E:) is not updated.
> > >
> > > If I reboot the machine, the contents are updated on the
> >actual
> > > disk drive (E:) and are in sync with the contents on
>Virtual
> > > disk(V:).
> > >
> > >
> > > Please Help.
> > >
> > > TIA
> > >
> > > Vipul
> > >

___________________________________________________
Get email that means BUSINESS! me @ mycompany.com.
Just Rs.1499/year.
To start, click http://www.rediffmailpro.com