Volume device opens?

Hi all,
Can anyone tell me what the easiest way is to definitively
determine a volume device open in the create handler for a filter driver
is? Can I just look for FileName.Length of zero? Should I be concerned
with the RelatedFileObject in determining this?

Thanks,
Matt

If you have the IFS kit, you can look at the filespy sample which makes
the appropriate checks.

if (FlagOn( FileObject->Flags, FO_VOLUME_OPEN ) ||
(FileObject->FileName.Length == 0) &&
(FileObject->RelatedFileObject == NULL))) {

-----Original Message-----
From: Matthew White [mailto:xxxxx@fsnnet.net]
Sent: Thursday, July 31, 2003 10:57 AM
To: File Systems Developers
Subject: [ntfsd] Volume device opens?

Hi all,
Can anyone tell me what the easiest way is to definitively
determine a volume device open in the create handler for a filter driver
is? Can I just look for FileName.Length of zero? Should I be concerned
with the RelatedFileObject in determining this?

Thanks,
Matt


You are currently subscribed to ntfsd as: xxxxx@exagrid.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Matt,

I think this is in the FAQ, but I know I cover it in my file systems class
as well…

Volume Open: FileName.Length = 0, RelatedFileObject = 0
Re-open existing file: FileName.Length = 0, RelatedFileObject != 0

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: Matthew White [mailto:xxxxx@fsnnet.net]
Sent: Thursday, July 31, 2003 10:57 AM
To: File Systems Developers
Subject: [ntfsd] Volume device opens?

Hi all,
Can anyone tell me what the easiest way is to definitively
determine a volume device open in the create handler for a filter driver
is? Can I just look for FileName.Length of zero? Should I be concerned
with the RelatedFileObject in determining this?

Thanks,
Matt


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Got it! Thanks Tom.

Matt

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Tom Hansen
Sent: Thursday, July 31, 2003 11:14 AM
To: File Systems Developers
Subject: [ntfsd] RE: Volume device opens?

If you have the IFS kit, you can look at the filespy sample which makes
the appropriate checks.

if (FlagOn( FileObject->Flags, FO_VOLUME_OPEN ) ||
(FileObject->FileName.Length == 0) &&
(FileObject->RelatedFileObject == NULL))) {

-----Original Message-----
From: Matthew White [mailto:xxxxx@fsnnet.net]
Sent: Thursday, July 31, 2003 10:57 AM
To: File Systems Developers
Subject: [ntfsd] Volume device opens?

Hi all,
Can anyone tell me what the easiest way is to definitively
determine a volume device open in the create handler for a filter driver
is? Can I just look for FileName.Length of zero? Should I be concerned
with the RelatedFileObject in determining this?

Thanks,
Matt


You are currently subscribed to ntfsd as: xxxxx@exagrid.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntfsd as: xxxxx@fsnnet.net
To unsubscribe send a blank email to xxxxx@lists.osr.com

> is? Can I just look for FileName.Length of zero? Should I be concerned

with the RelatedFileObject in determining this?

Yes and yes. RelatedFileObject must be NULL, and FileName.Length must be zero.

Max