Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-24 Thread joeyli
於 三,2013-04-24 於 11:57 +,Matthew Garrett 提到: > On Wed, 2013-04-24 at 18:59 +0800, joeyli wrote: > > > 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? > > If we calculate active_size as using more than

Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-24 Thread Matthew Garrett
On Wed, 2013-04-24 at 18:59 +0800, joeyli wrote: > 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? If we calculate active_size as using more than 50% of the storage space but remaining_size says we still

Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-24 Thread joeyli
於 三,2013-04-24 於 10:14 +,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

Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-24 Thread 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 <

Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-24 Thread joeyli
Hi all, 於 一,2013-04-15 於 13:09 -0700,Matthew Garrett 提到: > EFI implementations distinguish between space that is actively used by a > variable and space that merely hasn't been garbage collected yet. Space > that hasn't yet been garbage collected isn't available for use and so isn't > counted in

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-24 Thread joeyli
Hi all, 於 一,2013-04-15 於 13:09 -0700,Matthew Garrett 提到: EFI implementations distinguish between space that is actively used by a variable and space that merely hasn't been garbage collected yet. Space that hasn't yet been garbage collected isn't available for use and so isn't counted in the

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-24 Thread 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

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-24 Thread joeyli
於 三,2013-04-24 於 10:14 +,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,

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-24 Thread Matthew Garrett
On Wed, 2013-04-24 at 18:59 +0800, joeyli wrote: 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? If we calculate active_size as using more than 50% of the storage space but remaining_size says we still have

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-24 Thread joeyli
於 三,2013-04-24 於 11:57 +,Matthew Garrett 提到: On Wed, 2013-04-24 at 18:59 +0800, joeyli wrote: 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? If we calculate active_size as using more than 50% of the

Re: [PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-17 Thread Lingzhu Xiang
On 04/16/2013 04:09 AM, Matthew Garrett wrote: EFI implementations distinguish between space that is actively used by a variable and space that merely hasn't been garbage collected yet. Space that hasn't yet been garbage collected isn't available for use and so isn't counted in the

Re: [PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-17 Thread Lingzhu Xiang
On 04/16/2013 04:09 AM, Matthew Garrett wrote: EFI implementations distinguish between space that is actively used by a variable and space that merely hasn't been garbage collected yet. Space that hasn't yet been garbage collected isn't available for use and so isn't counted in the

[PATCH V6 3/3] efi: Distinguish between "remaining space" and actually used space

2013-04-15 Thread Matthew Garrett
EFI implementations distinguish between space that is actively used by a variable and space that merely hasn't been garbage collected yet. Space that hasn't yet been garbage collected isn't available for use and so isn't counted in the remaining_space field returned by QueryVariableInfo().

[PATCH V6 3/3] efi: Distinguish between remaining space and actually used space

2013-04-15 Thread Matthew Garrett
EFI implementations distinguish between space that is actively used by a variable and space that merely hasn't been garbage collected yet. Space that hasn't yet been garbage collected isn't available for use and so isn't counted in the remaining_space field returned by QueryVariableInfo().