<div>We&nbsp;have some&nbsp;PPC440GX based blade servers that boot</div>
<div>from flash.&nbsp; My boss wants me&nbsp;to add</div>
<div>additional checksums somewhere in the JFFS2 partitions</div>
<div>as an overall check of the JFFS2 filesystem images that</div>
<div>we burn to flash.&nbsp; Once the image is burned, that file</div>
<div>system is never written to again.&nbsp; (That's the theory anyway). </div>
<div>So every time they boot they want to read these checksum</div>
<div>out of the flash and use it to decide if they want to/can boot</div>
<div>with that filesystem or fallback to another one.&nbsp; </div>
<div>&nbsp;</div>
<div>Each copy of the &nbsp;kernel has its own JFFS2 partition.&nbsp;&nbsp;</div>
<div>The root file system has its own JFFS2 partition.&nbsp; I don't </div>
<div>understand why they don't just write everything to one </div>
<div>JFFS2 partition.&nbsp; They say it is because they are </div>
<div>worried about power failure while writing to the flash and want </div>
<div>to isolate any write failures.&nbsp; </div>
<div>( I tried to tell them that the journaling already handles </div>
<div>that case quite well - but they are non-believers)</div>
<div>&nbsp;</div>
<div>Some questions;</div>
<div>&nbsp;</div>
<div>1)&nbsp; Is a filesystem-wide checksum really necessary or</div>
<div>is it kind of silly?</div>
<div>&nbsp;</div>
<div>1.1)&nbsp; Doesn't JFFS2 already do some integrity checking after</div>
<div>it finishes writing a file?&nbsp; Are there checksums or anything that </div>
<div>serves the same function?&nbsp;&nbsp;&nbsp;&nbsp;They want to avoid having to </div>
<div>checksum the entire filesystem at boot time (due to quick<span></span> </div>
<div>boot time requirements) - is there some field or fields, or technique&nbsp;that</div>
<div>can quickly tell me if the filesystem is ok?</div>
<div>&nbsp;</div>
<div>2)&nbsp; Is there any place within the bounds of a JFFS2 </div>
<div>partition that is safe from being overwritten?&nbsp; before and </div>
<div>after checksums could be placed there.</div>
<div>&nbsp;</div>
<div>2.1)&nbsp; Is there any way to create such a place?&nbsp; for example,</div>
<div>by appending the&nbsp;checksums to the end of some filesystem-wide</div>
<div>structure like a super block?&nbsp; Or maybe it can be hidden in </div>
<div>a couple of inodes that are never overwritten.</div>
<div>&nbsp;</div>
<div>What I'm looking for regarding this adding extra checksums into the</div>
<div>JFFS2 image is:</div>
<div>&nbsp;</div>
<div>3.1)&nbsp; How can it be done?</div>
<div>3.2)&nbsp; Why might it be unnecessary or even inadvisable?</div>
<div>3.3)&nbsp; Why can't it be done?</div>
<div>&nbsp;</div>
<div>Once I understand the answers to these&nbsp; questions I can </div>
<div>go back and see what they want to do.</div>
<div>&nbsp;</div>
<div>In the meantime, I am dumping and analyzing the JFFS2 </div>
<div>filesystems we have and reading the code trying to find the </div>
<div>answers.</div>
<div>&nbsp;</div>
<div>thanks for your time.</div><span class="sg">
<div>&nbsp;</div></span>