device path

can I use absolute device path for reparsing like
"\Device\Sbp2????&?etc\readme.txt?
I got this path using ZwQuerySymbolicLinkObject. But I dont know drive for
this device. This is external firewire cdrom device.

Thanks
Ramaraj


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

RE: [ntfsd] regarding FCB structure.From kernel mode - yes.
From user mode - define a drive letter first.

----- Original Message -----
From: Ramaraj Pandian
To: File Systems Developers
Sent: Wednesday, May 30, 2001 2:42 AM
Subject: [ntfsd] device path

can I use absolute device path for reparsing like "\Device\Sbp2????&?etc\readme.txt?
I got this path using ZwQuerySymbolicLinkObject. But I dont know drive for this device. This is external firewire cdrom device.

Thanks
Ramaraj


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

which path should I use, the one I got from IoGetDeviceInterfaces, or the
one I got from ZwQuerySymbolicLinkObject. With first one I am getting error
incorrect function’, second one gives ‘Path not found’. If I use hard coded
drive letter it works fine.

Here is what I am doing:
ExFreePool(OrigFo->FileName.Buffer);
OrigFo->FileName.Length = reparsePath.Length;
OrigFo->FileName.MaximumLength = reparsePath.MaximumLength;
OrigFo->FileName.Buffer = ntUnicodeStringBuffer; /* First case:
??\sbp2\etc <file:> Second case: \device\sbp2\etc

Could you suggest me.

Thanks for your help
Ramaraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, May 30, 2001 6:26 AM
To: File Systems Developers
Subject: [ntfsd] Re: device path

From kernel mode - yes.
From user mode - define a drive letter first.

----- Original Message -----
From: Ramaraj Pandian mailto:xxxxx
To: File Systems Developers mailto:xxxxx
Sent: Wednesday, May 30, 2001 2:42 AM
Subject: [ntfsd] device path

can I use absolute device path for reparsing like
"\Device\Sbp2????&?etc\readme.txt?
I got this path using ZwQuerySymbolicLinkObject. But I dont know drive for
this device. This is external firewire cdrom device.

Thanks
Ramaraj


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@dvdjukebox.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></file:>

RE: [ntfsd] regarding FCB structure.\device\sbp2\xxx seems to be the correct thing to use in reparse.

----- Original Message -----
From: Ramaraj Pandian
To: File Systems Developers
Sent: Wednesday, May 30, 2001 10:03 PM
Subject: [ntfsd] Re: device path

which path should I use, the one I got from IoGetDeviceInterfaces, or the one I got from ZwQuerySymbolicLinkObject. With first one I am getting error incorrect function’, second one gives ‘Path not found’. If I use hard coded drive letter it works fine.

Here is what I am doing:
ExFreePool(OrigFo->FileName.Buffer);
OrigFo->FileName.Length = reparsePath.Length;
OrigFo->FileName.MaximumLength = reparsePath.MaximumLength;
OrigFo->FileName.Buffer = ntUnicodeStringBuffer; /* First case: ??\sbp2\etc Second case: \device\sbp2\etc

Could you suggest me.

Thanks for your help
Ramaraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, May 30, 2001 6:26 AM
To: File Systems Developers
Subject: [ntfsd] Re: device path

From kernel mode - yes.
From user mode - define a drive letter first.

----- Original Message -----
From: Ramaraj Pandian
To: File Systems Developers
Sent: Wednesday, May 30, 2001 2:42 AM
Subject: [ntfsd] device path

can I use absolute device path for reparsing like "\Device\Sbp2????&?etc\readme.txt?
I got this path using ZwQuerySymbolicLinkObject. But I dont know drive for this device. This is external firewire cdrom device.

Thanks
Ramaraj


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntfsd as: xxxxx@dvdjukebox.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com

It gives me ‘path not found’ error. If I use “\Device\CdRom3” or drive
letter, it works fine. I dont know what I am missing.
I suspect that I cannot direct call directly to sbp2, it supposed to go thru
cdrom device. How do I get corresponding cdrom device for \Device\sbp2\xxx.
If I see SymLink using winobj, I am seeing more than one symlinks, for ex)
Name Type SymLink


E:\ symlink \device\cdrom3
SBP2xxx , \device\sbp2xxx

How these are different from each other.

Thanks
Ramaraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, May 30, 2001 11:38 AM
To: File Systems Developers
Subject: [ntfsd] Re: device path

\device\sbp2\xxx seems to be the correct thing to use in reparse.

----- Original Message -----
From: Ramaraj Pandian mailto:xxxxx
To: File Systems Developers mailto:xxxxx
Sent: Wednesday, May 30, 2001 10:03 PM
Subject: [ntfsd] Re: device path

which path should I use, the one I got from IoGetDeviceInterfaces, or the
one I got from ZwQuerySymbolicLinkObject. With first one I am getting error
incorrect function’, second one gives ‘Path not found’. If I use hard coded
drive letter it works fine.

Here is what I am doing:
ExFreePool(OrigFo->FileName.Buffer);
OrigFo->FileName.Length = reparsePath.Length;
OrigFo->FileName.MaximumLength = reparsePath.MaximumLength;
OrigFo->FileName.Buffer = ntUnicodeStringBuffer; /* First case:
??\sbp2\etc <file:> Second case: \device\sbp2\etc

Could you suggest me.

Thanks for your help
Ramaraj

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Wednesday, May 30, 2001 6:26 AM
To: File Systems Developers
Subject: [ntfsd] Re: device path

From kernel mode - yes.
From user mode - define a drive letter first.

----- Original Message -----
From: Ramaraj Pandian mailto:xxxxx
To: File Systems Developers mailto:xxxxx
Sent: Wednesday, May 30, 2001 2:42 AM
Subject: [ntfsd] device path

can I use absolute device path for reparsing like
"\Device\Sbp2????&?etc\readme.txt?
I got this path using ZwQuerySymbolicLinkObject. But I dont know drive for
this device. This is external firewire cdrom device.

Thanks
Ramaraj


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
mailto:xxxxx
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@dvdjukebox.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@dvdjukebox.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></file:></mailto:xxxxx></mailto:xxxxx>

>But I dont know drive for this device. This is external firewire cdrom device.
I think that You can get it from the registry. -
for example
HKEY_LOCAL_MACHINE\Enum\SCSI\MATSHITACD-RW__CW-7585__1
look for currentdriveletterassignment


You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com