From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 18 Jun 2008 20:57:30 -0500 From: "Eric Van Hensbergen" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <5d375e920806181842t77de05f8v91bb7bd0c4d91819@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5d375e920806181842t77de05f8v91bb7bd0c4d91819@mail.gmail.com> Subject: Re: [9fans] P9p's mount(1) on linux Topicbox-Message-UUID: c2a17158-ead3-11e9-9d60-3106f5b1d025 because I'm difficult you may need to check the version of the kernel you are running, some of the options syntax has changed and you may want to set some of the newer security options (the access option) to be more consistent with the Plan 9 mindset. -eric On Wed, Jun 18, 2008 at 8:42 PM, Uriel wrote: > Here is a tinny patch to make p9p's mount(1) work on linux even if you > have the v9fs (or fuse *yuck*) modules built into your kernel rather > than as modules. > > Still there is the issue of what to do if you are not root, maybe a > 9pmount helper program that is suid could take care of this? Sqweek > wrote a very nice 9mount program ( > http://sqweek.dnsdojo.org/code/9mount/docs ) that maybe could be > added to p9p, unfortunately v9fs has changed its interface/params once > more and 9mount doesn't work with recent kernels *sigh* > > Peace and best wishes > > uriel > > P.S.: Can someone please forward this to russ, last I heard he had my > email address in his kilfile. > > diff -r fe7a4a762f75 bin/mount > --- a/bin/mount Sun Jun 15 01:46:23 2008 -0400 > +++ b/bin/mount Thu Jun 19 03:41:08 2008 +0200 > @@ -6,12 +6,12 @@ > } > switch(`{uname}){ > case Linux > - if(lsmod|9 grep -si '^9p(2000)? '){ > + if(cat /proc/filesystems|9 grep -si ' 9p(2000)?$'){ > if(u test -S $1) > exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2 > exec u mount -t 9p -o proto'='tcp,name'='$USER $1 $2 > } > - if(lsmod|9 grep -si '^fuse ') > + if(cat /proc/filesystems|9 grep -si ' fuse$') > exec 9pfuse $1 $2 > echo 'don''t know how to mount (no 9p, no fuse)' >[1=2] > case FreeBSD > >