[PATCH] efivarfs: fix abnormal GUID in variable name by using strcpy to replace null with dash

2013-02-28 Thread Lee, Chun-Yi
From: Michael Schroeder On HP z220 system (firmware version 1.54), some EFI variables are incorrectly named : ls -d /sys/firmware/efi/vars/*8be4d* | grep -v -- -8be returns /sys/firmware/efi/vars/dbxDefault-pport8be4df61-93ca-11d2-aa0d-00e098032b8c /sys/firmware/efi/vars/KEKDefault-pport8be4df61

Re: [RFE PATCH 2/2] rtc, add write functionality to sysfs

2013-02-28 Thread John Stultz
On 02/24/2013 09:03 AM, Prarit Bhargava wrote: On 02/23/2013 06:11 PM, Alessandro Zummo wrote: On 22/feb/2013, at 22:05, John Stultz wrote: On 02/22/2013 12:55 PM, Prarit Bhargava wrote: On 02/22/2013 03:43 PM, John Stultz wrote: On 02/14/2013 09:02 AM, Prarit Bhargava wrote: /sys/class/r

Re: [RFE PATCH 2/2] rtc, add write functionality to sysfs

2013-02-28 Thread Prarit Bhargava
On 02/25/2013 09:58 AM, Alessandro Zummo wrote: > On Sun, 24 Feb 2013 12:03:01 -0500 > Prarit Bhargava wrote: > >> >> AFAICT there is no way for me to "test" or use the write from userspace. >> hwclock uses the SET_TIME ioctl, which is a different code path AFAICT. >> >> I'd like to be at least

Re: [PATCH] efivars: Make efivarfs autoloading on mount request

2013-02-28 Thread Tom Gundersen
On Thu, Feb 28, 2013 at 12:55 PM, James Bottomley wrote: > If you want a filesystem > in /sys, then you have the same problem as debugfs and cgroupfs, so it > can't be done without distro support: specifically a fstab entry, so > this patch is as far as the kernel should go. Sure, something would

Re: [PATCH] efivars: Make efivarfs autoloading on mount request

2013-02-28 Thread James Bottomley
On Thu, 2013-02-28 at 12:38 +0100, Tom Gundersen wrote: > Hi James, > > On Thu, Feb 28, 2013 at 11:26 AM, James Bottomley > wrote: > > Currently you can't mount efivarfs unless the efivar module is already > > inserted. This is contrary to the usual way in linux, where we autoload > > the necess

Re: [PATCH] efivars: Make efivarfs autoloading on mount request

2013-02-28 Thread Tom Gundersen
Hi James, On Thu, Feb 28, 2013 at 11:26 AM, James Bottomley wrote: > Currently you can't mount efivarfs unless the efivar module is already > inserted. This is contrary to the usual way in linux, where we autoload > the necessary filesystem modules when a mount request is received. The > reason

[PATCH] efivars: Make efivarfs autoloading on mount request

2013-02-28 Thread James Bottomley
Currently you can't mount efivarfs unless the efivar module is already inserted. This is contrary to the usual way in linux, where we autoload the necessary filesystem modules when a mount request is received. The reason this doesn't happen for efivarfs is because the module is called efivars not