Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file” is a
file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful way to
query for this information on the smb redirector?

Thanks,
Matt

Is this happening on ALL files you try, or just on ONE file that you
have tried. I wouldn’t be surprised to see this fail on something odd
(like a named pipe file or the volume itself) while it works on a
file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the
lanman redirector? I am filtering the mrxsmb redirector, and am getting
a STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful
way to query for this information on the smb redirector?

Thanks,
Matt


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

Tony,
Yes, it is only happening some of the time. Specifically, if I try
to mount a network drive for a remote share, it happens when in my filter I
see an IRP_MJ_CREATE for the remote directory that I’m trying to map, and I
try to query for whether it is a directory or a file.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Wednesday, March 03, 2004 2:45 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Is this happening on ALL files you try, or just on ONE file that you have
tried. I wouldn’t be surprised to see this fail on something odd (like a
named pipe file or the volume itself) while it works on a file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful way to
query for this information on the smb redirector?

Thanks,
Matt


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: xxxxx@bitarmor.com To unsubscribe
send a blank email to xxxxx@lists.osr.com

When FILE_CREATE_TREE_CONNECTION is set in create options…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 5:09 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Tony,
Yes, it is only happening some of the time. Specifically, if I try
to mount a network drive for a remote share, it happens when in my filter I
see an IRP_MJ_CREATE for the remote directory that I’m trying to map, and I
try to query for whether it is a directory or a file.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Wednesday, March 03, 2004 2:45 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Is this happening on ALL files you try, or just on ONE file that you have
tried. I wouldn’t be surprised to see this fail on something odd (like a
named pipe file or the volume itself) while it works on a file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful way to
query for this information on the smb redirector?

Thanks,
Matt


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: xxxxx@bitarmor.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@bitarmor.com To unsubscribe
send a blank email to xxxxx@lists.osr.com

> I wouldn’t be surprised to see this fail on something odd

(like a named pipe file or the volume itself) while it works on a
file/directory.

This is true. On named pipes or another special MS-FS-stuff, some
queries may fail. I observed also another thing - if you use DFS,
the call may return succcess but the return information length
(in IoStatusBlock) may be set to zero.

Another case, if you query a StdInfo on named pipe from
a MS-server, it will probably work, if you try an Unix server,
it will probably fail (I observed this on Windows NT redirector).

L.

Sorry, this query does not work on tree connect requests.

Neal Christiansen

Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 3:11 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

When FILE_CREATE_TREE_CONNECTION is set in create options…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 5:09 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Tony,
Yes, it is only happening some of the time. Specifically, if I
try
to mount a network drive for a remote share, it happens when in my
filter I
see an IRP_MJ_CREATE for the remote directory that I’m trying to map,
and I
try to query for whether it is a directory or a file.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Wednesday, March 03, 2004 2:45 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Is this happening on ALL files you try, or just on ONE file that you
have
tried. I wouldn’t be surprised to see this fail on something odd (like
a
named pipe file or the volume itself) while it works on a
file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the
lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful
way to
query for this information on the smb redirector?

Thanks,
Matt


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: xxxxx@bitarmor.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@bitarmor.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@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Neal,
Is it safe to assume that tree connect requests are always for a
remote directory, and not a file?

Thanks,
Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal Christiansen
Sent: Wednesday, March 10, 2004 1:53 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Sorry, this query does not work on tree connect requests.

Neal Christiansen

Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 3:11 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

When FILE_CREATE_TREE_CONNECTION is set in create options…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 5:09 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Tony,
Yes, it is only happening some of the time. Specifically, if I try
to mount a network drive for a remote share, it happens when in my filter I
see an IRP_MJ_CREATE for the remote directory that I’m trying to map, and I
try to query for whether it is a directory or a file.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Wednesday, March 03, 2004 2:45 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Is this happening on ALL files you try, or just on ONE file that you have
tried. I wouldn’t be surprised to see this fail on something odd (like a
named pipe file or the volume itself) while it works on a file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful way to
query for this information on the smb redirector?

Thanks,
Matt


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: xxxxx@bitarmor.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@bitarmor.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@windows.microsoft.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@bitarmor.com To unsubscribe
send a blank email to xxxxx@lists.osr.com

Tree connects are actually opening the “share” itself so yes, you can
assume they are never for a remote file or directory.

Neal Christiansen

Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Thursday, March 11, 2004 6:47 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Neal,
Is it safe to assume that tree connect requests are always for a
remote directory, and not a file?

Thanks,
Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Neal
Christiansen
Sent: Wednesday, March 10, 2004 1:53 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Sorry, this query does not work on tree connect requests.

Neal Christiansen

Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 3:11 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

When FILE_CREATE_TREE_CONNECTION is set in create options…

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Wednesday, March 03, 2004 5:09 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Tony,
Yes, it is only happening some of the time. Specifically, if I
try
to mount a network drive for a remote share, it happens when in my
filter I
see an IRP_MJ_CREATE for the remote directory that I’m trying to map,
and I
try to query for whether it is a directory or a file.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tony Mason
Sent: Wednesday, March 03, 2004 2:45 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Smbmrx queryinfo question

Is this happening on ALL files you try, or just on ONE file that you
have
tried. I wouldn’t be surprised to see this fail on something odd (like
a
named pipe file or the volume itself) while it works on a
file/directory.

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 Matthew N. White
Sent: Wednesday, March 03, 2004 2:17 PM
To: ntfsd redirect
Subject: [ntfsd] Smbmrx queryinfo question

Hi all,
Does anyone know definitively whether file query information
requests of FILE_STANDARD_INFORMATION type should succeed over the
lanman
redirector? I am filtering the mrxsmb redirector, and am getting a
STATUS_NOT_IMPLEMENTED value when I try to query for whether a “file”
is a file or a directory using the FILE_STANDARD_INFORMATION.
If this just simply doesn’t work, is there any other graceful
way to
query for this information on the smb redirector?

Thanks,
Matt


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: xxxxx@bitarmor.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@bitarmor.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@windows.microsoft.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@bitarmor.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@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com