RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
> > On the other hand, patch 5/5 changes the format by adding sequence counter. > > But efi_pstore_read is modied to work correctly in it. > > > > dump-type0-1-1-1351113059-cfc8fc79-be2e-4ddc-97f0-9f98bfe298a0 > > > > Variable Name: dump-type0-1-1-1351113059 > > GUID:

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Thu, Oct 25, 2012 at 1:51 PM, Seiji Aguchi wrote: >> So doesn't this break erasing of existing dumps in pstore-efivars? >> Unless efi_pstore_read still understands the older variable name formats, >> users will be stranded with dumps consuming space in >> efivars that aren't exported via

RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
> So doesn't this break erasing of existing dumps in pstore-efivars? > Unless efi_pstore_read still understands the older variable name formats, > users will be stranded with dumps consuming space in > efivars that aren't exported via pstore anymore. Patch 2/5, 3/5 and 4/5 don't change an

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Thu, Oct 25, 2012 at 1:03 PM, Seiji Aguchi wrote: >> > - list_del(>list); >> > + sprintf(name, "dump-type%u-%u-%lu", type, part, >> > + get_seconds()); >> >> Actually, nothing seems to be ensuring that the value used here ends up >> being the same as the

RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
> > - list_del(>list); > > + sprintf(name, "dump-type%u-%u-%lu", type, part, > > + get_seconds()); > > Actually, nothing seems to be ensuring that the value used here ends up being > the same as the ctime :\ Consider what happens if the > get_seconds() call

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Wed, Oct 24, 2012 at 6:54 PM, Seiji Aguchi wrote: > [Issue] > > Currently, efi_pstore driver simply overwrites existing panic messages in > NVRAM. > So, in the following scenario, we will lose 1st panic messages. > > 1. kernel panics. > 2. efi_pstore is kicked and writes panic messages to

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
Acked-by: Mike Waychison On Wed, Oct 24, 2012 at 6:54 PM, Seiji Aguchi wrote: > [Issue] > > Currently, efi_pstore driver simply overwrites existing panic messages in > NVRAM. > So, in the following scenario, we will lose 1st panic messages. > > 1. kernel panics. > 2. efi_pstore is kicked and

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
Acked-by: Mike Waychison mi...@google.com On Wed, Oct 24, 2012 at 6:54 PM, Seiji Aguchi seiji.agu...@hds.com wrote: [Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics.

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Wed, Oct 24, 2012 at 6:54 PM, Seiji Aguchi seiji.agu...@hds.com wrote: [Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic

RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
- list_del(found-list); + sprintf(name, dump-type%u-%u-%lu, type, part, + get_seconds()); Actually, nothing seems to be ensuring that the value used here ends up being the same as the ctime :\ Consider what happens if the get_seconds() call here

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Thu, Oct 25, 2012 at 1:03 PM, Seiji Aguchi seiji.agu...@hds.com wrote: - list_del(found-list); + sprintf(name, dump-type%u-%u-%lu, type, part, + get_seconds()); Actually, nothing seems to be ensuring that the value used here ends up being the same as

RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
So doesn't this break erasing of existing dumps in pstore-efivars? Unless efi_pstore_read still understands the older variable name formats, users will be stranded with dumps consuming space in efivars that aren't exported via pstore anymore. Patch 2/5, 3/5 and 4/5 don't change an existing

Re: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Mike Waychison
On Thu, Oct 25, 2012 at 1:51 PM, Seiji Aguchi seiji.agu...@hds.com wrote: So doesn't this break erasing of existing dumps in pstore-efivars? Unless efi_pstore_read still understands the older variable name formats, users will be stranded with dumps consuming space in efivars that aren't

RE: [PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-25 Thread Seiji Aguchi
On the other hand, patch 5/5 changes the format by adding sequence counter. But efi_pstore_read is modied to work correctly in it. dump-type0-1-1-1351113059-cfc8fc79-be2e-4ddc-97f0-9f98bfe298a0 Variable Name: dump-type0-1-1-1351113059 GUID:

[PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-24 Thread Seiji Aguchi
[Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic messages to NVRAM. 3. system reboots. 4. kernel panics again before a user checks

[PATCH v2 3/5] efi_pstore: Remove a logic erasing entries from a write callback to hold multiple logs

2012-10-24 Thread Seiji Aguchi
[Issue] Currently, efi_pstore driver simply overwrites existing panic messages in NVRAM. So, in the following scenario, we will lose 1st panic messages. 1. kernel panics. 2. efi_pstore is kicked and writes panic messages to NVRAM. 3. system reboots. 4. kernel panics again before a user checks