9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p vs. linux 9fs mount
@ 2013-04-04 13:59 dexen deVries
  2013-04-04 15:13 ` Alexander Sychev
  0 siblings, 1 reply; 4+ messages in thread
From: dexen deVries @ 2013-04-04 13:59 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

p9p/linux question.

i can't get seem to get write access to acme's files as mounted via linux 9p 
driver (v9fs). read works OK, but writes are rejected.


# mount -t 9p '/tmp/ns.root.localhost:13/acme' /mnt/acme -o 
'trans=unix,uname=root'
# ls /mnt/acme
1/  2/  3/  4/  acme/  cons  consctl  draw/  editout  index  label  new/
# echo delete > /mnt/acme/1/ctl 
-bash: /mnt/acme/1/ctl: Permission denied


when mounted with debug=0x04, i see in dmesg that TRSTAT gets passed 
`uname=root', but TWSTAT gets `uname=(null)'.


what am i doing wrong?


tested with linux kernel version 3.9.0-rc3 and 3.5.0 and with recent p9p 
version.

-- 
dexen deVries

[[[↓][→]]]




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] p9p vs. linux 9fs mount
  2013-04-04 13:59 [9fans] p9p vs. linux 9fs mount dexen deVries
@ 2013-04-04 15:13 ` Alexander Sychev
  2013-04-04 15:19   ` erik quanstrom
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Sychev @ 2013-04-04 15:13 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

Hi,

On Thu, Apr 4, 2013 at 5:59 PM, dexen deVries <dexen.devries@gmail.com>wrote:

> p9p/linux question.
>
> i can't get seem to get write access to acme's files as mounted via linux
> 9p
> driver (v9fs). read works OK, but writes are rejected.
>

I understand my next question is not quite related, but do you need just to
mount Acme's file system  or to mount the file system via v9fs?
Acme has an experimental feature to mount the file system via FUSE, and
this solution works almost without troubles, you need just to specify a
mount point with flag '-m'.

--
Best regards,
  santucco

[-- Attachment #2: Type: text/html, Size: 1074 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] p9p vs. linux 9fs mount
  2013-04-04 15:13 ` Alexander Sychev
@ 2013-04-04 15:19   ` erik quanstrom
  2013-04-04 15:37     ` dexen deVries
  0 siblings, 1 reply; 4+ messages in thread
From: erik quanstrom @ 2013-04-04 15:19 UTC (permalink / raw)
  To: 9fans

> > p9p/linux question.
> >
> > i can't get seem to get write access to acme's files as mounted via linux
> > 9p
> > driver (v9fs). read works OK, but writes are rejected.
> >
>
> I understand my next question is not quite related, but do you need just to
> mount Acme's file system  or to mount the file system via v9fs?
> Acme has an experimental feature to mount the file system via FUSE, and
> this solution works almost without troubles, you need just to specify a
> mount point with flag '-m'.

guess.  try >> instead of >.  > may try to remove the file first.

- erik



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] p9p vs. linux 9fs mount
  2013-04-04 15:19   ` erik quanstrom
@ 2013-04-04 15:37     ` dexen deVries
  0 siblings, 0 replies; 4+ messages in thread
From: dexen deVries @ 2013-04-04 15:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Thursday 04 of April 2013 11:19:53 erik quanstrom wrote:
> 
> guess.  try >> instead of >.  > may try to remove the file first.

...

how do i send you cookies? ;-)


 # strace for `>'
open("/mnt/acme/2/ctl", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 
EACCES (Permission denied)

 # strace for `>>'
open("/mnt/acme/2/ctl", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3

with the difference being `O_TRUNC'.


cheers,
-- 
dexen deVries

[[[↓][→]]]




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-04 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 13:59 [9fans] p9p vs. linux 9fs mount dexen deVries
2013-04-04 15:13 ` Alexander Sychev
2013-04-04 15:19   ` erik quanstrom
2013-04-04 15:37     ` dexen deVries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).