I roll my own irp to query directories.
I have a file “test.txt” on a local NTFS volume. I do
the following queries with the stated results:
Search string “*” –> works
Search string “test*” –> works
Search string “test.txt” –> works
I now have a file “test.txt” on a NTFS formated USB
flash media device.
Search string “*” –> works
Search string “test*” –> STATUS_NO_SUCH_FILE
((NTSTATUS)0xC000000FL)
Search string “test.txt” –> works
I’m not expecting to get STATUS_NO_SUCH_FILE.
Obviously I’m expecting the wrong thing 
This leads me to believe that maybe the wildcard
semantics are different for the local device vs. the
flash device.
Can anyone shed some light?
Thanks,
Randy
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
That is ultra-bizarre… do you get the same results if you format as FAT?
Randy Cook wrote:
I roll my own irp to query directories.
I have a file “test.txt” on a local NTFS volume. I do
the following queries with the stated results:
Search string “*” –> works
Search string “test*” –> works
Search string “test.txt” –> works
I now have a file “test.txt” on a NTFS formated USB
flash media device.
Search string “*” –> works
Search string “test*” –> STATUS_NO_SUCH_FILE
((NTSTATUS)0xC000000FL)
Search string “test.txt” –> works
I’m not expecting to get STATUS_NO_SUCH_FILE.
Obviously I’m expecting the wrong thing 
This leads me to believe that maybe the wildcard
semantics are different for the local device vs. the
flash device.
Can anyone shed some light?
Thanks,
Randy
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
–
Nick Ryan (MVP for DDK)
That’s a good idea, I’ll try that (FAT).
Here are some more details.
test* –> Doesn’t work
TEST* –> Does work
Also, if the short name and long name are different
and I specify the short name in the query (upper or
lower case) it doesn’t work.
Looking at the FAT code, it seems that some flags that
might be related are pulled from the Ccb structure
pointed to by fileObject->FsContext2. I wonder how
these flags get filled in when the file object is
created?
— Nick Ryan wrote:
> That is ultra-bizarre… do you get the same results
> if you format as FAT?
>
> Randy Cook wrote:
>
> > I roll my own irp to query directories.
> >
> > I have a file “test.txt” on a local NTFS volume.
> I do
> > the following queries with the stated results:
> > Search string “" –> works
> > Search string "test” –> works
> > Search string “test.txt” –> works
> >
> > I now have a file “test.txt” on a NTFS formated
> USB
> > flash media device.
> > Search string “" –> works
> > Search string "test” –> STATUS_NO_SUCH_FILE
> > ((NTSTATUS)0xC000000FL)
> > Search string “test.txt” –> works
> >
> > I’m not expecting to get STATUS_NO_SUCH_FILE.
> > Obviously I’m expecting the wrong thing 
> >
> > This leads me to believe that maybe the wildcard
> > semantics are different for the local device vs.
> the
> > flash device.
> >
> > Can anyone shed some light?
> >
> > Thanks,
> >
> > Randy
> >
> >
> > Do you Yahoo!?
> > Free Pop-Up Blocker - Get it now
> > http://companion.yahoo.com/
> >
> >
>
> –
> Nick Ryan (MVP for DDK)
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
FAT works properly.
I have found that on NTFS if I get a fresh pointer to
the flash drive’s device object, it works. If I use
my cached PDO it doesn’t work.
Does context matter for using PDOs?
— Randy Cook wrote:
> That’s a good idea, I’ll try that (FAT).
>
> Here are some more details.
>
> test* –> Doesn’t work
> TEST* –> Does work
>
> Also, if the short name and long name are different
> and I specify the short name in the query (upper or
> lower case) it doesn’t work.
>
> Looking at the FAT code, it seems that some flags
> that
> might be related are pulled from the Ccb structure
> pointed to by fileObject->FsContext2. I wonder how
> these flags get filled in when the file object is
> created?
>
> — Nick Ryan wrote:
> > That is ultra-bizarre… do you get the same
> results
> > if you format as FAT?
> >
> > Randy Cook wrote:
> >
> > > I roll my own irp to query directories.
> > >
> > > I have a file “test.txt” on a local NTFS volume.
>
> > I do
> > > the following queries with the stated results:
> > > Search string “" –> works
> > > Search string "test” –> works
> > > Search string “test.txt” –> works
> > >
> > > I now have a file “test.txt” on a NTFS formated
> > USB
> > > flash media device.
> > > Search string “" –> works
> > > Search string "test” –> STATUS_NO_SUCH_FILE
> > > ((NTSTATUS)0xC000000FL)
> > > Search string “test.txt” –> works
> > >
> > > I’m not expecting to get STATUS_NO_SUCH_FILE.
> > > Obviously I’m expecting the wrong thing 
> > >
> > > This leads me to believe that maybe the wildcard
> > > semantics are different for the local device vs.
> > the
> > > flash device.
> > >
> > > Can anyone shed some light?
> > >
> > > Thanks,
> > >
> > > Randy
> > >
> > >
> > > Do you Yahoo!?
> > > Free Pop-Up Blocker - Get it now
> > > http://companion.yahoo.com/
> > >
> > >
> >
> > –
> > Nick Ryan (MVP for DDK)
> >
> >
> > —
> > Questions? First check the IFS FAQ at
> > https://www.osronline.com/article.cfm?id=17
> >
> > You are currently subscribed to ntfsd as:
> > xxxxx@yahoo.com
> > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>
>
>
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
xxxxx@lists.osr.com
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/