On Wed, 2012-06-06 at 20:52 +0200, Joel Reardon wrote: > This patch makes the super block reserve space for the KSA. It computes the > number of KSA LEBs and adds the ksa_lebs to on-medium superblock. The value is > read off the media. The decision to use a KSA is controlled by use_ubifsec > switch, added as a flag to the superblock, ubifs_info, and is controlled as a mount > option. Validate superblock also checks these values. > > This is tested by creating a drive and checking the mount debug output. The > number of LEBS assigned during create_default_filesystem was changed to ensure > that remounting does infact read the old value. When the use_ubifsec option > was not enabled, no LEBs were assigned. Integck was run and the drive was > filled to capacity. The LEBs in the KSA were not used when filled. Invalid > value for ksa_lebs were used and then rejected by validate superblock. > > Signed-off-by: Joel Reardon Thank Joel, but this patch has several major issues with the KSA size calculation, I believe. I've pushed it anyway to the 'joel' branch, then on top of it I've added several clean-ups and little improvements, and then on top of it I've added a patch which adds several TODO comments for you. Please, take a look. I've also sent the patches to you separately. -- Best Regards, Artem Bityutskiy