when you do a CcPinRead, and modify the contents of the buffer. what
actually happens when you call CcSetDirtyPinnedData? is the modified
contents of the buffer written straight back to the disk?
General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA
It marks the BCB as dirty and schedules a lazy write.
Dan
----- Original Message -----
From: “James Dunning”
To: “File Systems Developers”
Sent: Thursday, September 26, 2002 4:43 PM
Subject: [ntfsd] What does CcSetDirtyPinnedData Actually do?
> when you do a CcPinRead, and modify the contents of the buffer. what
> actually happens when you call CcSetDirtyPinnedData? is the modified
> contents of the buffer written straight back to the disk?
>
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
I thought that was what happens, but when does the lazy write occur?
if you do a CcPinRead, modify the contents of the buffer, then set the BCB
as dirty and unpin the BCB
would the lazy write occur before the BCB was unpinned? or does it schedule
a lazy write and place the
request in some sort of queue to be written later?
-----Original Message-----
From: Dan Partelly [mailto:xxxxx@rdsor.ro]
Sent: 26 September 2002 15:06
To: File Systems Developers
Subject: [ntfsd] Re: What does CcSetDirtyPinnedData Actually do?
It marks the BCB as dirty and schedules a lazy write.
Dan
----- Original Message -----
From: “James Dunning”
To: “File Systems Developers”
Sent: Thursday, September 26, 2002 4:43 PM
Subject: [ntfsd] What does CcSetDirtyPinnedData Actually do?
> when you do a CcPinRead, and modify the contents of the buffer. what
> actually happens when you call CcSetDirtyPinnedData? is the modified
> contents of the buffer written straight back to the disk?
>
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
—
You are currently subscribed to ntfsd as:
xxxxx@generaldynamics.uk.com
To unsubscribe send a blank email to %%email.unsub%%
General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA
Lazy writes are posted to a worker thread. I dont know how exactly the
process takes place and the exact algo, but if your *really* interested I
can lookup it in a debugger and tell you.
----- Original Message -----
From: “James Dunning”
To: “File Systems Developers”
Sent: Thursday, September 26, 2002 5:23 PM
Subject: [ntfsd] Re: What does CcSetDirtyPinnedData Actually do?
> I thought that was what happens, but when does the lazy write occur?
>
> if you do a CcPinRead, modify the contents of the buffer, then set the BCB
> as dirty and unpin the BCB
>
> would the lazy write occur before the BCB was unpinned? or does it
schedule
> a lazy write and place the
> request in some sort of queue to be written later?
>
> -----Original Message-----
> From: Dan Partelly [mailto:xxxxx@rdsor.ro]
> Sent: 26 September 2002 15:06
> To: File Systems Developers
> Subject: [ntfsd] Re: What does CcSetDirtyPinnedData Actually do?
>
>
> It marks the BCB as dirty and schedules a lazy write.
>
> Dan
>
> ----- Original Message -----
> From: “James Dunning”
> To: “File Systems Developers”
> Sent: Thursday, September 26, 2002 4:43 PM
> Subject: [ntfsd] What does CcSetDirtyPinnedData Actually do?
>
>
> > when you do a CcPinRead, and modify the contents of the buffer. what
> > actually happens when you call CcSetDirtyPinnedData? is the modified
> > contents of the buffer written straight back to the disk?
> >
> >
> >
> > General Dynamics United Kingdom Limited
> > Registered in England and Wales No. 1911653
> > Registered Office: 100 New Bridge Street, London, EC4V 6JA
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@generaldynamics.uk.com
> To unsubscribe send a blank email to %%email.unsub%%
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>
While memory is pinned, it will not be written. This is necessary to
implement systems with transactional semantics (e.g., NTFS) because they
must control the order of operations (write the log versus the updates in a
specific order.)
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: James Dunning [mailto:xxxxx@generaldynamics.uk.com]
Sent: Thursday, September 26, 2002 9:43 AM
To: File Systems Developers
Subject: [ntfsd] What does CcSetDirtyPinnedData Actually do?
when you do a CcPinRead, and modify the contents of the buffer. what
actually happens when you call CcSetDirtyPinnedData? is the modified
contents of the buffer written straight back to the disk?
General Dynamics United Kingdom Limited
Registered in England and Wales No. 1911653
Registered Office: 100 New Bridge Street, London, EC4V 6JA
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to %%email.unsub%%
>when you do a CcPinRead, and modify the contents of the buffer. what
actually happens when you call CcSetDirtyPinnedData? is the modified
contents of the buffer written straight back to the disk?
Hi,
As far as I now if file object used in CcPinRead was created using
IoCreateStreamFileObject and FsContext2 field in this file object is NULL
flusing will be scheduled, otherwise CcUnpinData writes dirty data to
disk.
Alexei.
No. The BCB is marked as “dirty” and put to lazy writer’s lists.
Next lazy writer pass will try to grab ERESOURCE lock in BCB, and, if
successful, will flush the data to the disk.
Max
----- Original Message -----
From: “James Dunning”
To: “File Systems Developers”
Sent: Thursday, September 26, 2002 5:43 PM
Subject: [ntfsd] What does CcSetDirtyPinnedData Actually do?
> when you do a CcPinRead, and modify the contents of the buffer. what
> actually happens when you call CcSetDirtyPinnedData? is the
modified
> contents of the buffer written straight back to the disk?
>
>
>
> General Dynamics United Kingdom Limited
> Registered in England and Wales No. 1911653
> Registered Office: 100 New Bridge Street, London, EC4V 6JA
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to %%email.unsub%%
>