From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Thu, 19 Jun 2008 08:35:47 -0300 From: "Iruata Souza" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> In-Reply-To: <5d375e920806182005g34befcfbg8d3870764fe90bf4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5d375e920806181842t77de05f8v91bb7bd0c4d91819@mail.gmail.com> <5d375e920806182005g34befcfbg8d3870764fe90bf4@mail.gmail.com> Subject: Re: [9fans] P9p's mount(1) on linux Topicbox-Message-UUID: c3042ed8-ead3-11e9-9d60-3106f5b1d025 http://swtch.com/v9fs seems to have a nightly updated copy of v9fs in the linux kernel tree. On Thu, Jun 19, 2008 at 12:05 AM, Uriel wrote: > Thanks for your reply, but I'm not clear what you mean: should p9p's > mount check the kernel version? or are you talking about 9mount? > > By the way, where can one find the git tree with the latest v9fs? I > was googling and struggling with the swik 'thing' (words fail me...), > but couldn't find it, I know it is somewhere... > > Also any other feedback on what changes and improvements 9mount might > need before it can be made part of p9p (or maybe shipped with the > standard linux mount(1) tools?). > > uriel > > On Thu, Jun 19, 2008 at 3:57 AM, Eric Van Hensbergen wrote: >> 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 >>> >>> >> >> > > -- iru