From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <0F3972F5-D44B-4231-97FA-C6CE871B032B@gmail.com> Date: Mon, 13 Jul 2009 16:24:05 +0800 Message-ID: <140e7ec30907130124g1a0e4c90m6d83a08516d95463@mail.gmail.com> From: sqweek To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] v9fs question Topicbox-Message-UUID: 1cc21fce-ead5-11e9-9d60-3106f5b1d025 You'll notice it still tries mount(2) after stat(2) reveals that mount.9p doesn't exist. mount(8) always looks for a helper and will call it if it exists, but it doesn't fail when no helper is present. As others have said, mount(2) doesn't do name resolution, but by my reading that should give you an "Invalid argument" error instead of "Protocol not supported". However the only place I see EPROTONOSUPPORT looks like an impossible code path... unless you have CONFIG_9P_FS enabled in your kernel but not CONFIG_NET_9P... which also shouldn't be possible with a current kernel. What version are you running? Anyway, note that if you auth you'll need supporting software from p9p also. Factotum and srv -a, in particular, then give v9fs a -o trans=3Dunix. Oh, and to preempt the question why 9mount is not packaged as mount.9p - mount(8) requires that you are root or your mount target is in fstab with '-o user' before calling the helper, defeating the purpose of an SUID mount.9p. -sqweek 2009/7/12 Tim Newsham : > On Sat, 11 Jul 2009, Eric Van Hensbergen wrote: >> >> Hmmm, that's really new behavior-- never used to fail without mount >> helper. Can you give the exact error message? > > =C2=A0# strace -o trace.txt mount -t 9p thenewsh.com /mnt > =C2=A0mount: Protocol not supported > > Trace.txt is attached with full details. > > I've tried several variants, such as thenewsh.com:/path > with similar results. > >> On Jul 11, 2009, at 1:46 PM, Tim Newsham wrote: >> >>> The documentation in the linux kernel says you merely >>> >>> =C2=A0mount -t 9p ipaddress /mntpoint >>> >>> this fails on my system since /sbin/mount tries to execute /sbin/mount.= 9p >>> and fails. =C2=A0Am I supposed to have an /sbin/mount.9p? (Anyone know = which >>> ubunutu package should have this? =C2=A0If not, where I might find sour= ces? >>> Ironic since Ubuntu came with the 9p kernel module) =C2=A0Or should I b= e using a >>> different mount program for the purpose? >>> >>> The linux Documentation/filesystems/9p.txt should probably be updated >>> with more details, either way.