Re: [9fans] TeX - Plan 9 model

2008-03-12 Thread Russ Cox
I'd highly recommend going the pdftex route instead http://www.tug.org/applications/pdftex/) . Pdftex generates much more compatible PDF files that the dvips route--aka, dvips output prints to paper fine, looks horrid on most PDF viewers. Whether the files generated by dvips look okay

Re: [9fans] replica weirdness

2008-03-12 Thread Russ Cox
replica/compactdb: opendb /n/boot/dist/replica/client/plan9.db: '/n/boot/dist/replica/client/plan9.db' does not exist replica/compactdb /n/boot/dist/replica/client/plan9.db: compactdb 192196: opendb /n/boot/dist/replica/client/plan9.db: '/n/boot/dist/replica/client/plan9.db' does not exist

Re: [9fans] Porting XeTeX

2008-03-14 Thread Russ Cox
I'm asking mainly because of Plan 9, a UNIX-like OS with a C compiler (but no C++) to which the freetype library has been ported. There's an old port of TeX that doesn't work too well anymore, so there's been some talk about porting a modern TeX. don't waste your time unless there is

Re: [9fans] bug in echo?

2008-03-31 Thread Russ Cox
Who needs OpenOffice.org Base when you have PQ (which I have not tried)? Who needs an operating system when you have a 0 and a 1? Russ

Re: [9fans] getcallerpc on arm7

2008-03-31 Thread Russ Cox
Although I know that the Plan9 compilers and gcc organize function calls differently, I thought it would be helpful to understand what /sys/src/libc/arm/getcallerpc.s does - after having a look at A Manual for the Plan 9 assembler: MOVW0(R13), R0 RET Does this mean that

Re: [9fans] hot or not

2008-04-08 Thread Russ Cox
by the way you can give it negative integers By Unix admins, for Unix admins. In the grand tradition of Unix tools doing exactly what you tell them: http://www.ugu.com/sui/ugu/show?I=ugu.hotnotHN=1113RT=11e1000 Russ

Re: [9fans] telnet vs. godaddy whois

2008-04-16 Thread Russ Cox
does anyone know why telnet has trouble with this? ; echo godaddy.com|telnet -nr /net.alt/tcp!whois.godaddy.com!43 connected to /net.alt/tcp!whois.godaddy.com!43 on /net.alt/tcp/12 ; from a similarly-connected linux machine, linux telnet returns a lengthy answer. It's not

Re: [9fans] I finally fixed venti

2008-04-27 Thread Russ Cox
[9fans] I finally fixed venti No, you finally fixed QEMU. Russ

Re: [9fans] mpictures and ms: text before is gone

