Hi All,
Does anybody knows what PIN_EXCLUSIVE flag in CcPinRead means? Will it
cause wait for all other areas of this file to be Unpinned before return?
I also didn’t find the value of this flag in NTIFS.H, maybe somebody knows
what the value us?
Bye,
Alexei.
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
CcPinRead pins a range.
Pin only has meaning with metadata files. No flag means shared access.
This is the synchronization with the lazy writer, which acquires it
exclusive (yes, there is an ERESOURCE buried in there). While you have
it pinned and are supposedly mucking about the lazy writer can’t write
it.
PIN_EXCLUSIVE acquires it exclusive, so you can synchronize with other
pinners without building another layer of range synchronization.
-----Original Message-----
From: xxxxx@mondenet.com [mailto:xxxxx@mondenet.com]
Sent: Monday, September 24, 2001 2:18 AM
To: File Systems Developers
Subject: [ntfsd] PIN_EXCLUSIVE flag in CcPinRead
Hi All,
Does anybody knows what PIN_EXCLUSIVE flag in CcPinRead means? Will it
cause wait for all other areas of this file to be Unpinned before
return?
I also didn’t find the value of this flag in NTIFS.H, maybe somebody
knows
what the value us?
Bye,
Alexei.
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
> Does anybody knows what PIN_EXCLUSIVE flag in CcPinRead means? Will it
cause wait for all other areas of this file to be Unpinned before return?
Why must it influence file areas other then the one described by this BCB?
The whole idea of Cc pinning is to assign ERESOURCE locks to the file’s byte
ranges and provide ways to acquire them - either shared or exclusively.
To update the range, you must have the lock acquired as exclusive.
To read it - shared is enough. Lazy writer acquires the range as shared.
CcPinRead(PIN_EXCLUSIVE) gives you the exclusive semantics for the range
acquired for read, not for update.
Max
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>This is the synchronization with the lazy writer, which acquires it
exclusive
Thanks for correcting me.
Max
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com