Thread (32 messages) read the whole thread 32 messages, 6 authors, 2013-02-19

Re: SYSFS "errors"

From: Felipe Balbi <hidden>
Date: 2013-02-19 13:39:24
Also in: linux-pm, linux-scsi, lkml

Possibly related (same subject, not in this thread)

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:
quoted
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.
quoted
$ 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:

$ cat temporary.txt 
cat: temporary.txt: Permission denied
$ ls -l temporary.txt 
---------- 1 balbi balbi 0 Feb 19 15:37 temporary.txt
$ cat temporary.txt 
cat: temporary.txt: Permission denied
$ cat non-existent.txt
cat: non-existent.txt: No such file or directory

just a different error code is returned...

-- 
balbi

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help