All of lore.kernel.org
 help / color / mirror / Atom feed
* fs/pstore question
@ 2019-05-09  8:05 Ronny Meeus
  2019-05-20  7:29 ` Ronny Meeus
  0 siblings, 1 reply; 2+ messages in thread
From: Ronny Meeus @ 2019-05-09  8:05 UTC (permalink / raw)
  To: linux-kernel

Hello

I'm using the pstore feature to log kernel crashes.

What I observe is that after reboot, always 2 entries are present in the pstore:

ls -l /mnt/pstore
total 0
-r--r--r--    1 root     root         16372 Jan  1 00:00 dmesg-ramoops-0
-r--r--r--    1 root     root         16372 Jan  1 00:00 dmesg-ramoops-1

If I do not delete the entries and force a new crash, only 2 new
entries are available
after the system is online again and the older entries are overwritten.

The reason for this is that the write index is always initialized to 0
during init.
Is this intentional? I would expect that existing entries are kept
until they are explicitly
deleted or the storage is full. In the latter case the oldest entries
can be replaced.

Best regards,
Ronny

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: fs/pstore question
  2019-05-09  8:05 fs/pstore question Ronny Meeus
@ 2019-05-20  7:29 ` Ronny Meeus
  0 siblings, 0 replies; 2+ messages in thread
From: Ronny Meeus @ 2019-05-20  7:29 UTC (permalink / raw)
  To: linux-kernel

Op do 9 mei 2019 10:05 schreef Ronny Meeus <ronny.meeus@gmail.com>:
>
> Hello
>
> I'm using the pstore feature to log kernel crashes.
>
> What I observe is that after reboot, always 2 entries are present in the pstore:
>
> ls -l /mnt/pstore
> total 0
> -r--r--r--    1 root     root         16372 Jan  1 00:00 dmesg-ramoops-0
> -r--r--r--    1 root     root         16372 Jan  1 00:00 dmesg-ramoops-1
>
> If I do not delete the entries and force a new crash, only 2 new
> entries are available
> after the system is online again and the older entries are overwritten.
>
> The reason for this is that the write index is always initialized to 0
> during init.
> Is this intentional? I would expect that existing entries are kept
> until they are explicitly
> deleted or the storage is full. In the latter case the oldest entries
> can be replaced.
>
> Best regards,
> Ronny


Any feedback is appreciated.
Thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-20  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-09  8:05 fs/pstore question Ronny Meeus
2019-05-20  7:29 ` Ronny Meeus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.