From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com Message-Id: <200008020125.VAA09830@cse.psu.edu> Date: Tue, 1 Aug 2000 21:24:42 -0400 To: 9fans@cse.psu.edu Subject: Re: [9fans] Re: your mail MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-krfkcpcbokuztcecumrzslttfj" Topicbox-Message-UUID: f1bcf9d6-eac8-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-krfkcpcbokuztcecumrzslttfj Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit We changed the cpu protocol between editions. The change was to get rid of the second connection for notes. This was a good suggestion from Dave Mazieres at MIT. You can convert the 2ed cpu.c to run on 3ed. Here's the diffs: % diff cpu.c /sys/src/cmd/ocpu.c 21a22 > int filter(int); 26a28 > int fflag; 30,31c32,33 < char *srvname = "cpu"; < char *notesrv = "cpunote"; --- > char *srvname = "ocpu"; > char *notesrv = "ocpunote"; 39a42 > int fdd; 50a54,56 > case 'f': > fflag++; > break; 109a116,118 > if(fflag) > data = filter(data); > 124a134 > va_list arg; 126c136,138 < doprint(buf, buf+sizeof(buf), fmt, (&fmt+1)); --- > va_start(arg, fmt); > doprint(buf, buf+sizeof(buf), fmt, arg); > va_end(arg); 183a196 > 185c198,202 < if(amount(fd, "/mnt/term", MREPL, "") < 0) --- > > /* push fcall */ > if(fflag) > fd = filter(fd); > if(amount(fd, "/mnt/term", MCREATE|MREPL, "") < 0) 282a300 > char dir[4*NAMELEN]; 285c303 < if((*fd = dial(na, 0, 0, 0)) < 0) --- > if((*fd = dial(na, 0, dir, 0)) < 0) 288a307,308 > if(strstr(dir, "tcp")) > fflag = 1; 318a339,366 > > /* Network on fd1, mount driver on fd0 */ > int > filter(int fd) > { > int p[2]; > > if(pipe(p) < 0) > fatal(1, "pipe"); > > switch(rfork(RFNOWAIT|RFPROC|RFFDG)) { > case -1: > fatal(1, "rfork record module"); > case 0: > dup(fd, 1); > close(fd); > dup(p[0], 0); > close(p[0]); > close(p[1]); > execl("/bin/aux/fcall", "fcall", 0); > fatal(1, "exec record module"); > default: > close(fd); > close(p[0]); > } > return p[1]; > } > You also need to create the /rc/bin/service files on 3ed for the 2ed ports: % cat > /rc/bin/service/il17006 << EOF #!/bin/rc exec /bin/ocpu -R EOF % cat > /rc/bin/service/il17006 << EOF #!/bin/ocpu -N EOF % cat > /rc/bin/service/tcp17005 << EOF #!/bin/rc exec /bin/ocpu -f -R EOF % cat > /rc/bin/service/tcp17006 << EOF #!/bin/ocpu -N EOF % chmod +x /rc/bin/service/*1700[56] You can then use ocpu to get back to 2ed. I'll put these puppies in the next update. --upas-krfkcpcbokuztcecumrzslttfj Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Tue Aug 1 11:09:20 EDT 2000 Received: from cse.psu.edu ([130.203.3.50]) by plan9; Tue Aug 1 11:09:19 EDT 2000 Received: from localhost (majordom@localhost) by cse.psu.edu (8.8.8/8.8.8) with SMTP id KAA20025; Tue, 1 Aug 2000 10:53:59 -0400 (EDT) Received: by claven.cse.psu.edu (bulk_mailer v1.5); Tue, 1 Aug 2000 10:53:50 -0400 Received: (from majordom@localhost) by cse.psu.edu (8.8.8/8.8.8) id KAA19988 for 9fans-outgoing; Tue, 1 Aug 2000 10:53:45 -0400 (EDT) X-Authentication-Warning: claven.cse.psu.edu: majordom set sender to owner-9fans using -f Received: from cackle.proxima.alt.za (cackle.proxima.alt.za [196.30.44.141]) by cse.psu.edu (8.8.8/8.8.8) with ESMTP id KAA19971 for <9fans@cse.psu.edu>; Tue, 1 Aug 2000 10:53:36 -0400 (EDT) Received: (from lucio@localhost) by cackle.proxima.alt.za (8.9.3/8.9.1) id QAA05012 for 9fans@cse.psu.edu; Tue, 1 Aug 2000 16:53:43 +0200 (SAST) Date: Tue, 1 Aug 2000 16:53:42 +0200 From: Lucio De Re To: 9fans@cse.psu.edu Subject: [9fans] Re: your mail Message-ID: <20000801165341.F4605@cackle.proxima.alt.za> Reply-To: lucio@proxima.alt.za Mail-Followup-To: 9fans@cse.psu.edu References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4us In-Reply-To: ; from sah@borf.com on Tue, Aug 01, 2000 at 09:37:52AM -0400 Sender: owner-9fans@cse.psu.edu Reply-To: 9fans@cse.psu.edu Precedence: bulk On Tue, Aug 01, 2000 at 09:37:52AM -0400, sah@borf.com wrote: > > Now I need to connect to the V2 fs to transfer important files over to > V3 so we can complete the 'upgrade.' Attempts of 9fs to our V2 fs via a > V3 term return "mount: mount bootes: attach -- authentication failed." > Also, the V2 fs states "bad AuthTs num." The passwords and usernames are > identical on both systems. > I'm running very successfully with 2ed AUTH and FS. CPUs are somewhat confused, and I can't quite get the 2ed AUTH to execute the mail stuff on a 3ed CPU :-( On the other hand, I'm not sure how a 2ed FS would handle 3ed AUTH, which may be your problem. Between a rock and a hard place, like me. It may of course be merely a question of making sure AUTH and FS are in the right type of sync, which presumably means the same password for the FS and the AUTH uid. I'll enable AUTH on the 3ed CPU server a little later, see what confusion I can create. In the meantime... > So close I can taste it, > ... I think you just need a slightly longer tongue, that's all :-) ++L --upas-krfkcpcbokuztcecumrzslttfj--