2008-04-28 Thread Russ Cox
/n/sources/contrib/pietro/saturn.tar has an example of what I mean. troff -ms -mpictures tmac.colors saturnhd.ms history.ms cpu% tar xf /n/sources/contrib/pietro/saturn.tar cpu% for (i in *.ps) echo $i `{sed 1q $i} pioneer11.ps %!PS-Adobe-2.0 div 112 page header - research!pg

Re: [9fans] mpictures and ms: text before is gone

2008-04-30 Thread Russ Cox
Probable bug in lp? I did hget ... | jpg -9 | lp -dstdout -pp9bitpost ... # this is a school project hget | lp -dstdout -pjpgpost ... # when I realized it existed However, there is one GIF in my project and that didn't cause any problems, so it makes me wonder... It

Re: [9fans] another dusty upas question

2008-05-02 Thread Russ Cox
why does upas/nedmail -c fubar3 create /mail/box/quanstro/fubar3/mbox and not /mail/box/quanstro/fubar3? Because 'mail quanstro/fubar3' delivers to /mail/box/quanstro/fubar3/mbox and not /mail/box/quanstro/fubar3. Russ

Re: [9fans] another dusty upas question

2008-05-02 Thread Russ Cox
ah, so the nedmail rf command invokes marshal -F. i would be inclined to change -F to take the name of the file, so that nedmail can be the sole arbiter of what goes where. don't forget acme mail. the pick a save file based on address logic is unique to nedmail. acme mail has nothing like

Re: [9fans] Factotum

2008-05-03 Thread Russ Cox
Fac*totum (făk*tōtŭm), n.; pl. Factotums (- tŭmz). [L., do everything; facere to do + totus all : cf. F. factotum. See /Fact/, and /Total/.] A person employed to do all kinds of work or business. B. Jonson. And that definition relates to the factotum system how? In

Re: [9fans] _tos puzzle

2008-05-08 Thread Russ Cox
I set EAX before starting the executable, but still no luck :( On Plan 9, for /bin/mk: acid: symbols(_tos) _tos D 0x00016084 acid: mem(0x00016084, X) 0xdfffefc8 I'm probing address 0x16084 on linux after every instruction (using ptrace's singlestep), and it

Re: [9fans] _tos puzzle

2008-05-09 Thread Russ Cox
I did, and to my surprise, AX is 0, even though I set it properly in the loader. It appears as if Linux is setting AX to 0 sometime after the loader finishes, but before the executable begins. All other registers, however, are preserved (eip being the most important). The zero you see

Re: [9fans] /n/sources/patch/spamhaus

2008-05-13 Thread Russ Cox
the problem is that spf only validates that the sender is an allowed sender. this is ineffective against backscatter attacks. i've gotten as many as 500 backscatter spam in 4 hrs. so this is a significant issue for me. So you're blocking mail from forsyth in order to block spam bounces from

Re: [9fans] /n/sources/patch/spamhaus

2008-05-13 Thread Russ Cox
your solution for backscatter is a good one. but how does it do against non backscatter? this is also a significant problem. generally 100 messages per day for me. content-based filtering works fine for me. am i an idiot for objecting to this? i never said you were an idiot. i said

Re: [9fans] P9P on Solaris

2008-05-13 Thread Russ Cox
What compiler has been successfully used to build p9p on Solaris? I've got a Solaris 9 install and have tried the gcc 2.95 from the extras cd and Sun Studio 11 and both have heartburn on the anonymous unions and structs used in hfs.h in libdiskfs. I'm sorry about that. There aren't

Re: [9fans] P9P on Solaris

2008-05-15 Thread Russ Cox
Thanks, that got me farther. I was able to coerce it to build the libraries and some applications. But, surprise surprise, the threading isn't working. In playing the the tprimes thread test program, I've found that it's aborting in needstack(). The first time it gets called,

Re: [9fans] Venti install trouble

2008-05-19 Thread Russ Cox
The Venti has a data log of 1.4 TB across four arena partitions and 44GB in indexes across four index partitions. All the fmtarena/fmtisect/fmtindex commands suceeded without incident, but when I try to start the Venti for the first time, I get: venti: can't init server: illegal number of

Re: [9fans] printing fom plan9 to OKI5900dn

2008-05-19 Thread Russ Cox
I have spent some time trying to figure out the working configuration for being able to print on a network (postscript) printer oki5900dn. I know its IP address. But I haven't succeeded so far. I prepared a PS file, say a.ps. I removed the '!' letter from rc/bin/service/!tcp515, so now I

Re: [9fans] libbio and large files

2008-05-19 Thread Russ Cox
This question may be more applicable when addressing p9p on other systems: I'm seeking a little clarification about Bopen and reading through files larger than (2^31 bytes). Other host systems where p9p works (very well I might add) tend to have different definitions for off_t

Re: [9fans] Threading Model Questions

2008-05-20 Thread Russ Cox
1) Are there any valid criticisms to this approach? Everyone seems to agree it is superior to lower-level models, but are there any areas where this model doesn't work comparatively well? People often ask how you would structure an operating system around communications primitives. Certainly

Re: [9fans] P9P on Solaris

2008-05-28 Thread Russ Cox
I know it's been a while, but that got me farther. The odd thing is that I had already played with the magic define, but it seems that __sun__ wasn't getting set. Bug in 9c. Fixed and pushed. - There's also a discrepancy between the V1 inode defined in ffs.h and the one defined in the

Re: [9fans] ilock funny?

2008-05-29 Thread Russ Cox
i can't see how this could be unless on very first reference of the lock there is a race with the looser evaluateing !l-isilock before that processor can see the winner setting l-isilock to 1. if this diagnosis is correct, what is the proper fix? take the test out. this is my fault.

Re: [9fans] ssh - pine - garbage characters

2008-05-29 Thread Russ Cox
More specifically, I can ssh from Plan 9 into my account at SDF (sdf.lonestar.org aka freeshell.org). I've played around with ssh options some and improved what I am seeing in the terminal connected to that account, but when I fire up Pine to attempt reading my email, I get a screen that

Re: [9fans] read/write offset hack

2008-05-30 Thread Russ Cox
Poking around Plan 9 and 9P, I was wondering whether it would be a neat hack or some sort of abuse to read and write dynamically served files at different offsets to get different semantics, instead of reading and writing different files (ctl, clone, etc.) to do that. Given that the system

Re: [9fans] simulation and newsqueak

2008-05-31 Thread Russ Cox
And I had lots of problems porting that to Plan 9. This is a totally useless comment. If you said something about what the problems were, then maybe people on the list might be more willing to help you. 9fans is a mailing list, not IRC. Russ

Re: [9fans] cut word out of a line with regexp

2008-06-01 Thread Russ Cox
How do I cut a word out of a line with sed? The word end with a '_'. I don't know, how to match word boundaries. I need sample out of a sample_ line. you can match word characters instead. sed 's/[^ ]+_ / /' sed 's/[a-zA-Z0-9_]+_([^a-zA-Z0-9_])/\1/' russ

Re: [9fans] plan9port: tcp servers

2008-06-01 Thread Russ Cox
seems like dial() doesn't accept socket path names. I'll have a look if I can fix this ... sorry, that should be 9pserve -c unix!`namespace`/acme tcp!*!12345 i had considered not requiring the unix! once, but i decided against it. russ

Re: [9fans] pnp factotum from linux to plan 9: site-specific password failures.

2008-06-04 Thread Russ Cox
p9skclient: gettickets: Connection timed out Aha! Factotum uses ndb (the library, not the program) to map from auth domain to auth server. If it can't find a mapping, it tries to use the auth domain as a machine name directly. Unless your auth server's machine name is ca.sandia.gov, you need

Re: [9fans] Streaming on venti

2008-06-05 Thread Russ Cox
VAC eg. is good for archiving, but it's tree-based structure is probably not optimal for streaming (on large files, a lot of blocks IMHO have to be loaded before getting the first payload block can be reached). A typical venti tree has a branching factor of 409 (8192/20). For a 1GB file,

Re: [9fans] nedmail a vs. r

2008-06-05 Thread Russ Cox
with the r command, nedmail gives marshal the -R flag. this tells marshal to fill out the in-reply-to: header. the a command does not do this. is this an oversite, or is there some reason fi'm missing? It's a mistake; please fix it. Russ

Re: [9fans] Streaming on venti

2008-06-06 Thread Russ Cox
- Using venti for backing up a streaming application is not a good idea. - Contiguous storage areas may be better. So far I agree with you. - One potential method to provide access to contiguous disk space may be a rich partitioning system, e.g. GPT. I can't believe what a terrible idea

Re: [9fans] Laptop advice

2008-06-11 Thread Russ Cox
Does anyone have trouble booting new installations of plan9 on vmware6? I turn off hwaccel, load the os, and after the install completes and the system reboots it just hangs. I am still using systems built on Mahmoud's vmware image (for which I am indeed grateful). Delete the CD drive from

Re: [9fans] Modularizing plan9port

2008-06-11 Thread Russ Cox
I need a way to cross-compile plan9port would have been a much more productive opening statement than I'm going to modularize plan9port. I think you should be able to cross-compile it pretty easily if you already have a cross-compilation environment set up. 1. Build a local plan9port tree, put

Re: [9fans] store 9p session-only values using lib9p

2008-06-11 Thread Russ Cox
If i save the offset adjustment in f-aux or simmilar, i can calculate the real file offset on the next T-reads, but that will only work if one client reads it at one time. No it won't. Even if just one client is reading, that client might seek. You could assume that most reads will pick

Re: [9fans] Modularizing plan9port

2008-06-11 Thread Russ Cox
Okay, how can I make sure the right toolchain is used, *all* imports come from within sysroot and *only* code from the (building) HOST system is executed - *never* from TARGET ? I would have expected your host system to refuse to run binaries for the target architecture. You are clearly

Re: [9fans] upas/fs

2008-06-11 Thread Russ Cox
by the way, does anyone know the rational for the date on the unix From line? upas sets it to the date the message is originally delivered to the inbox. moving it from the inbox to another folder does not change the date. the date is the date it was delivered. it's a receiver-side

Re: [9fans] First/second edition image manipulation tools

2008-06-11 Thread Russ Cox
The first edition specified the arguments to -o as two values - this cannot be done due to idiosyncrasies with args(2). case 'o': arg1 = EARGF(usage()); arg2 = EARGF(usage()); break; russ

Re: [9fans] First/second edition image manipulation tools

2008-06-12 Thread Russ Cox
According to arg(2), that's not a good idea. ARGF must be called just once for each option that takes an argument. Who are you going to believe? Me or that lying man page? See if your code works. I'm not your code monkey. You mentioned that you didn't know how to do something; I

Re: [9fans] command line tool for storing / reading files on venti

2008-06-14 Thread Russ Cox
no, it doesn't. on plan 9, when the shell script exits, nothing will have vacfs mounted anymore, so vacfs will get an eof on the 9p connection and exit. that's why i put an rfork n in the script. aha, that's probably what the rfork call does ? rfork n forks the name space, so that any

Re: [9fans] command line tool for storing / reading files on venti

2008-06-15 Thread Russ Cox
hmm, maybe ;-o Meanwhile I've written an new tool which stores single files (no directory stuff at all). Not perfect yet, but already works quite fine (IMHO): svn://nibiru.metux.de/public/plan9port/apps/vtstore/ In the next step, I'll add http-alike metadata (mimetype, etc). I wasn't

Re: [9fans] imap4d funny

2008-06-17 Thread Russ Cox
thus if site=coraid.com and servername gets set to rb2.coraid.com, then site will be coraid.com.coraid.com. If you want to change the local mail domain, you have to use the option -d me.coraid.com The man page clearly says that if that's not specified, then it uses $site with the

Re: [9fans] Ideas for gc on venti

2008-06-18 Thread Russ Cox
What do you think about that approach ? I think you will lose your data. The greatest strength of venti, and also of the worm file system, is that once data is written, those disk blocks are never changed again. That makes it virtually impossible to lose data due to software or human errors.

Re: [9fans] P9p's mount(1) on linux

2008-06-19 Thread Russ Cox
Thanks for the patch, Uriel. The http://swtch.com/v9fs script stopped working a long time ago, and I never bothered to find out why. I've changed the text on that page, though clicking on the date and checksums link has always shown that the last update was October 2006. A few p9p

[9fans] venti survey

2008-06-19 Thread Russ Cox
I am curious about the relative sizes of people's venti servers, how much data they have stored, and how quickly they are filling. Please run hget http://my-venti-url/storage /tmp/v hget http://my-venti-url/index /tmp/v mail -s 'venti survey' [EMAIL PROTECTED] /tmp/v

Re: [9fans] P9p's mount(1) on linux

2008-06-19 Thread Russ Cox
Speaking of 9pfuse - I've just pulled and the version distributed with p9p is still not going to work on linux/x86_64. I posted a patch for this[1], though 9fans.net doesn't appear to archive attachments - see http://sqweek.dnsdojo.org/tmp/9pfuse.LARGEFILE.diff Done. Also, I've sent you a

Re: [9fans] process group, processes running in the background

2008-06-20 Thread Russ Cox
There is no job control in Plan 9. Instead, there is a window system. Draw two windows, and run one command in each. Then it is very easy to bring one or the other command to the foreground by clicking with the mouse in the associated window. Russ P.S. Processes by group: for(i in `{grep .

Re: [9fans] leak/umem question

2008-06-21 Thread Russ Cox
You didn't tell us much about your memory usage patterns. Do you allocate large lots of large objects and then free them? That would explain the larger footprint and the identical umem. Do you agree with the second allocation profile? It is easily possible that aux/acidleak's bitmap code is not

Re: [9fans] OSX Drawterm hangs on close

2008-06-24 Thread Russ Cox
Drawterm everywhere needs to die and be replaced with inferno. The duplication of bug fixes and efforts is pointless. Just wait a few days. Russ

Re: [9fans] /n

2008-06-24 Thread Russ Cox
why do files in /n exist on the distributed image? when would they be necessary? mntgen appeared on the scene relatively late. there was a time when you just ran mkdir a lot in /n. looking through the archives, it looks like nemo came up with the idea as autodirfs in 2002. before i poked

Re: [9fans] p9p venti w/ raw partitions

2008-06-25 Thread Russ Cox
something isn't right. I rebuilt and installed lib9 and ls, but ls still doesn't show anything useful. It may just be that I have to My first guess would be that when you installed ls again, there was already an o.ls in plan9/src/cmd, so it didn't get relinked. It should suffice to do

Re: [9fans] 9vx

2008-06-27 Thread Russ Cox
same error here. invoke with -t and it'll work. investigating. I believe, though I can't see yet why that would matter in this case. I do suspect that the behavior of signal handlers in threaded programs changed between 10.4 and 10.5. You might try rebuilding from source (the binary was built

Re: [9fans] 9vx - os x fix

2008-06-27 Thread Russ Cox
Replying to many messages... please read to find yours. Yep that's working ok. Though I'm losing the ability to send capital letters to X11 in general, I'm not sure if that's an artifact of this or not. Almost certainly not. The -F workaround is about new fork semantics. The capital

Re: [9fans] 9vx - os x fix

2008-06-27 Thread Russ Cox
Thanks. Will add the #define. and darwin-asm.S just seems to be missing everywhere. in fact, there is no definition for vx32_getcontext: Oops. That's on my Mac at home; guess I forgot to copy it off. Russ

Re: [9fans] 9vx

2008-06-28 Thread Russ Cox
Replying to many messages/threads ... -- i've not had a chance to look through the sources. is a windows port feasible? It should be doable. You need equivalents of mmap, mprotect, munmap, signal handlers, timer signals, and some function to install new segment descriptors. All of

[9fans] 9vx 0.11

2008-06-28 Thread Russ Cox
There is a new 9vx, version 0.11. http://swtch.com/9vx/ It includes the #S device I mentioned earlier, it includes the previously-missing darwin-asm.S, and it fixes the cpu-chewing bug on OS X. The sources are at the usual (other) place http://pdos.csail.mit.edu/~baford/vm/

[9fans] 9vx native OS X gui

2008-06-28 Thread Russ Cox
The 9vx 0.11 source code includes OS X gui code, a severely cleaned-up version of the drawterm code. It is not built by default, but you can build it by using make 9vx/9vx PLAN9GUI=osx Unfortunately, it seems to have one problem: the Carbon app event loop appears to install its own

[9fans] 9vx os x

2008-06-29 Thread Russ Cox
I have not bothered to create a new package, but there is a new binary available for OS X: hget -o 9vx.OSX.gz http://pdos.csail.mit.edu/~rsc/9vx.OSX.gz gunzip 9vx.OSX.gz chmod +x 9vx.OSX ./9vx.OSX -r your-root Please try it on 10.5 and see how it works. Sources

Re: [9fans] getting 9vx root from a file server?

2008-06-29 Thread Russ Cox
The -r flag takes a directory name, not a dial string. If you want to mount from a file server, you need to run the usual /boot/boot program, which takes care of dialing and posting and authentication and such. To do this, use the untested -b flag. You might find it useful to run -tb so that if

Re: [9fans] 9vx os x

2008-06-29 Thread Russ Cox
Please try it on 10.5 and see how it works. Every time the option key is pressed, it generates 0xef8095 in addition to doing its button2 duty. Fixed. Also, you can't use option+apple key to escape out of full screen mode. This is on 10.5.3 That's because it was Ctl-Opt, not Opt-Apple.

Re: [9fans] 9vx os x

2008-06-29 Thread Russ Cox
Another bug in both x11 and native mode 9vx: occasionally, resizing the window can make it crash with a 9vx panic: sigsegv on cpu6 But of course when I try to cause it, it doesn't happen! Also, quickly dragging the corner on the x11 version can render the window completely black.

Re: [9fans] 9vx os x

2008-06-29 Thread Russ Cox
I know you did not ask, but: on 10.4 it seems to work ok. two minor UI nits: - the native version doesn't seem to support the scroll point(wheel?); the X11 version does (but somehow responds a bit slowish to it). It tries. Feel free to have a look at the code. - when I resize a

Re: [9fans] 9vx os x

2008-06-29 Thread Russ Cox
Does anyone else get errors about missing files when pulling? Many other files are copied successfully before this: error: copying /n/boot/sys/src/games/mp3dec/COPYING: '/n/boot/sys/src/games' does not exist error: copying /n/boot/sys/src/games/mp3dec/COPYRIGHT: '/n/boot/sys/src/games'

Re: [9fans] 9vx fork problem

2008-06-29 Thread Russ Cox
On 9vx, iostats suicides: term% iostats echo iostats 128: suicide: sys: trap: page fault pc=0xb21c Apparently, after a fork, a child retains it's parent's pid in _tos-pid. It isn't updated until the next syscall finishes with kexit. This is a problem if the child's first

Re: [9fans] 9vx fork problem

2008-06-30 Thread Russ Cox
Apparently, after a fork, a child retains it's parent's pid in _tos-pid. I think this is at the root of why 9vx cannot run on MS-Windows. No, it's not. The words fork and pid in that sentence are concepts completely internal to 9vx. The host OS, be it OS X or Linux or Windows, has

Re: [9fans] inferno under 9vx (+ ape fix)

2008-06-30 Thread Russ Cox
anyway, i might have missed a report about this from someone else, but does anyone else find that when doing a longish mk, the terminal output will occasionally freeze, but is brought back very quickly by interacting with the mouse in the window (sometimes it seems to need an actual click,

Re: [9fans] 9vx

2008-06-30 Thread Russ Cox
Same recipe works here. But I've no idea why the rm /net/cs is necessary - can anyone put me out of my misery? There are a bunch of rough edges that need to be fixed. This is one of them. 9vx provides a #I/cs so that you can do things like hget without starting cs. But it can't translate auth

Re: [9fans] 9vx problem with venti

2008-06-30 Thread Russ Cox
on .10, I can run venti/venti. on .11, it locks up 9vx quite thoroughly after it prints init If you resize the window it is filled with garbage. Under strace I can see it taking the timer interrupts. Linux xcpu 2.6.25 #6 SMP Tue May 27 09:46:16 PDT 2008 i686 i686 i386 GNU/Linux Sorry

Re: [9fans] 9vx: ...and if you love plan9 more than your x86 host

2008-06-30 Thread Russ Cox
It's more fun to use 9vx in the fullscreen mode to get a complete Plan9 experience. Press F11 to toggle fullscreen mode. Patch attached. Checked F11 code into hg. Instead of sending the window manager a make me fullscreen request like your code did, the code I added (taken from p9p) just

Re: [9fans] 9vx

2008-06-30 Thread Russ Cox
Does it work to set csremoved=1 in src/9vx/devip.c instead? I can confirm that this works, with the benefit of using secstore instead of prompting for my password. Okay, done. Thanks. Russ

Re: [9fans] tip 9vx segfault on Ubuntu in Xen

2008-07-01 Thread Russ Cox
No panic: the window appears and two lines print (the command-line arguments and the memory readout), then everything stops. When I use -X, the lines of assembly stop. When it stops, then can should attach gdb by looking up the pid in ps and running gdb 9vx pid thread apply

Re: [9fans] 9vx

2008-07-01 Thread Russ Cox
this must be a quirk of the interaction between devsd and fdisk. by hand data does disappear: ; lc 9fatctl datanvram plan9 raw ; for(i in 9fat data nvram plan9 data)echo delpart $ictl ; lc ctl raw You are allowed to delete the data

Re: [9fans] cpu working for anyone on 9vx?

2008-07-01 Thread Russ Cox
I deleted the /net/cs file... ran /ndb/cs, started factotum, and finally tried to cpu to a remote host, and it appears to be stuck. I tried to cp a file from sources yesterday, and *that* also appeared to get stuck. Anyone else having this kind of trouble with .11? This kind of thing

[9fans] vx32, 9vx 0.12

2008-07-01 Thread Russ Cox
There are new sources and binaries in the usual places. If you missed the announcement before, there is now a Mercurial repository at http://hg.pdos.csail.mit.edu/hg/vx32/ The OS X code seems to have stabilized, and it doesn't require X11 anymore. I think there are OS X bugs tickled by having

Re: [9fans] /lib/font fonts in troff

2008-07-01 Thread Russ Cox
Hello. I found a few fonts from /lib/font (Courier, for aesthetic reasons, and erik's vera, for its complete Unicode conformance) that I'd like to make available to troff. Is there any way to do this? I'll name the files myself (Other-Courier and Bitstream-Vera, perhaps). Courier is

Re: [9fans] 9vx

2008-07-01 Thread Russ Cox
yup. 9vx creates ctl files without a geometry line. libdisk/disk.c:/^opensd demands it. thanks. also, it would be nice if 9vx devsd created an entry in sdctl for each loopback controller. i intended it to, though perhaps i messed that up. i apologize for not sending a patch. i haven't

Re: [9fans] vx32, 9vx 0.12

2008-07-01 Thread Russ Cox
247 ssh2: unhandled fault va=0 [110] eip=bee1b cpu0: registers for ssh2 247 FLAGS=0 TRAP=0 ECODE=0 PC=BEE1B USP=F00 AX BX 001339C1 CX DX 000FF2F2 SI DI BP As long as only ssh2 crashed, this doesn't bother me too much. 9vx does get

[9fans] rc bug

2008-07-01 Thread Russ Cox
rc bug. please put non-9vx bugs in their own threads. thanks. it appears something is going wrong with rc's local assignments. ifs has the usual value. ; font=/lib/font/bit/cyberbit/mod*.font rio rio: can't access /lib/font/bit/cyberbit/mod*.font: bad character in file name:

Re: [9fans] an RTFM moment

2008-07-01 Thread Russ Cox
I'm doing something stupid here, I know it, but can not recall what: term% venti/findscore -v arenas 8f5e7e8bd708abb329d97c1773cac871b5daabcb reading directory for arena=arenas00 with 195154 entries reading directory for arena=arenas01 with 1587 entries found at clump=1586 with type=16

Re: [9fans] rc bug

2008-07-01 Thread Russ Cox
I saw something similar before, but unfortunately, the patch below doesn't fix it. I submitted a patch. diff ./io.c /n/sources/plan9/sys/src/cmd/rc/io.c 94c94 for(t = s;*t;t++) if(*t = 0 needsrcquote(*t)) break; --- for(t = s;*t;t++) if(!wordchr(*t)) break; diff ./plan9.c

Re: [9fans] rc bug

2008-07-01 Thread Russ Cox
i don't think that fixes it. try this test on plan 9 fn 'test?' {echo} lc /env it does, unless you build an 8.out and test it without installing it as /386/bin/rc. when you invoked lc, a shell script, that ran the buggy /386/bin/rc, which polluted the environment. in fact you

Re: [9fans] 118 acme fault 0 no segment -- seeing a lot of simliar things this morning.

2008-07-02 Thread Russ Cox
Is this another out of memory? This happened on a mk clean on kernel source It would not surprise me if the new pager (post-0.12) caused the problem, but in order for that to happen the kernel would have had to print uh oh. someone woke the pager first. Did that happen? I've done a

Re: [9fans] 118 acme fault 0 no segment -- seeing a lot of simliar things this morning.

2008-07-02 Thread Russ Cox
It would not surprise me if the new pager (post-0.12) caused the problem, but in order for that to happen the kernel would have had to print uh oh. someone woke the pager That I did not see. Just the no segment error. You can run acid inside 9vx to get a stack trace of the broken

[9fans] vx32 and 9vx performance, and on x86-64

2008-07-02 Thread Russ Cox
There's not likely anything in the guts of vx32 that hasn't been done before. What's new is the fact that we managed to package it up in a way that runs on a variety of out-of-the-box OS'es with neither kernel modifications nor special privileges on any x86. That portability is key to being able

Re: [9fans] naive 9vx/fossil question

2008-07-02 Thread Russ Cox
have a plan9/linux dual boot on my machine. Is there any way I can access (i.e: read and/or write) the fossil partition of my plan9 install from 9vx on linux? Actually, is there any way at all I can access that partition from linux? You should be able to start fossil from inside 9vx, though

Re: [9fans] p9p vac merge problem

2008-07-02 Thread Russ Cox
I recently updated my p9p from the CVS respository, and vac fails when I try to use the -m option for merging. I am not sure whether the cause of the problem is in venti or in vac. I did not test that well enough. It should be fixed now. Russ

Re: [9fans] pull in 9vx

2008-07-02 Thread Russ Cox
Yeah, i know i can extract it if I try hard enaugh. Others won't even try. I hope this gets fixed. This just isn't high priority for me. Once 9vx is ready for prime time and there's a real distribution to make, I'll worry about it then. Also, you're really not trying very hard. If the GNU tar

[9fans] p9p vac

2008-07-02 Thread Russ Cox
the vac -m bug is fixed. (it was fixed earlier tonight, i just forgot to push the fix to cvs.) if you use vac -m to manage a dump-like tree of backups, you will likely be interested in the new -a flag, which automates the process. also, -e takes glob patterns now, and -x will read patterns

Re: [9fans] naive 9vx/fossil question

2008-07-03 Thread Russ Cox
The global plan9 one (sda1) seem to be the same in both cases, as well as the other sda* ones (linux), but the subpartitions (not sure they're called that way) inside differ. I suppose the correct one is the plan9 one, i.e 9fat should start at the beginning of the plan9 one (at 63), and not

Re: [9fans] 9vx.OSX bug: resize on second display causes window to go wrong

2008-07-03 Thread Russ Cox
Is there any way we could solve the current state of affairs with slightly diverging gui/draw codebases for p9p, drawterm, 9vx, acme-sac and inferno-os? Each seems to have a set of bugs that somewhat overlaps with the other projects, and they have to be rediscovered, and the fixes moved

Re: [9fans] p9p vbackup on linux

2008-07-03 Thread Russ Cox
Adding those lines verbatim to a file 'config', I then ran: vnfs -c 16k config and got back: handle da...0d I don't yet fully understand the implications of that 16 char hex string, so I'm not posting it here, but I didn't seem to need it anywhere else. It was just a debugging

Re: [9fans] vx32 and 9vx performance, and on x86-64

2008-07-03 Thread Russ Cox
* the kprocdev framework. all i/o into devip, devfs, and devdraw is marshalled and handed off to a kproc running in a different pthread, so that blocking i/o won't block the cpu0 pthread, which is the only one that can run vx32. this means that all i/o

[9fans] venti survery results

2008-07-03 Thread Russ Cox
The venti surveys have stopped trickling in. As promised, here is a summary. Below is a table summarizing the venti data. Each line is one server that someone submitted. I am surprised that there are people out there with 4+ year old servers. You take very good care of your disks. I suspect

Re: [9fans] Rio windows size and location

2008-07-04 Thread Russ Cox
Rather than fiddle with rio's guts, you'd do better to implement your own window command that surveys the screen size (cat /dev/draw/new [2]/dev/null | awk '{print $7, $8}') the locations of current windows (wloc) and then implements any algorithm you like for placing windows. Russ

Re: [9fans] signal.h in APE for newbies

2008-07-04 Thread Russ Cox
Any chance this is some 9vx issue? I tried the test code below it worked in 9grid.jp ,but gave the following message in 9vx You are caught in quite a tangled web. The hardware gets a floating point trap, Linux/BSD/OS X turns it into a SIGFPE, vx32 turns it back into a hardware trap, Plan 9

Re: [9fans] A question on remotemail

2008-07-08 Thread Russ Cox
There are two different From addresses associated with a particular mail message. There is the RFC822 From: line and then there is the MAIL FROM return address that is sent as part of the SMTP conversation. (This is the address recorded in the From line at the top of the Plan 9 mbox-format

Re: [9fans] 9vx dns funny

2008-07-08 Thread Russ Cox
here's the symptom ndb/dnsquery 9hal.ath.cx 9hal.ath.cx ip 9.0.0.0 Fixed. Instead of the tacky solution, one can check the return value from v4parseip. on a related note, would it be worth while to put effort into supporting ptr queries, ip6 c using the host's lookup

Re: [9fans] why not Lvx for Plan 9?

2008-07-08 Thread Russ Cox
However, I have somewhat confused mind Why it's not Linux vx for Plan9? I have no intention to make it bad, however, if we believe Plan 9 is better than Linux, then Linux vx for Plan9 should be more neccessary, shouldn't ? I wrote 9vx for people like me, who would prefer to use Plan 9

  1   2   3   4   5   6   7   >