<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SetFileValidData Function (Windows) &#8211; Now with added FAIL</title>
	<atom:link href="http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/</link>
	<description>Ramblings which occasionally resemble reality. This is the blog of Stewart Smith.</description>
	<lastBuildDate>Mon, 15 Mar 2010 12:55:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sch</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89162</link>
		<dc:creator>Sch</dc:creator>
		<pubDate>Tue, 28 Oct 2008 17:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89162</guid>
		<description>Have a look at the DeviceIoControl() and FSCTL_SET_ZERO_DATA.</description>
		<content:encoded><![CDATA[<p>Have a look at the DeviceIoControl() and FSCTL_SET_ZERO_DATA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacPlusG3</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89053</link>
		<dc:creator>MacPlusG3</dc:creator>
		<pubDate>Tue, 09 Sep 2008 00:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89053</guid>
		<description>yep, XFS actually solves the problem :)

Although, in the past this led to the &quot;null bytes in files&quot; for apps that didn&#039;t write their files to disk properly.</description>
		<content:encoded><![CDATA[<p>yep, XFS actually solves the problem :)</p>
<p>Although, in the past this led to the &#8220;null bytes in files&#8221; for apps that didn&#8217;t write their files to disk properly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Smith</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89051</link>
		<dc:creator>Brian Smith</dc:creator>
		<pubDate>Mon, 08 Sep 2008 18:05:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89051</guid>
		<description>xfs has a writeback mode similar to ext3&#039;s, but as you explained above, unwritten blocks are implicitly zero, so xfs will not have the same problem as ext3.

Some day I&#039;d like to have a convention for all the Brian Smiths in the world (except the ones with criminal records; those guys always cause us tons of problems).</description>
		<content:encoded><![CDATA[<p>xfs has a writeback mode similar to ext3&#8217;s, but as you explained above, unwritten blocks are implicitly zero, so xfs will not have the same problem as ext3.</p>
<p>Some day I&#8217;d like to have a convention for all the Brian Smiths in the world (except the ones with criminal records; those guys always cause us tons of problems).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacPlusG3</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89050</link>
		<dc:creator>MacPlusG3</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:47:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89050</guid>
		<description>They likely write each block... I really should look at recent postgresql though... another RDBMS where we can actually look at the source.

i hadn&#039;t thought that hard about ext3 data=writeback in that way before, but yeah - not good either.

(and talk about double take.. my dad&#039;s name is Brian Smith, and spends none of his time caring about ext3 data=writeback)</description>
		<content:encoded><![CDATA[<p>They likely write each block&#8230; I really should look at recent postgresql though&#8230; another RDBMS where we can actually look at the source.</p>
<p>i hadn&#8217;t thought that hard about ext3 data=writeback in that way before, but yeah &#8211; not good either.</p>
<p>(and talk about double take.. my dad&#8217;s name is Brian Smith, and spends none of his time caring about ext3 data=writeback)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Smith</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89049</link>
		<dc:creator>Brian Smith</dc:creator>
		<pubDate>Mon, 08 Sep 2008 17:28:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89049</guid>
		<description>ext3 data=writeback will also expose previously-deleted data: If you append data to a file, and the system crashes after the metadata is written and before the data is written, then after the crash the end of the file will contain old deleted data.</description>
		<content:encoded><![CDATA[<p>ext3 data=writeback will also expose previously-deleted data: If you append data to a file, and the system crashes after the metadata is written and before the data is written, then after the crash the end of the file will contain old deleted data.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LinuxJedi</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89048</link>
		<dc:creator>LinuxJedi</dc:creator>
		<pubDate>Mon, 08 Sep 2008 13:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89048</guid>
		<description>And I thought I had a headache before reading that :)

I would imagine a place to start would be to look at how virtualization apps do it, as they must have a similar goal when pre-creating the virtual disks.

This has gone far beyond my Windows programming skills though :)</description>
		<content:encoded><![CDATA[<p>And I thought I had a headache before reading that :)</p>
<p>I would imagine a place to start would be to look at how virtualization apps do it, as they must have a similar goal when pre-creating the virtual disks.</p>
<p>This has gone far beyond my Windows programming skills though :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MacPlusG3</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89047</link>
		<dc:creator>MacPlusG3</dc:creator>
		<pubDate>Mon, 08 Sep 2008 13:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89047</guid>
		<description>I&#039;m thinking about doing that, followed by the writing of zeros from start to finish... but that still leaves a point where after crash the content of the file is undefined.... Although in a RDBMS we have (or at least should) a way to roll back the not-yet-completed create of a file</description>
		<content:encoded><![CDATA[<p>I&#8217;m thinking about doing that, followed by the writing of zeros from start to finish&#8230; but that still leaves a point where after crash the content of the file is undefined&#8230;. Although in a RDBMS we have (or at least should) a way to roll back the not-yet-completed create of a file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LinuxJedi</title>
		<link>http://www.flamingspork.com/blog/2008/09/08/setfilevaliddata-function-windows-now-with-added-fail/comment-page-1/#comment-89046</link>
		<dc:creator>LinuxJedi</dc:creator>
		<pubDate>Mon, 08 Sep 2008 13:21:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=1201#comment-89046</guid>
		<description>I&#039;ve heard you can do this with SetFilePointer() and then setting SetEndOfFile() and setting SetFilePointer() to 0 when you finish.  But I have nothing to test this on right now.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve heard you can do this with SetFilePointer() and then setting SetEndOfFile() and setting SetFilePointer() to 0 when you finish.  But I have nothing to test this on right now.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
