Hello All,
Please explaine how to convert shared file name, like:
\??\UNC\servername\sharename\File.ext
to local path, like:
\Device\HaddiskVolume1\File.ext
Is this possible?
I will be thanks for any given help,
Max.
Hello All,
Please explaine how to convert shared file name, like:
\??\UNC\servername\sharename\File.ext
to local path, like:
\Device\HaddiskVolume1\File.ext
Is this possible?
I will be thanks for any given help,
Max.
Is there a problem with returning STATUS_REPARSE/IO_REPARSE with the
name you want parsed in actuality? That’s how I’d try to do it if I
were attempting to do something like this.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maksim Krivohizha
Sent: Thursday, September 08, 2005 3:26 PM
To: ntfsd redirect
Subject: [ntfsd] Translate shared file name path to local path
Hello All,
Please explaine how to convert shared file name, like:
\??\UNC\servername\sharename\File.ext
to local path, like:
\Device\HaddiskVolume1\File.ext
Is this possible?
I will be thanks for any given help,
Max.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
No, it is not possible. After all, the server on the other side can be
Samba
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Maksim Krivohizha”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, September 08, 2005 11:25 PM
Subject: [ntfsd] Translate shared file name path to local path
> Hello All,
>
> Please explaine how to convert shared file name, like:
>
> \??\UNC\servername\sharename\File.ext
>
> to local path, like:
>
> \Device\HaddiskVolume1\File.ext
>
> Is this possible?
>
> I will be thanks for any given help,
> Max.
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Tony Mason write:
Is there a problem with returning STATUS_REPARSE/IO_REPARSE with the
name you want parsed in actuality? That’s how I’d try to do it if I
were attempting to do something like this.
Tony, please, explaine more how to use described technology or
where I may read this myself.
Thanks,
Max.
How about if the server is a local server?
“Maxim S. Shatskih” wrote:
No, it is not possible. After all, the server on the other side can be
Samba
–
Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.
There is a reparse example in the DDK. You can also find several
pertinent discussions in the archive here as well as doing a search on
STATUS_REPARSE.
In a nutshell, on the client your filter rebuilds the name
(FileObject->FileName - if you need to reallocate, do so from paged
pool) and then returns STATUS_REPARSE/IO_REPARSE from the dispatch entry
point (note: you cannot change status in a completion routine…)
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the next OSR File Systems class in Los
Angeles, CA October 24-27, 2005.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maksim Krivohizha
Sent: Friday, September 09, 2005 5:24 AM
To: ntfsd redirect
Subject: RE:[ntfsd] RE: Translate shared file name path to local path
Tony Mason write:
Is there a problem with returning STATUS_REPARSE/IO_REPARSE with the
name you want parsed in actuality? That’s how I’d try to do it if I
were attempting to do something like this.
Tony, please, explaine more how to use described technology or
where I may read this myself.
Thanks,
Max.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Perhaps I don’t understand what the OP was asking, but on the CLIENT
side, the fact the SERVER is SAMBA or SRV, or OS/2 EE shouldn’t matter
if they do the reparse before it has gone across the network.
Once it DOES go across the network then clearly the question makes no
sense. If the OP was asking about redirection on the server, then Max’s
answer makes sense. If the OP was asking how to achieve this on the
client, then it seems similar to questions like this that are asked
regularly in this forum.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
Sent: Thursday, September 08, 2005 9:11 PM
To: ntfsd redirect
Subject: Re: [ntfsd] Translate shared file name path to local path
No, it is not possible. After all, the server on the other side can
be
Samba
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Maksim Krivohizha”
To: “Windows File Systems Devs Interest List”
Sent: Thursday, September 08, 2005 11:25 PM
Subject: [ntfsd] Translate shared file name path to local path
> Hello All,
>
> Please explaine how to convert shared file name, like:
>
> \??\UNC\servername\sharename\File.ext
>
> to local path, like:
>
> \Device\HaddiskVolume1\File.ext
>
> Is this possible?
>
> I will be thanks for any given help,
> Max.
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
My understanding was: given a UNC name he wants to get the actual path (for
whatever purpose), not change the path.
Perhaps I don’t understand what the OP was asking, but on the CLIENT
side, the fact the SERVER is SAMBA or SRV, or OS/2 EE shouldn’t matter if they do
the reparse before it has gone across the network.Once it DOES go across the network then clearly the question makes no
sense. If the OP was asking about redirection on the server, then Max’s
answer makes sense. If the OP was asking how to achieve this on the
client, then it seems similar to questions like this that are asked
regularly in this forum.
–
Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.
> How about if the server is a local server?
Actually, that was the problem I tried to solve (figure out what the “real”
thing is after subst or “net use” to localhost).
That’s what the (naive) UM code I posted yesterday does.
Regards,
Alex Shvedov
----- Original Message -----
From: “Dejan Maksimovic”
To: “Windows File Systems Devs Interest List”
Sent: Friday, September 09, 2005 7:23 AM
Subject: Re: [ntfsd] Translate shared file name path to local path
>
> How about if the server is a local server?
>
> “Maxim S. Shatskih” wrote:
>
>> No, it is not possible. After all, the server on the other side can
>> be
>> Samba
>
> –
> Kind regards, Dejan M.
> http://www.alfasp.com E-mail: xxxxx@alfasp.com
> Alfa Transparent File Encryptor - Transparent file encryption services.
> Alfa File Protector - File protection and hiding library for Win32
> developers.
> Alfa File Monitor - File monitoring library for Win32 developers.
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@bellsouth.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Ah. Well if the server end is Windows he can add a filter driver on
that end as well and then ask. But aside from having filters (or other
mods) on both client and server there’s no way of which I’m aware to
match up the open on the client with the file location on the server.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
Looking forward to seeing you at the next OSR File Systems class in Los
Angeles, CA October 24-27, 2005.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Friday, September 09, 2005 10:25 AM
To: ntfsd redirect
Subject: Re: [ntfsd] Translate shared file name path to local path
My understanding was: given a UNC name he wants to get the actual
path (for
whatever purpose), not change the path.
Perhaps I don’t understand what the OP was asking, but on the CLIENT
side, the fact the SERVER is SAMBA or SRV, or OS/2 EE shouldn’t matter
if they do
the reparse before it has gone across the network.Once it DOES go across the network then clearly the question makes no
sense. If the OP was asking about redirection on the server, then
Max’s
answer makes sense. If the OP was asking how to achieve this on the
client, then it seems similar to questions like this that are asked
regularly in this forum.
–
Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The OP’s question about “sharename” and “\Device\HaddiskVolume1” is kind
of like apples and oranges.
I’d like to see it reworded along the lines of converting both terms to
“:…” which is a little more in line with what the user
sees. The harddisk bit is easy. A single share is fairly easy but
multiple shares to the same target machine is a little more interesting.
(I was all set to jump into this when the boss said “forget that, we
don’t care about shares…”)
Mickey.
Tony Mason wrote:
>Perhaps I don’t understand what the OP was asking, but on the CLIENT
>side, the fact the SERVER is SAMBA or SRV, or OS/2 EE shouldn’t matter
>if they do the reparse before it has gone across the network.
>
>Once it DOES go across the network then clearly the question makes no
>sense. If the OP was asking about redirection on the server, then Max’s
>answer makes sense. If the OP was asking how to achieve this on the
>client, then it seems similar to questions like this that are asked
>regularly in this forum.
>
>Regards,
>
>Tony
>
>Tony Mason
>Consulting Partner
>OSR Open Systems Resources, Inc.
>http://www.osr.com
>
>
>-----Original Message-----
>From: xxxxx@lists.osr.com
>[mailto:xxxxx@lists.osr.com] On Behalf Of Maxim S. Shatskih
>Sent: Thursday, September 08, 2005 9:11 PM
>To: ntfsd redirect
>Subject: Re: [ntfsd] Translate shared file name path to local path
>
> No, it is not possible. After all, the server on the other side can
>be
>Samba
>
>Maxim Shatskih, Windows DDK MVP
>StorageCraft Corporation
>xxxxx@storagecraft.com
>http://www.storagecraft.com
>
>----- Original Message -----
>From: “Maksim Krivohizha”
>To: “Windows File Systems Devs Interest List”
>Sent: Thursday, September 08, 2005 11:25 PM
>Subject: [ntfsd] Translate shared file name path to local path
>
>
>
>
>>Hello All,
>>
>>Please explaine how to convert shared file name, like:
>>
>>\??\UNC\servername\sharename\File.ext
>>
>>to local path, like:
>>
>>\Device\HaddiskVolume1\File.ext
>>
>>Is this possible?
>>
>>I will be thanks for any given help,
>>Max.
>>
>>—
>>Questions? First check the IFS FAQ at
>>
>>
>https://www.osronline.com/article.cfm?id=17
>
>
>>You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>>
>
>
>—
>Questions? First check the IFS FAQ at
>https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: xxxxx@osr.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>—
>Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
>To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
>