[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130219105048.198e2cfd@redhat.com>
Date: Tue, 19 Feb 2013 10:50:48 -0300
From: Mauro Carvalho Chehab <mchehab@...hat.com>
To: <balbi@...com>
Cc: Borislav Petkov <bp@...en8.de>,
Greg KH <gregkh@...uxfoundation.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Steven Rostedt <rostedt@...dmis.org>,
Frederic Weisbecker <fweisbec@...il.com>,
Ingo Molnar <mingo@...hat.com>, <JBottomley@...allels.com>,
<linux-scsi@...r.kernel.org>, <davem@...emloft.net>,
<netdev@...r.kernel.org>,
Doug Thompson <dougthompson@...ssion.com>,
<linux-edac@...r.kernel.org>, <rjw@...k.pl>,
<linux-pm@...r.kernel.org>
Subject: Re: SYSFS "errors"
Em Tue, 19 Feb 2013 15:38:09 +0200
Felipe Balbi <balbi@...com> escreveu:
> Hi,
>
> On Tue, Feb 19, 2013 at 02:28:54PM +0100, Borislav Petkov wrote:
> > On Tue, Feb 19, 2013 at 03:15:00PM +0200, Felipe Balbi wrote:
> > > what's the problem with that ?
> >
> > Not a problem - simply annoying.
> >
> > $ ./test.sh
> > cat: /path/to/file/that/doesnt/exist.txt: No such file or directory
> > Setting scrubrate to:
> >
> > I'm sure someone would ask themselves why all of a sudden the file is
> > gone.
> >
> > > $ cat /path/to/file/that/doesnt/exist.txt
> > > cat: /path/to/file/that/doesnt/exist.txt: No such file or directory
> > >
> > > Didn't see any gates to hell opening here...
> >
> > And I don't see why we have to debate such a trivial thing when we can
> > fix it *properly* without *absolutely* *not* upsetting userspace.
>
> because changing the permission will cause the same issue:
It is actually worse, as if someone is using a C code to open the device
with
fp = open ("/sys/devices/system/edac/mc/mc0/sdram_scrub_rate", O_RDWR);
It will now start to fail if the device doesn't have both permissions.
Regards,
Mauro
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists