Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" andactually used space
Date: Wed Apr 24 2013 - 07:00:57 EST
æ äï2013-04-24 æ 10:14 +0000ïMatthew Garrett æåï
> On Wed, 2013-04-24 at 18:08 +0800, joeyli wrote:
> > It causes the garbage size increased and remaining_size decreased. But
> > we still can create new variable because active_size doesn't increase
> > due to we delete variable before create new. So, the condition
> > "remaining_size - size < storage_size / 2" will not really hit because
> > active_size condition is pass.
> That's fine - the (limited) information we have from Samsung is that
> there's no problem if all the space is dirty, only if all the space is
> marked as active.
> Matthew Garrett | mjg59@xxxxxxxxxxxxx
Got it! Thanks for your explanation!
Then why we don't just remove the "remaining_size" condition but only
monitor the active_size should not larger then 1/2 storage_size?
Does that because we allow one and only one VAR_METADATA_SIZE beyond the
1/2 storage? If so, why we don't just give ( 1/2 storage_size +
VAR_METADATA_SIZ) space for active_size using?
Thanks a lot!
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/