Discussion:
[9fans] ARM 9pfuse broken?
(too old to reply)
s***@icebubble.org
2012-03-22 16:46:37 UTC
Permalink
Hello,

Are there any known bugs in 9pfuse on ARM? I can mount a vac file
system OK with it, but trying to list files on it causes:

unexpected open flags 02444000
ls: cannot open directory /mnt/foo: Permission denied

Trying to read files:

unexpected open flags 0400000
cat: /mnt/foo/bar.txt: Permission denied

But walk/statting seem to succeed OK. I'm planning to debug a bit
deeper, but figured I'd give a shout out, in case this bug is already
known, and to see if there was already a patch for it floating around.

This is an ARMv7 OMAP4 Cortex-A9, in case that's any clue.
--
+---------------------------------------------------------------+
|Smiley <***@icebubble.org> PGP key ID: BC549F8B |
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA 3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+
Pavel Zholkover
2012-03-22 18:30:47 UTC
Permalink
I've also encountered this on my synology DS411 linux based kirkwood
NAS. If I remember correctly I saw a comment by Russ regarding
weird/unhandled flags being passed to the open syscall.

My workaround was just to compile a 9p kernel module and mount the
vacfs export with it.
Post by s***@icebubble.org
Hello,
Are there any known bugs in 9pfuse on ARM?  I can mount a vac file
 unexpected open flags 02444000
 ls: cannot open directory /mnt/foo: Permission denied
 unexpected open flags 0400000
 cat: /mnt/foo/bar.txt: Permission denied
But walk/statting seem to succeed OK.  I'm planning to debug a bit
deeper, but figured I'd give a shout out, in case this bug is already
known, and to see if there was already a patch for it floating around.
This is an ARMv7 OMAP4 Cortex-A9, in case that's any clue.
--
+---------------------------------------------------------------+
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA  3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+
Pavel Zholkover
2012-03-22 18:42:58 UTC
Permalink
I've looked at http://code.swtch.com/plan9port/src/9574d432c889/src/cmd/9pfuse/main.c#cl-580
and O_NOFOLLOW == 0400000 handling was added in
http://code.swtch.com/plan9port/changeset/43f43652132d
So maybe you can recompile a more recent version ?
Post by Pavel Zholkover
I've also encountered this on my synology DS411 linux based kirkwood
NAS. If I remember correctly I saw a comment by Russ regarding
weird/unhandled flags being passed to the open syscall.
My workaround was just to compile a 9p kernel module and mount the
vacfs export with it.
Post by s***@icebubble.org
Hello,
Are there any known bugs in 9pfuse on ARM?  I can mount a vac file
 unexpected open flags 02444000
 ls: cannot open directory /mnt/foo: Permission denied
 unexpected open flags 0400000
 cat: /mnt/foo/bar.txt: Permission denied
But walk/statting seem to succeed OK.  I'm planning to debug a bit
deeper, but figured I'd give a shout out, in case this bug is already
known, and to see if there was already a patch for it floating around.
This is an ARMv7 OMAP4 Cortex-A9, in case that's any clue.
--
+---------------------------------------------------------------+
|Fingerprint: 9329 DB4A 30F5 6EDA D2BA  3489 DAB7 555A BC54 9F8B|
+---------------------------------------------------------------+
Loading...