From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756746Ab2IMIQB (ORCPT ); Thu, 13 Sep 2012 04:16:01 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:34047 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753834Ab2IMIP6 (ORCPT ); Thu, 13 Sep 2012 04:15:58 -0400 Subject: Re: [RFC,PATCH v2] efi: Add support for a UEFI variable filesystem From: joeyli To: jeremy.kerr@canonical.com, Matthew Garrett Cc: linux-kernel@vger.kernel.org, "H. Peter Anvin" , Matt Domsch , Peter Jones In-Reply-To: References: <1346910035.47691.188651047712.1.gpush@pecola> Content-Type: text/plain; charset="UTF-8" Date: Thu, 13 Sep 2012 16:10:43 +0800 Message-ID: <1347523843.596.30.camel@linux-s257.site> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 於 二,2012-09-11 於 15:23 +0800,lee joey 提到: > From: Matthew Garrett > > The existing EFI variables code only supports variables of up to 1024 > bytes. This limitation existed in version 0.99 of the EFI > specification, > but was removed before any full releases. Since variables can now be > larger than a single page, sysfs isn't the best interface for this. > So, > instead, let's add a filesystem. Variables can be read, written and > created, with the first 4 bytes of each variable representing its UEFI > attributes. The create() method doesn't actually commit to flash since > zero-length variables can't exist per-spec. > > Updates from Jeremy Kerr . > > Signed-off-by: Matthew Garrett > Signed-off-by: Jeremy Kerr > > --- > v2: Add check for < 4-byte writes Do we have plan to create a new kobject add to /sys/firmware/efi for provide a fixed mount point to efivars fs? e.g. /sys/firmware/efi/efivars Or we just direct reuse current /sys/firmeware/efi/vars? But, that means we need think for the backward compatibility if choice reuse vars folder. Thanks a lot! Joey Lee