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: 13+ 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 ` [PATCH 1/2] pstore: avoid incorrectly mark entry as duplicate Madper Xie
2013-10-30 14:35 ` Seiji Aguchi
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
2013-10-30 14:38 ` Seiji Aguchi
2013-10-30 21:11 ` [PATCH 0/2] make all stored entries accessible Luck, Tony
2013-10-30 23:27 ` Seiji Aguchi
2013-10-31 0:24 ` Luck, Tony
2013-10-31 3:00 ` Madper Xie [this message]
2013-10-31 14:35 ` Seiji Aguchi
2013-10-31 20:22 ` Luck, Tony
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@gmail.com \
--cc=anton@enomsg.org \
--cc=ccross@android.com \
--cc=cxie@redhat.com \
--cc=keescook@chromium.org \
--cc=linux-efi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=seiji.aguchi@hds.com \
--cc=tony.luck@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox