From: Madper Xie <bbboson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Luck, Tony" <tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Seiji Aguchi <seiji.aguchi-7rDLJAbr9SE@public.gmane.org>,
Madper Xie <cxie-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
"keescook@chromium.org"
<keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>,
"ccross@android.com"
<ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org>,
"anton@enomsg.org"
<anton-9xeibp6oKSgdnm+yROfE0A@public.gmane.org>,
"linux-efi@vger.kernel.org"
<linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-kernel@vger.kernel.org"
<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"bbboson@gmail.com"
<bbboson-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH 0/2] make all stored entries accessible.
Date: Thu, 31 Oct 2013 11:00:35 +0800 [thread overview]
Message-ID: <87d2mm6t64.fsf@gmail.com> (raw)
In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F31D52E99-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org writes:
>> So, do you mean efivars should fix to use the "id" in a proper way?
>
> It would avoid the need for all these tests, and additions to the filename to guarantee
> uniqueness.
>
> Not sure what options efivars has to create a unique, persistent "id" for each
> record. It's a fundamental part of how ERST works (though the unique ID is just
> based around a timestamp).
>
Okay, maybe there are three options here:
1. combine timestamp, count and part into "id".
for now, in efi-pstore.c, *id = part. and we could simply change it
to unique one. F.E. *id = (timestamp * 100 + part) * 100 + count.
2. change the id's type. let id become a string.
so every backend could write anything to id. then it will become a
part of filename in pstore filesystem. (but we need fix all backends
since we modified api.)
3. apply the patches I have sent... even if the filename will be ugly
and gory...
Which one do you prefer?
>> I acked Madper's patch 2/2 earlier today, but when I look at your test result, I'm not sure if
>> it is reasonable for users to make multiple numbers visible to the file name.
>>
>>> -r--r--r-- 1 root root 17499 Oct 30 13:41 dmesg-erst-5940651313304961029--2129078373-1383165669
>
> after I added the "count = 0" initialization the filename gets a tiny bit less
> scary:
>
> -r--r--r-- 1 root root 17499 Oct 30 13:41 dmesg-erst-5940651313304961029-0-1383165669
>
> -Tony
--
Best,
Madper Xie.
WARNING: multiple messages have this Message-ID (diff)
From: Madper Xie <bbboson@gmail.com>
To: "Luck\, Tony" <tony.luck@intel.com>
Cc: Seiji Aguchi <seiji.aguchi@hds.com>, Madper Xie <cxie@redhat.com>,
"keescook\@chromium.org" <keescook@chromium.org>,
"ccross\@android.com" <ccross@android.com>,
"anton\@enomsg.org" <anton@enomsg.org>,
"linux-efi\@vger.kernel.org" <linux-efi@vger.kernel.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"bbboson\@gmail.com" <bbboson@gmail.com>
Subject: Re: [PATCH 0/2] make all stored entries accessible.
Date: Thu, 31 Oct 2013 11:00:35 +0800 [thread overview]
Message-ID: <87d2mm6t64.fsf@gmail.com> (raw)
In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F31D52E99@ORSMSX106.amr.corp.intel.com>
tony.luck@intel.com writes:
>> So, do you mean efivars should fix to use the "id" in a proper way?
>
> It would avoid the need for all these tests, and additions to the filename to guarantee
> uniqueness.
>
> Not sure what options efivars has to create a unique, persistent "id" for each
> record. It's a fundamental part of how ERST works (though the unique ID is just
> based around a timestamp).
>
Okay, maybe there are three options here:
1. combine timestamp, count and part into "id".
for now, in efi-pstore.c, *id = part. and we could simply change it
to unique one. F.E. *id = (timestamp * 100 + part) * 100 + count.
2. change the id's type. let id become a string.
so every backend could write anything to id. then it will become a
part of filename in pstore filesystem. (but we need fix all backends
since we modified api.)
3. apply the patches I have sent... even if the filename will be ugly
and gory...
Which one do you prefer?
>> I acked Madper's patch 2/2 earlier today, but when I look at your test result, I'm not sure if
>> it is reasonable for users to make multiple numbers visible to the file name.
>>
>>> -r--r--r-- 1 root root 17499 Oct 30 13:41 dmesg-erst-5940651313304961029--2129078373-1383165669
>
> after I added the "count = 0" initialization the filename gets a tiny bit less
> scary:
>
> -r--r--r-- 1 root root 17499 Oct 30 13:41 dmesg-erst-5940651313304961029-0-1383165669
>
> -Tony
--
Best,
Madper Xie.
next prev parent reply other threads:[~2013-10-31 3:00 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 9:44 [PATCH 0/2] make all stored entries accessible Madper Xie
2013-10-30 9:44 ` Madper Xie
2013-10-30 9:44 ` [PATCH 1/2] pstore: avoid incorrectly mark entry as duplicate Madper Xie
2013-10-30 14:35 ` Seiji Aguchi
[not found] ` <A5ED84D3BB3A384992CBB9C77DEDA4D47F9D388F-ohthHghroY0jroPwUH3sq+6wyyQG6/Uh@public.gmane.org>
2013-10-30 14:51 ` Madper Xie
2013-10-30 14:51 ` Madper Xie
2013-10-30 9:44 ` [PATCH 2/2] pstore: Differentiating names by adding count and timestamp Madper Xie
[not found] ` <1383126294-28793-3-git-send-email-cxie-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-10-30 14:38 ` Seiji Aguchi
2013-10-30 14:38 ` Seiji Aguchi
[not found] ` <1383126294-28793-1-git-send-email-cxie-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-10-30 21:11 ` [PATCH 0/2] make all stored entries accessible Luck, Tony
2013-10-30 21:11 ` Luck, Tony
[not found] ` <3908561D78D1C84285E8C5FCA982C28F31D529D7-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-10-30 23:27 ` Seiji Aguchi
2013-10-30 23:27 ` Seiji Aguchi
[not found] ` <A5ED84D3BB3A384992CBB9C77DEDA4D47F9D4476-ohthHghroY0jroPwUH3sq+6wyyQG6/Uh@public.gmane.org>
2013-10-31 0:24 ` Luck, Tony
2013-10-31 0:24 ` Luck, Tony
[not found] ` <3908561D78D1C84285E8C5FCA982C28F31D52E99-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-10-31 3:00 ` Madper Xie [this message]
2013-10-31 3:00 ` Madper Xie
[not found] ` <87d2mm6t64.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-10-31 14:35 ` Seiji Aguchi
2013-10-31 14:35 ` Seiji Aguchi
[not found] ` <A5ED84D3BB3A384992CBB9C77DEDA4D47F9D4D01-ohthHghroY0jroPwUH3sq+6wyyQG6/Uh@public.gmane.org>
2013-10-31 20:22 ` Luck, Tony
2013-10-31 20:22 ` Luck, Tony
[not found] ` <3908561D78D1C84285E8C5FCA982C28F31D53A1F-P5GAC/sN6hlZtRGVdHMbwrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2013-10-31 23:22 ` Seiji Aguchi
2013-10-31 23:22 ` Seiji Aguchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d2mm6t64.fsf@gmail.com \
--to=bbboson-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=anton-9xeibp6oKSgdnm+yROfE0A@public.gmane.org \
--cc=ccross-z5hGa2qSFaRBDgjK7y7TUQ@public.gmane.org \
--cc=cxie-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=keescook-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
--cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=seiji.aguchi-7rDLJAbr9SE@public.gmane.org \
--cc=tony.luck-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.