Redirector and CMD.exe: cd doesn't work

I have a mini-redirector prototype that I’m currently working
on. Currently, I have the QueryDirectory() function working
in most cases. I can sucessfully browse through directories
in explorer.

But… here is the tricky part. From cmd.exe, if I try to
cd into a subdirectory of the drive root, I get an error:
‘The directory name is invalid.’

And if I do dir t:\svn-repo, for example, I get a listing
as if I had done dir t:\svn-repo* instead of the listing
of the contents of svn-repo.

Does anyone have any clue what part of this I’m messing up?

My redirector doesn’t have the ability to return short names…
(I set ShortNameLength = 0, and zero out ShortName.)
Does cmd require the short names?

Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
is a comment in ntifs.h about this being for DOS and not being
a valid NT flag…

Thanks,

Joseph

When you use FileMon to watch, what errors do you see returned (if any)?

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 October
18, 2004 in Silicon Valley!

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Joseph Galbraith
Sent: Tuesday, July 13, 2004 11:31 AM
To: ntfsd redirect
Subject: [ntfsd] Redirector and CMD.exe: cd doesn’t work

I have a mini-redirector prototype that I’m currently working
on. Currently, I have the QueryDirectory() function working
in most cases. I can sucessfully browse through directories
in explorer.

But… here is the tricky part. From cmd.exe, if I try to
cd into a subdirectory of the drive root, I get an error:
‘The directory name is invalid.’

And if I do dir t:\svn-repo, for example, I get a listing
as if I had done dir t:\svn-repo* instead of the listing
of the contents of svn-repo.

Does anyone have any clue what part of this I’m messing up?

My redirector doesn’t have the ability to return short names…
(I set ShortNameLength = 0, and zero out ShortName.)
Does cmd require the short names?

Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
is a comment in ntifs.h about this being for DOS and not being
a valid NT flag…

Thanks,

Joseph


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

Set FILE_ATTRIBUTE_DIRECTORY. If the redir does this - it works.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Joseph Galbraith”
To: “Windows File Systems Devs Interest List”
Sent: Tuesday, July 13, 2004 7:31 PM
Subject: [ntfsd] Redirector and CMD.exe: cd doesn’t work

> I have a mini-redirector prototype that I’m currently working
> on. Currently, I have the QueryDirectory() function working
> in most cases. I can sucessfully browse through directories
> in explorer.
>
> But… here is the tricky part. From cmd.exe, if I try to
> cd into a subdirectory of the drive root, I get an error:
> ‘The directory name is invalid.’
>
> And if I do dir t:\svn-repo, for example, I get a listing
> as if I had done dir t:\svn-repo* instead of the listing
> of the contents of svn-repo.
>
> Does anyone have any clue what part of this I’m messing up?
>
> My redirector doesn’t have the ability to return short names…
> (I set ShortNameLength = 0, and zero out ShortName.)
> Does cmd require the short names?
>
> Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
> is a comment in ntifs.h about this being for DOS and not being
> a valid NT flag…
>
> Thanks,
>
> Joseph
>
> —
> 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

Maxim S. Shatskih wrote:

Set FILE_ATTRIBUTE_DIRECTORY. If the redir does this - it works.

Okay… that is what I’m currently doing…
still have the problems with CMD.exe though.

  • Joseph

----- Original Message -----
From: “Joseph Galbraith”
> To: “Windows File Systems Devs Interest List”
> Sent: Tuesday, July 13, 2004 7:31 PM
> Subject: [ntfsd] Redirector and CMD.exe: cd doesn’t work
>
>
>
>>I have a mini-redirector prototype that I’m currently working
>>on. Currently, I have the QueryDirectory() function working
>>in most cases. I can sucessfully browse through directories
>>in explorer.
>>
>>But… here is the tricky part. From cmd.exe, if I try to
>>cd into a subdirectory of the drive root, I get an error:
>>‘The directory name is invalid.’
>>
>>And if I do dir t:\svn-repo, for example, I get a listing
>>as if I had done dir t:\svn-repo* instead of the listing
>>of the contents of svn-repo.
>>
>>Does anyone have any clue what part of this I’m messing up?
>>
>>My redirector doesn’t have the ability to return short names…
>>(I set ShortNameLength = 0, and zero out ShortName.)
>>Does cmd require the short names?
>>
>>Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
>>is a comment in ntifs.h about this being for DOS and not being
>>a valid NT flag…
>>
>>Thanks,
>>
>>Joseph
>>
>>—
>>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@vandyke.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Okay… I’m stumped. I’ve got my redirector on
drive T: via net use t: \nulsvr\share (I started
with the nulmrx sample.)

However, FileMon doesn’t show that drive as a volume
on the Volumes menu.

Am I missing some registration or something?

Sorry for the slew of newbie questions…

Thanks,

Joseph

Tony Mason wrote:

When you use FileMon to watch, what errors do you see returned (if any)?

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 October
18, 2004 in Silicon Valley!

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Joseph Galbraith
Sent: Tuesday, July 13, 2004 11:31 AM
To: ntfsd redirect
Subject: [ntfsd] Redirector and CMD.exe: cd doesn’t work

I have a mini-redirector prototype that I’m currently working
on. Currently, I have the QueryDirectory() function working
in most cases. I can sucessfully browse through directories
in explorer.

But… here is the tricky part. From cmd.exe, if I try to
cd into a subdirectory of the drive root, I get an error:
‘The directory name is invalid.’

And if I do dir t:\svn-repo, for example, I get a listing
as if I had done dir t:\svn-repo* instead of the listing
of the contents of svn-repo.

Does anyone have any clue what part of this I’m messing up?

My redirector doesn’t have the ability to return short names…
(I set ShortNameLength = 0, and zero out ShortName.)
Does cmd require the short names?

Also, when should I be setting FILE_ATTRIBUTE_DIRECTORY? There
is a comment in ntifs.h about this being for DOS and not being
a valid NT flag…

Thanks,

Joseph


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