File open does not work properly from explorer

I have written a filesystem driver (the driver is read-only and does not support Fast I/O). The directory listing appears correctly in Windows explorer. However, whenever I double click on a file with which there is no default application associated (mostly files with no extension), I receive the following error:


f:etcfstab
Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.

The funny thing is that if I open the file from a command prompt (eg. by the command “write f:abc”), the file opens correctly. Also, if I open files directly from an application (using an open dialog box), they open correctly. Files with extensions and a default viewer pose no problem.

I have run filemon while receiving this error, and have attached the log below.
Can anyone decipher why the files do not open from windows explorer? I know this is a problem with my driver as I do not face such problems on NTFS drives.

Filemon log:

1 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_OPEN F:etcfstab FAILURE
2 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etcfstab SUCCESS Options: Open Access: All
3 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_BASIC_INFO F:etcfstab FAILURE
4 6:39:43 PM explorer.exe:1612 IRP_MJ_QUERY_INFORMATION F:etcfstab SUCCESS FileBasicInformation
5 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etcfstab SUCCESS
6 6:39:43 PM explorer.exe:1612 IRP_MJ_CLOSE F:etcfstab SUCCESS
7 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etcfstab SUCCESS Options: Open Access: All
8 6:39:43 PM explorer.exe:1612 IRP_MJ_SET_INFORMATION F:etcfstab * 0xC00000A2 FileBasicInformation
9 6:39:43 PM explorer.exe:1612 IRP_MJ_READ F:etcfstab SUCCESS Offset: 0 Length: 512
10 6:39:43 PM System:4 IRP_MJ_CLOSE F:etcfstab SUCCESS
11 6:39:43 PM explorer.exe:1612 FASTIO_READ F:etcfstab FAILURE Offset: 0 Length: 4
12 6:39:43 PM explorer.exe:1612 IRP_MJ_READ F:etcfstab SUCCESS Offset: 0 Length: 4
13 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etcfstab SUCCESS
14 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_OPEN F:etc FAILURE
15 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etc SUCCESS Options: Open Access: All
16 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_BASIC_INFO F:etc FAILURE
17 6:39:43 PM explorer.exe:1612 IRP_MJ_QUERY_INFORMATION F:etc SUCCESS FileBasicInformation
18 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etc SUCCESS
19 6:39:43 PM explorer.exe:1612 IRP_MJ_CLOSE F:etc SUCCESS


Sign up and get your 30GB webmail at www.30gigs.com now!

Did you compare the trace against NTFS?

The trace you provided looks fairly normal (e.g., the fast I/O failures
that then turn into full open/query/cleanup/close sequences - which, by
the way is the reason to implement the fast i/o query open - it
collapses those four successful I/O operations and the second aborted
fast I/O into a single operation.) The failed set information is odd -
I’m not sure why it is trying to set information in this case. Thus, my
suspicion is that it is not the I/O operations but rather the attribute
information you are returning that Explorer doesn’t like for some
reason. Of course, the tool you are using doesn’t show you what
attributes are being set or returned.

Of all the things that we do with file systems, this process of
debugging the behavior of a specific application is likely one of the
most difficult. Explorer is a mysterious black box that will likely
give you more grief over the lifetime of your project than any other
single application.

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
Boston, MA April 18-21, 2006.


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]
Sent: Monday, April 17, 2006 9:49 AM
To: ntfsd redirect
Subject: [ntfsd] File open does not work properly from explorer

I have written a filesystem driver (the driver is read-only and does not
support Fast I/O). The directory listing appears correctly in Windows
explorer. However, whenever I double click on a file with which there is
no default application associated (mostly files with no extension), I
receive the following error:


f:etcfstab
Windows cannot access the specified device, path or file. You may not
have the appropriate permissions to access the item.

The funny thing is that if I open the file from a command prompt (eg. by
the command “write f:abc”), the file opens correctly. Also, if I open
files directly from an application (using an open dialog box), they open
correctly. Files with extensions and a default viewer pose no problem.

I have run filemon while receiving this error, and have attached the log
below.
Can anyone decipher why the files do not open from windows explorer? I
know this is a problem with my driver as I do not face such problems on
NTFS drives.

Filemon log:

1 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_OPEN F:etcfstab FAILURE
2 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etcfstab SUCCESS Options:
Open Access: All
3 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_BASIC_INFO F:etcfstab
FAILURE
4 6:39:43 PM explorer.exe:1612 IRP_MJ_QUERY_INFORMATION F:etcfstab
SUCCESS FileBasicInformation
5 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etcfstab SUCCESS
6 6:39:43 PM explorer.exe:1612 IRP_MJ_CLOSE F:etcfstab SUCCESS
7 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etcfstab SUCCESS Options:
Open Access: All
8 6:39:43 PM explorer.exe:1612 IRP_MJ_SET_INFORMATION F:etcfstab *
0xC00000A2 FileBasicInformation
9 6:39:43 PM explorer.exe:1612 IRP_MJ_READ F:etcfstab SUCCESS Offset: 0
Length: 512
10 6:39:43 PM System:4 IRP_MJ_CLOSE F:etcfstab SUCCESS
11 6:39:43 PM explorer.exe:1612 FASTIO_READ F:etcfstab FAILURE Offset: 0
Length: 4
12 6:39:43 PM explorer.exe:1612 IRP_MJ_READ F:etcfstab SUCCESS Offset: 0
Length: 4
13 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etcfstab SUCCESS
14 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_OPEN F:etc FAILURE
15 6:39:43 PM explorer.exe:1612 IRP_MJ_CREATE F:etc SUCCESS Options:
Open Access: All
16 6:39:43 PM explorer.exe:1612 FASTIO_QUERY_BASIC_INFO F:etc FAILURE
17 6:39:43 PM explorer.exe:1612 IRP_MJ_QUERY_INFORMATION F:etc SUCCESS
FileBasicInformation
18 6:39:43 PM explorer.exe:1612 IRP_MJ_CLEANUP F:etc SUCCESS
19 6:39:43 PM explorer.exe:1612 IRP_MJ_CLOSE F:etc SUCCESS


Hi…! Get this Exclusive Offer From 30gigs.com. Free Ipod Nano! Click
Here.
http:0&a=SignatureAds>
Don’t have 30gigs email account yet? Sign up and get your 30GB Webmail
http:
account Now! — 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</http:></http:>