FCB and relation with number of instances of an opened file

How are the two be related, or clearer how can I find out, from a FCB or FileObject, if that file object is the only object that points to a certain file resident disk, or not. I know that FCB is created/associated with a file object, when a file is opened/create along with CCB and other in memory system structures to monitor, synch and handle file operation flow.

FCB has a FSD associated FileObject count, thus more fileobjects have same FCB. How do I know that number of file object is more than one, in let’s say post create.
I hope my question is clear enough

AFAIK you have to keep track yourself by some map. Furthermore you must expect IRP_MJ_CLEANUP & IRP_MJ_CLOSE for unseen FO. The FCB is internal structure of FSD, so you cannot access its members. Only knowledge you have is that it starts with either FSRTL_COMMON_FCB_HEADER or FSRTL_ADVANCED_FCB_HEADER structure, which is not very helpful in this case.
-bg

I was afraid of this answer. Thank you.
IRP_MJ_CLEANUP & CLOSE I’m very aware :slight_smile: but that was not my concern. Thanks
again.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@xythos.com
Sent: Wednesday, August 27, 2008 12:22 AM
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] FCB and relation with number of instances of an opened
file

AFAIK you have to keep track yourself by some map. Furthermore you must
expect IRP_MJ_CLEANUP & IRP_MJ_CLOSE for unseen FO. The FCB is internal
structure of FSD, so you cannot access its members. Only knowledge you have
is that it starts with either FSRTL_COMMON_FCB_HEADER or
FSRTL_ADVANCED_FCB_HEADER structure, which is not very helpful in this case.
-bg


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

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