Right. You want to confirm this. I assume you are doing a file system
driver. In this case, if you get writes to disk that are non-sector
aligned
at the end, you zero out the remainder non-sector aligned part and write
the
buffer out to disk. So, you will not have to zero out that part of file
in
cache.
Eg. Disk write off=4096, len=8195
Zero out part of buffer from 8196th byte to 8704 before you give
this
buffer to disk driver to write out.
This will cause the cache to page fault in zeros correctly in case of
file
extension. In cache you will have to zero out 8704 to 12288 for
example.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Friday, September 30, 2005 6:38 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] CcZeroData assertion
Right, it’s not, but is the documentation wrong then? It says this is
only
the case if the file isn’t cached.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Nagaraj Shyam
Sent: Friday, September 30, 2005 7:52 PM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] CcZeroData assertion
Your Zeroing range is probably not sector aligned?
Checkout cachesup.c in fastfat source for w2k, comments on line 1413
approx.
-Shyam
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Matthew N. White
Sent: Friday, September 30, 2005 4:49 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] CcZeroData assertion
Hi all,
Has anybody seen this assertion failure when using CcZeroData? I am
trying
to zero data on a set eof IRP when my EOF is expanded, and get this
assertion failure. I realize the docs say that if the file is
noncached,
that the offset & end have to be sector aligned, but I am calling
CcZeroData
on a cached file. Any ideas?
** Assertion failed: ToGo.QuadPart <= 0x2000 || ((ToGo.LowPart &
SectorMask)
== 0 && (FOffset.LowPart & SectorMask) == 0)
*** Source File: d:\xpsprtm\base\ntos\cache\fssup.c, line 3400
Thanks,
Matt
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@vormetric.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: unknown lmsubst tag argument:
‘’
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@vormetric.com
To unsubscribe send a blank email to xxxxx@lists.osr.com