From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: <80c99e791001240502v3e7c955ek130ded319bb03ef5@mail.gmail.com> Date: Sun, 24 Jan 2010 17:55:01 +0000 Message-ID: <80c99e791001240955m726daae0w16d5f1ab4454d7ee@mail.gmail.com> From: Lorenzo Bolla To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000e0cd1392271f857047decc041 Subject: Re: [9fans] mount acme on plan9port Topicbox-Message-UUID: c5e41828-ead5-11e9-9d60-3106f5b1d025 --000e0cd1392271f857047decc041 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jan 24, 2010 at 4:54 PM, Eric Van Hensbergen wrote: > On Sun, Jan 24, 2010 at 7:02 AM, Lorenzo Bolla wrote: > > I'm trying to use "9 mount" to mount acme's socket (in `namespace`/acme) > to > > some directory in /mnt (let's say /mnt/acme). I'm using ArchLInux: > > $> uname -a > > Linux eee 2.6.32-ARCH #1 SMP PREEMPT Sat Dec 26 08:26:17 UTC 2009 i686 > > Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux > > The simple command: > > mount -t 9p -o unix,trans=unix,name=lollo,uname=lollo,noextend,nodev > > /tmp/ns.lollo.:0/acme /home/lollo/acme > > and I've traced down the offending option to be "trans=unix". > > Any suggestions? > > you shouldn't need -o unix,trans=unix -- just trans=unix. > Double check the 9pnet module is installed as well as the 9p module > (it should be automagically in the kernel version you are running). > Also, a good tip when trying to figure out whats going south when v9fs > is involved is to add debug=0xffff into your mount options and post > the respective sections of your /var/log/messages. > > Just tried it on 2.6.33-rc4 and it mounted fine > mount -t 9p /tmp/ns.root.localhost:10/acme /mnt -o trans=unix,uname=root > > -eric > > Thanks for the answer Eric. 9pnet is loaded, as well as 9p. I've tried to mount both as a user (with sudo) and as root, with no luck. Here is the messages I get, with debug=0xffff enabled. Jan 24 17:51:19 eee kernel: *pde = 00000000 Jan 24 17:51:19 eee kernel: Modules linked in: 9p 9pnet fscache usbhid hid ipv6 ntfs arc4 ecb ath9k snd_seq_dummy mac80211 i915 snd_seq_oss ath uvcvideo snd_seq_midi_event drm_kms_helper videodev joydev snd_hda_codec_realtek snd_seq cfg80211 v4l1_compat eeepc_laptop drm snd_seq_device snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss iTCO_wdt rfkill fan psmouse iTCO_vendor_support i2c_algo_bit snd_mixer_oss snd_pcm intel_agp uhci_hcd snd_timer ehci_hcd led_class pci_hotplug ac serio_raw pcspkr i2c_core sg atl1e thermal agpgart processor battery snd usbcore video output soundcore button snd_page_alloc evdev rtc_cmos rtc_core rtc_lib ext3 jbd mbcache sd_mod ata_piix ata_generic pata_acpi libata scsi_mod Jan 24 17:51:19 eee kernel: Jan 24 17:51:19 eee kernel: Pid: 22660, comm: mount Tainted: G D (2.6.32-ARCH #1) 1000HE Jan 24 17:51:19 eee kernel: EIP: 0060:[] EFLAGS: 00010246 CPU: 1 Jan 24 17:51:19 eee kernel: EIP is at p9_fid_create+0x6f/0x140 [9pnet] Jan 24 17:51:19 eee kernel: EAX: 00000001 EBX: f5a247c0 ECX: 00000000 EDX: 00000202 Jan 24 17:51:19 eee kernel: ESI: f627d800 EDI: f5a247dc EBP: f6673000 ESP: e123fe24 Jan 24 17:51:19 eee kernel: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 Jan 24 17:51:19 eee kernel: f64c0fb8 00000000 00002000 f5a24540 00000000 f627d800 f6673000 f81155fe Jan 24 17:51:19 eee kernel: <0> f8115b82 00000023 00000286 e8083f00 00000000 f5a244c6 f5a244ca f64c0fbe Jan 24 17:51:19 eee kernel: <0> f64c0fb8 c1174cf8 e123feb8 00000000 00000000 f5a24540 f59a9000 00000000 Jan 24 17:51:19 eee kernel: [] ? p9_client_attach+0x1e/0x110 [9pnet] Jan 24 17:51:19 eee kernel: [] ? p9_client_create+0xe2/0x2a0 [9pnet] Jan 24 17:51:19 eee kernel: [] ? match_number+0x88/0xa0 Jan 24 17:51:19 eee kernel: [] ? v9fs_session_init+0x124/0x3d0 [9p] Jan 24 17:51:19 eee kernel: [] ? v9fs_get_sb+0x4f/0x250 [9p] Jan 24 17:51:19 eee kernel: [] ? vfs_kern_mount+0x69/0x170 Jan 24 17:51:19 eee kernel: [] ? get_fs_type+0x32/0xb0 Jan 24 17:51:19 eee kernel: [] ? do_kern_mount+0x3f/0xe0 Jan 24 17:51:19 eee kernel: [] ? do_mount+0x1f0/0x730 Jan 24 17:51:19 eee kernel: [] ? copy_mount_options+0xd0/0x140 Jan 24 17:51:19 eee kernel: [] ? sys_mount+0x6e/0xa0 Jan 24 17:51:19 eee kernel: [] ? sysenter_do_call+0x12/0x28 Jan 24 17:51:19 eee kernel: ---[ end trace 3fd7199bdae8deac ]--- Thanks again for you help! Lorenzo. --000e0cd1392271f857047decc041 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Sun, Jan 24, 2010 at 4:54 PM, Eric Va= n Hensbergen <eric= vh@gmail.com> wrote:
On Sun, Jan 24, 2010 at 7:02 AM, Lorenzo Bolla <lbolla@gmail.com> wrote:
> I'm trying to use "9 mount" to mount acme's socket (= in `namespace`/acme) to
> some directory in /mnt (let's say /mnt/acme). I'm using ArchLI= nux:
> $> uname -a
> Linux eee 2.6.32-ARCH #1 SMP PREEMPT Sat Dec 26 08:26:17 UTC 2009 i686=
> Intel(R) Atom(TM) CPU N280 @ 1.66GHz GenuineIntel GNU/Linux
> The simple command:
> mount -t 9p -o unix,trans=3Dunix,name=3Dlollo,= uname=3Dlollo,noextend,nodev
> /tmp/ns.lollo.:0/acme /home/lollo/acme
> and I've traced down the offending option to be "trans=3Dunix= ".
> Any suggestions?

you shouldn't need -o unix,trans=3Dunix -- just trans=3Dunix.
Double check the 9pnet module is installed as well as the 9p module
(it should be automagically in the kernel version you are running).
Also, a good tip when trying to figure out whats going south when v9fs
is involved is to add debug=3D0xffff into your mount options and post
the respective sections of your /var/log/messages.

Just tried it on 2.6.33-rc4 and it mounted fine
mount -t 9p /tmp/ns.root.localhost:10/acme /mnt -o trans=3Dunix,uname=3Droo= t

=A0 =A0 =A0 -eric


Thanks for the answer Eric.
9pnet is loaded, as well as 9p.
I've tried to mount = both as a user (with sudo) and as root, with no luck.
Here is the= messages I get, with debug=3D0xffff enabled.


Jan 24 17:51:19 eee kernel: *pde =3D 000= 00000=A0
Jan 24 17:51:19 eee kernel: Modules linked in: 9p 9pnet = fscache usbhid hid ipv6 ntfs arc4 ecb ath9k snd_seq_dummy mac80211 i915 snd= _seq_oss ath uvcvideo snd_seq_midi_event drm_kms_helper videodev joydev snd= _hda_codec_realtek snd_seq cfg80211 v4l1_compat eeepc_laptop drm snd_seq_de= vice snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss iTCO_wdt rfkill fan = psmouse iTCO_vendor_support i2c_algo_bit snd_mixer_oss snd_pcm intel_agp uh= ci_hcd snd_timer ehci_hcd led_class pci_hotplug ac serio_raw pcspkr i2c_cor= e sg atl1e thermal agpgart processor battery snd usbcore video output sound= core button snd_page_alloc evdev rtc_cmos rtc_core rtc_lib ext3 jbd mbcache= sd_mod ata_piix ata_generic pata_acpi libata scsi_mod
Jan 24 17:51:19 eee kernel:=A0
Jan 24 17:51:19 eee kernel: P= id: 22660, comm: mount Tainted: G =A0 =A0 =A0D =A0 =A0(2.6.32-ARCH #1) 1000= HE
Jan 24 17:51:19 eee kernel: EIP: 0060:[<f81144ff>] EFLAG= S: 00010246 CPU: 1
Jan 24 17:51:19 eee kernel: EIP is at p9_fid_create+0x6f/0x140 [9pnet]=
Jan 24 17:51:19 eee kernel: EAX: 00000001 EBX: f5a247c0 ECX: 000= 00000 EDX: 00000202
Jan 24 17:51:19 eee kernel: ESI: f627d800 EDI= : f5a247dc EBP: f6673000 ESP: e123fe24
Jan 24 17:51:19 eee kernel: DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 00= 68
Jan 24 17:51:19 eee kernel: f64c0fb8 00000000 00002000 f5a2454= 0 00000000 f627d800 f6673000 f81155fe
Jan 24 17:51:19 eee kernel:= <0> f8115b82 00000023 00000286 e8083f00 00000000 f5a244c6 f5a244ca f= 64c0fbe
Jan 24 17:51:19 eee kernel: <0> f64c0fb8 c1174cf8 e123feb8 00000= 000 00000000 f5a24540 f59a9000 00000000
Jan 24 17:51:19 eee kerne= l: [<f81155fe>] ? p9_client_attach+0x1e/0x110 [9pnet]
Jan 2= 4 17:51:19 eee kernel: [<f8115b82>] ? p9_client_create+0xe2/0x2a0 [9p= net]
Jan 24 17:51:19 eee kernel: [<c1174cf8>] ? match_number+0x88/0xa= 0
Jan 24 17:51:19 eee kernel: [<f819b044>] ? v9fs_session_i= nit+0x124/0x3d0 [9p]
Jan 24 17:51:19 eee kernel: [<f819909f>= ;] ? v9fs_get_sb+0x4f/0x250 [9p]
Jan 24 17:51:19 eee kernel: [<c10e12d9>] ? vfs_kern_mount+0x69/0= x170
Jan 24 17:51:19 eee kernel: [<c10f4f72>] ? get_fs_type= +0x32/0xb0
Jan 24 17:51:19 eee kernel: [<c10e143f>] ? do_ke= rn_mount+0x3f/0xe0
Jan 24 17:51:19 eee kernel: [<c10f7ae0>] ? do_mount+0x1f0/0x730<= /div>
Jan 24 17:51:19 eee kernel: [<c10f5f40>] ? copy_mount_optio= ns+0xd0/0x140
Jan 24 17:51:19 eee kernel: [<c10f808e>] ? sy= s_mount+0x6e/0xa0
Jan 24 17:51:19 eee kernel: [<c10039f3>] ? sysenter_do_call+0x12= /0x28
Jan 24 17:51:19 eee kernel: ---[ end trace 3fd7199bdae8deac= ]---


Thanks again for you help!
Lorenzo.



--000e0cd1392271f857047decc041--