[Ocfs2-test-devel] [PATCH] Test zeros in holes while writing on page boundaries

Joel Becker jlbec at evilplan.org
Mon Feb 28 10:04:23 PST 2011


On Thu, Feb 24, 2011 at 10:55:17AM -0600, Goldwyn Rodrigues wrote:
> This checks for zeros while writing at page boundaries and lseeking. The
> precise conditions are:
> 
> 1. blocksize < clustersize
> 2.  the previous write ended in a page boundary, but not a cluster
> boundary. eg, clustersize=16K but pos is at the page boundary = 4k
> 3. you wrote something at the page boundary
> 4. there is a hole created in the page from 4k-8k in *between* say
> 4128-4640
> 5. i_size has moved past the second page, or past 8192
> 
> Sorry, my expected file is a bit too large because this is more
> probabilistic rather than deterministic.

	Like I stated in my other response, this should be evidenced
directly by one test, not only sometimes, right?

Joel

-- 

Life's Little Instruction Book #30

	"Never buy a house without a fireplace."

			http://www.jlbec.org/
			jlbec at evilplan.org



More information about the Ocfs2-test-devel mailing list