From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 4 Apr 1998 07:58:25 +0200 From: Jean Mehat jm@mime.univ-paris8.fr Subject: [9fans] a problem with the 9p protocol? Topicbox-Message-UUID: 7397d684-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19980404055825.Gn1Dr8kQyreC3WKSXSnPR_YoSoB7tKRRL3PRVpTgIvE@z> I suppose I missed something in the 9p protocol; has anyone any clue? I was trying to make a program to filter the 9p messages, a la cfs. The simplest filter has a simple loop: for(;;){ if ((n = read(client, buffer, sizeof buffer)) < 0) error("read client"); else dump("client->server", buffer, n); if (write(serveur, buffer, n) < n) error("write server"); if ((n = read(serveur, buffer, sizeof buffer)) < 0) error("read server"); else dump("serveur->client", buffer, n); if (write(client, buffer, n) < n) error("write client"); } If I run it with: ramfs -s filter mount /srv/filter /tmp/mnt it seems to work: I can manipulate files in /tmp/mnt. But if I first mount and then unmount the ramfs with: ramfs -s mount -c /srv/ramfs /tmp/mnt unmount /tmp/mnt filter mount /srv/filter /tmp/mnt I get: client->server: Tsession tag 65535 # (from dump) write server: inappropriate use of fd mount: mount /srv/filtre /tmp/mnt: fsession: i/o error during authentication Where is the problem?