Re: Redirector and CMD.exe: cd doesn't work

For the record (and anyone searching the archives):

  1. As near as I can tell FileMon can not be used to
    monitor any redirectors other than the MS provided
    ones. (Device names appear to be hardcoded?)

  2. Network drivers are all lumped together under the
    ‘network’ check box in FileMon.

  3. RxRegisterMinirdr() calls IoRegisterFileSystem()
    on behalf of the minirdr; don’t call it again.

RxRegisterMinirdr() appears to be all the registration
that is needed.

  1. Trying to become LanmanRedirector so filemon will
    monitor you is a REALLY bad idea (unbootable system.)

  2. The filespy sample from MS IFS kit doesn’t have a pretty
    user interface, but it can monitor all filesystems and
    seems to be giving the information I need.

  • Joseph

Joseph Galbraith wrote:

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
>


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

> 1. As near as I can tell FileMon can not be used to

monitor any redirectors other than the MS provided
ones. (Device names appear to be hardcoded?)

It would be interesting to rewrite the redirector
name in the SYS and then try if filemon will
watch your redirector.

L.

Ladislav Zezula wrote:

> 1. As near as I can tell FileMon can not be used to
> monitor any redirectors other than the MS provided
> ones. (Device names appear to be hardcoded?)

It would be interesting to rewrite the redirector
name in the SYS and then try if filemon will
watch your redirector.

I tried patching it but it is non-trivial because of
the image checksum.

It could be done, but you’d need a tool to patch up
the image checksum afterwards that I didn’t have
handy, nor know exactly where to get it.

  • Joseph

Joseph Galbraith wrote:

It could be done, but you’d need a tool to patch up
the image checksum afterwards that I didn’t have
handy, nor know exactly where to get it.

http://cvs.reactos.com/cgi-bin/cvsweb.cgi/~checkout~/reactos/apps/utils/pesum/pesum.c?rev=1.1&content-type=text/plain

> > It could be done, but you’d need a tool to patch up

> the image checksum afterwards that I didn’t have
> handy, nor know exactly where to get it.

http://cvs.reactos.com/cgi-bin/cvsweb.cgi/~checkout~/reactos/apps/utils/pesum/pesum.c?
rev=1.1&content-type=text/plain

“link -edit -release” is possibly even simpler :slight_smile:

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