Re: [wmii] Identifying the selected client

From: Bartosz Trudnowski <hrr888_AT_gmail.com>
Date: Sun, 23 Apr 2006 23:17:25 +0200

On 4/23/06, Anselm R. Garbe <garbeam_AT_wmii.de> wrote:
>
> On Sun, Apr 23, 2006 at 09:41:02PM +0100, David Tweed wrote:
> > > Maybe doing this with the unique client id (which is
> > > wmii's
> > > internal client address) might be better, because
> > > window id's
> > > look pretty cryptic...
> >
> > This would be pretty useful for programs which want
> > the window manager to do their tiling for them. One
> > question: so I've got a program with multiple windows,
> > can the program in some way find out the mapping from
> > XWindow stuff it knows about to the wmii identifier?
>
> Only if we'd use the window id, otherwise the internal wmii
> identifier is wmii-specific (basically a value which is unique,
> but increased for each new window).
>
> > Also, I remember you saying that Linux technology (I
> > forget whether it was FUSE on the 9p filesystem) would
> > enable direct mounting of the wmii filesystem. Is that
> > something which still needs changes to the wmii set of
> > programs, or is the wmii end of this finished?
>
> The wmii end is finished, wmii speaks the same 9protocol as acme.
> The other end, the 9p2000.ko module is also finished and
> included in Linux kernel. Though there are following issues at
> the moment:
>
> - It seems that 9p2000.ko has problems to mount wmii'fs as well
> as plumber'fs and acme'fs, - in all cases I get a 'bad
> superblock' error message on attempt to mount.
> - The 9p2000.ko allows only mounting with superuser priviledges
> due the limitations of Unix. That is quite bad and could only
> be solved with the introduction of real process-based
> vfs namespaces in Linux, though that seems to be a longterm
> goal.
>
> 9p(1) from plan9port and wmiir(1) from wmii work fine with
> accessing the wmii'fs though.
>
> Regards,
> --
> Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361

I have partial succes mounting wmii fs with command

# mount /tmp/ns.hrr.\:0/wmii /mnt/tmp/ -t 9P -o name=hrr,proto=unix,noextend

but listing fs or reading files produce garbage:

# ls -l /mnt/tmp/
total 1
drwx------ 1 root root 0 2006-04-23 22:59 bar
dr-x------ 1 root root 0 2006-04-23 22:59 client
--w------- 1 root root 0 2006-04-23 22:59 ctl
dr-x------ 1 root root 0 2006-04-23 22:59 def
-rw------- 1 root root 0 2006-04-23 22:59 event
?--------- ? ? ? ? ? /mnt/tmp/chat&mail
?--------- ? ? ? ? ? /mnt/tmp/find_pdf
?--------- ? ? ? ? ? /mnt/tmp/local
?--------- ? ? ? ? ? /mnt/tmp/mta
?--------- ? ? ? ? ? /mnt/tmp/www
-r-------- 1 root root 40 2006-04-23 22:59 tags
dr-x------ 1 root root 0 2006-04-23 22:59 view

# cat /mnt/tmp/tags
<total mess here>

Without 'noextend' parameter I got 'bad superblock' too.

I can mount acme fs with
# mount /tmp/ns.hrr.\:0/wmii /mnt/tmp/ -t 9P -o name=hrr,proto=unix
and list/read/write files without any problems...
I have standard kernel 2.6.14 from Debian.

Regards,
Hrr
Received on Sun Apr 23 2006 - 23:17:26 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:03:22 UTC