From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 4 Apr 2013 15:59:33 +0200 Message-ID: <1770421.dE5U4bBIyp@coil> User-Agent: KMail/4.10.1 (Linux/3.9.0-rc3-l50; KDE/4.10.1; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: [9fans] p9p vs. linux 9fs mount Topicbox-Message-UUID: 3da802a0-ead8-11e9-9d60-3106f5b1d025 p9p/linux question. i can't get seem to get write access to acme's files as mounted via lin= ux 9p=20 driver (v9fs). read works OK, but writes are rejected. # mount -t 9p '/tmp/ns.root.localhost:13/acme' /mnt/acme -o=20 'trans=3Dunix,uname=3Droot' # ls /mnt/acme 1/ 2/ 3/ 4/ acme/ cons consctl draw/ editout index label new= / # echo delete > /mnt/acme/1/ctl=20 -bash: /mnt/acme/1/ctl: Permission denied when mounted with debug=3D0x04, i see in dmesg that TRSTAT gets passed=20= `uname=3Droot', but TWSTAT gets `uname=3D(null)'. what am i doing wrong? tested with linux kernel version 3.9.0-rc3 and 3.5.0 and with recent p9= p=20 version. --=20 dexen deVries [[[=E2=86=93][=E2=86=92]]] From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1770421.dE5U4bBIyp@coil> References: <1770421.dE5U4bBIyp@coil> Date: Thu, 4 Apr 2013 19:13:06 +0400 Message-ID: From: Alexander Sychev To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=bcaec54b45685e77dd04d98a6838 Subject: Re: [9fans] p9p vs. linux 9fs mount Topicbox-Message-UUID: 3db6ac42-ead8-11e9-9d60-3106f5b1d025 --bcaec54b45685e77dd04d98a6838 Content-Type: text/plain; charset=ISO-8859-1 Hi, On Thu, Apr 4, 2013 at 5:59 PM, dexen deVries 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 --bcaec54b45685e77dd04d98a6838 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,

On Thu, Apr 4, 2013 at 5:59 PM, dexen deVries <dexen.d= evries@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 relat= ed, but do you need just to mount Acme's file system =A0or to mount the= file system via v9fs?
Acme has an experimental feature to mount the file system via FUSE, an= d this solution works almost without troubles, you need just to specify a m= ount point with flag '-m'.
=A0
--=A0
Best regards,
=A0 santucco
--bcaec54b45685e77dd04d98a6838-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Thu, 4 Apr 2013 11:19:53 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: <1770421.dE5U4bBIyp@coil> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] p9p vs. linux 9fs mount Topicbox-Message-UUID: 3dbcad4a-ead8-11e9-9d60-3106f5b1d025 > > 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: dexen deVries To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Date: Thu, 4 Apr 2013 17:37:16 +0200 Message-ID: <1449005.euM3M5tFsJ@coil> User-Agent: KMail/4.10.1 (Linux/3.9.0-rc3-l50; KDE/4.10.1; x86_64; ; ) In-Reply-To: References: <1770421.dE5U4bBIyp@coil> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Subject: Re: [9fans] p9p vs. linux 9fs mount Topicbox-Message-UUID: 3dca5bfc-ead8-11e9-9d60-3106f5b1d025 On Thursday 04 of April 2013 11:19:53 erik quanstrom wrote: >=20 > 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) =3D= -1=20 EACCES (Permission denied) # strace for `>>' open("/mnt/acme/2/ctl", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) =3D= 3 with the difference being `O_TRUNC'. cheers, --=20 dexen deVries [[[=E2=86=93][=E2=86=92]]]