[9fans] p9p: 9pfuse

2017-04-28 Thread arisawa
Hello, my 9pfuse on mac is something weird. executing: 9pfuse hebe /n/hebe # hebe is one of my plan9 server (9front) I can see /n/hebe/usr/arisawa/tmp -bash$ ls -l /n/hebe/usr/arisawa/tmp/x ls: /n/hebe/usr/arisawa/tmp/x: No such file or directory# this is OK. I don’t have tmp

[9fans] p9p: 9pfuse

2017-04-22 Thread arisawa
Hello, my 9pfuse on mac is something weird. by executing: 9pfuse hebe /n/hebe # hebe is one of my plan9 server (9front) I can see /n/hebe/usr/arisawa/tmp -bash$ ls -l /n/hebe/usr/arisawa/tmp/x ls: /n/hebe/usr/arisawa/tmp/x: No such file or directory# this is OK. I don’t

[9fans] p9p: 9pfuse

2017-04-22 Thread arisawa
Hello, my 9pfuse on mac is something weird. by executing: 9pfuse hebe /n/hebe # hebe is one of my plan9 server (9front) I can see /n/hebe/usr/arisawa/tmp -bash$ ls -l /n/hebe/usr/arisawa/tmp/x ls: /n/hebe/usr/arisawa/tmp/x: No such file or directory# this is OK. I don’t

[9fans] p9p: symlink

2017-04-17 Thread arisawa
lst->st_size; <- why Russ put this code? } Any merit? Kenji Arisawa - P.S. This mail is resent because the mail wasn't received by 9fans.

[9fans] p9p: symlink

2017-04-17 Thread arisawa
lst->st_size; <- why Russ put this code? } Any merit? Kenji Arisawa

Re: [9fans] p9p: 9 ls /dev

2017-04-12 Thread arisawa
9l -o o.test_dirread test_dirread.o mdirread2.o _mp9dir.o -bash$ o.test_dirread . .DS_Store arisawa staff 644 6148 _mp9dir.c arisawa staff 644 4948 _mp9dir.o arisawa staff 644 10284 _p9dir.c arisawa staff 444 4733 a.out arisawa staff 755 9552 a1.c arisawa staff 644 741 b1.c arisawa staff 644 2390 dirread.

Re: [9fans] p9p: 9 ls /dev

2017-04-11 Thread arisawa
kdestroy > kextutil > keytool > kgetcred > kill.d 675a688,694 > piconv > piconv5.16 > piconv5.18 > pidpersec.d > pkgbuild > pkill > pl 880a900,904 > spfquery5.18 > splain > splain5.16 > splain5.18 > split sorry if I make a mistake, but I suspect rea

Re: [9fans] p9p: 9 ls /dev

2017-04-08 Thread arisawa
for(i = 0; i < n; i++) print("%s %s %s \n", db[i].name, db[i].uid, db[i].gid); } close(fd); shows for dirname=$HOME ... arch root 501 bin root 501 ... but they should be arch arisawa staff bin arisaw

Re: [9fans] p9p: 9 ls /dev

2017-04-08 Thread arisawa
> のメール: > > >> On Apr 7, 2017, at 6:18 PM, arisawa <karis...@gmail.com> wrote: >> >> the problem comes from getdirentries() used in $P9P/src/lib9/dirread.c, I >> think. >> >> man getdirentries(2) of OSX says: > > And, dare I quote a L

Re: [9fans] p9p: 9 ls /dev

2017-04-07 Thread arisawa
. See stat(2) for more information on _DARWIN_NO_64_BIT_INODE and its other effects. > 2017/04/07 10:18、Lyndon Nerenberg <lyn...@orthanc.ca> のメール: > > >> On Apr 6, 2017, at 5:49 AM, arisawa <karis...@gmail.com> wrote: >> >> on my system (on osx(1

[9fans] p9p: 9 ls /dev

2017-04-06 Thread arisawa
. my experiments show: the problem of osx comes from dirreadall() the function call works for freebsd but not for osx. anyone has fixed this problem? Kenji Arisawa

Re: [9fans] pipe: bug or feature?

2017-04-02 Thread arisawa
or the documentation is misleading. the man > page seems to say that the pair of fd's returned by pipe(2) are symmetrical, > but it matters which fd of the pair is used for writing. if you switch > around pfd[0] and pfd[1], it works as you'd expect. > > On Fri, Mar 31, 2017 at 5:29 P

[9fans] pipe: bug or feature?

2017-03-31 Thread arisawa
) > sizeof(buf0). is this a bug or feature of pipe? Kenji Arisawa === BEGIN a.c === #include #include char *argv0; void usage(void) { fprint(2,"usage: %s file\n",argv0); exits("usage"); } void main(int argc, char *argv[]) { int fd,pfd[2

[9fans] pipe: bug or feature?

2017-03-31 Thread arisawa
found the program does not finish unless sizeof(buf) > sizeof(buf0). is this a bug or feature of pipe? Kenji Arisawa === BEGIN a.c === #include #include char *argv0; void usage(void) { fprint(2,"usage: %s file\n",argv0); exits("usage"); } void ma

[9fans] ipv6on

2016-11-23 Thread arisawa
ply adding loopback address "::1" to /net/ipselftab? isn’t it enough the code below? ip/ipconfig $xdir loopback /dev/nulladd ::1 /128 it seems this code is working for me. Kenji Arisawa

Re: [9fans] 9front on raspberry pi

2016-11-07 Thread arisawa
Hello, > 2016/11/07 8:29、Chris McGee のメール: > > Hi All, > > I have cleaned up some of the concurrency code and USB. The new release is > here: > https://github.com/sirnewton01/rpi-9front/releases/tag/nov2016-2 > > Thanks, > Chris many thanks, I will try. by the way I

Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
hello Chris, > 2016/11/02 20:17、Chris McGee のメール: > > What's wrong with the large display? the display size is 1920x1200. when I try to resize a window, the mouse cursor flips and it is difficult to resize.

Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
sorry > mount -a '#G' /dev shoud be bind -a '#G' /dev > 2016/11/02 19:47、arisawa <aris...@ar.aichi-u.ac.jp> のメール: > > hi steve > >> 2016/11/02 16:57、Steve Simon <st...@quintile.net> のメール: >> >> can you tell me what the gpio file system look

Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
hi steve > 2016/11/02 16:57、Steve Simon のメール: > > can you tell me what the gpio file system looks like try ls -l '#G' them you will find some files such as #G/gpio/CE0 #G/gpio/CE1 #G/gpio/GPI00 #G/gpio/GPI01 ...

Re: [9fans] 9front on raspberry pi

2016-11-02 Thread arisawa
I’ve tried both pi1 and pi2. both devices successfully boot up. my impression only in primitive usage is: pi2 is fine. thanks Chris! pi1 is a bit unsteady on usb device. usb keyboard is sometimes accidentally detached. > 2016/11/02 14:05、arisawa <aris...@ar.aichi-u.ac.jp> のメール: >

Re: [9fans] 9front on raspberry pi

2016-11-01 Thread arisawa
thanks, i will try. is this for pi1 or pi2 or both? > 2016/11/02 10:35、Chris McGee のメール: > > Hi All, > > I have released an experimental 9front raspberry pi image that I use for my > cluster. > https://github.com/sirnewton01/rpi-9front/releases/tag/nov-2016 > >

Re: [9fans] plan9.bell-labs.com hates AppleWebKit?

2016-10-04 Thread arisawa
I can get proper response from http://plan9.bell-labs.com/sources/ by using mac/osx safari. > 2016/10/03 2:42、James A. Robinson のメール: > > So... Does Alcatel-Lucent have a problem with AppleWebKit > users on principle? > > It looks to me as though my problem with browsing

Re: [9fans] bug in authdial()

2016-05-23 Thread arisawa
hello skip, it is too late but I should say many thanks. > 2016/05/21 7:04、Skip Tavakkolian <9...@9netics.com> のメール: > > supermic% time ./cpu -h grid.nyx.link -k 'dom=outside.plan9.bell-labs.com' -c > pwd > dial took: 165268068 ns > negotiate auth took: 159047373 ns > factotum autenticate

Re: [9fans] bug in authdial()

2016-05-21 Thread arisawa
Hello, > 2016/05/21 11:25、Skip Tavakkolian <9...@9netics.com> のメール: > > i think this fix is correct; i'm not sure why tokenize didn't have a > problem walking a buffer it expects to be null terminated. I agree with skip. the man wait(2) says: The underlying system call is await, which

Re: [9fans] bug in authdial()

2016-05-20 Thread arisawa
parallel dialing would be fine. I guess both cinap and erik have examined labs code. any problem with it? > 2016/05/21 7:25、Charles Forsyth のメール: > > > On 20 May 2016 at 23:04, Skip Tavakkolian <9...@9netics.com> wrote: > i'm a little confused by the discussion of il

Re: [9fans] bug in authdial()

2016-05-20 Thread arisawa
I am sorry that I didn’t give enough information but I din’t know there is so much difference on the subject among 9front, 9atom and labs plan9. > 2016/05/21 7:04、Skip Tavakkolian <9...@9netics.com> のメール: > > i'm a little confused by the discussion of ...

Re: [9fans] bug in authdial()

2016-05-19 Thread arisawa
nice idea. I’ve put an option to cs so that il isn’t listed first. > 2016/05/20 0:48、Charles Forsyth のメール: > > It's not just il. There are other networks, other protocols, other than tcp > and IP. > It's one of the advantages of plan 9 that it's easy to try and use

Re: [9fans] bug in authdial()

2016-05-19 Thread arisawa
cinap is right but I wonder if we should take care of IL forever. > 2016/05/18 18:14、cinap_len...@felloff.net のメール: > > yes, passing netroot to netmkaddr() is wrong. however, i dont see where > we pass anything other than netroot=nil to authdial(). > > i suspect what you'r experiencing is that

Re: [9fans] bug in authdial()

2016-05-18 Thread arisawa
/net/tcp/clone 115.36.102.252!17010 > /net/tcp/clone 2402:6b00:4040:b600::9!17010 > 0.00u 0.00s 0.01r ndb/csquery /net/cs net!grid.nyx.link!cpu > supermic% > > i suspect it's auth negotiations. > > > > On Wed, May 18, 2016 at 6:07 AM Charles Forsyth <charles.

Re: [9fans] cpu command latency

2016-05-18 Thread arisawa
cpu -h tcp!grid.nyx.link -k dom=luna.nyx.link ... you need to recompile libauthsrv, factotum and kernel. I am happy if anyone send me data from outside of japan. putting “tcp!” is clumsy. fixing cpu.c is also desirable. p.s. thanks skip for the suggestion. Kenji Arisawa > 2016/05/14 22

[9fans] bug in authdial()

2016-05-17 Thread arisawa
rv = dial(p, 0, 0, 0); + if(rv >= 0) + break; NOTE that return dial(netmkaddr("$auth", netroot, "ticket"), 0, 0, 0); should be also fixed. Kenji Arisawa

Re: [9fans] cpu command latency

2016-05-14 Thread arisawa
May 14 22:21:22 rexcall:netmkaddr 565 μsec; tcp!io!ncpu vbt May 14 22:21:22 rexcall:dialing 977 μsec; tcp!io!ncpu vbt May 14 22:21:22 rexcall:dial 7287 μsec isn’t it better the default net be “tcp”? even if you do want “net”, you can do cpu -h net!host Kenji Arisawa

Re: [9fans] cpu command latency

2016-05-12 Thread arisawa
for(i in 1 2 3){ time cpu -h HOST -k ‘dom=DOM’ -c pwd sleep 3 } thanks in advance. Kenji Arisawa

Re: [9fans] cpu command latency

2016-05-12 Thread arisawa
2 3){ time 9fs $host #unmount /n/$host rm /srv/$host sleep 3 } term% try -m sources outside.plan9.bell-labs.com arisawa post... 0.00u 0.01s 1.31r9fs sources post... 0.00u 0.03s 0.69r9fs sources post... 0.00u 0.00s 0.58r9fs sources term% te

Re: [9fans] cpu command latency

2016-05-11 Thread arisawa
supports both IPs. the cpu command will select IPv4. the command does not have “-6” option. If we want to connect by IPv6, literal IP address is required in the argument of the command. Kenji Arisawa > In my experience, it's almost unfailingly the DNS that slows down > establishing an In

Re: [9fans] cpu command latency

2016-05-11 Thread arisawa
){ time 9fs $host unmount /n/$host sleep 3 } } probably cpu command latency will show similar behavior with much more time. Kenji Arisawa

[9fans] cpu command latency

2016-05-11 Thread arisawa
myself. let me know if you know, please. I am also happy if someone give me data by accessing my grid server. then the HOST is grid.nyx.link and the DOM is outside.plan9.bell-labs.com and need your bell-labs key in factotum. thanks in advance. Kenji Arisawa

Re: [9fans] 9Cloud Source

2016-03-19 Thread arisawa
where is patch on http://9p.io/ ? there are your patch on sources grid% ls -l /n/sources/patch/syscall-* --rw-rw-r-- M 105 fst sys 35842 Mar 17 09:52 /n/sources/patch/syscall-exportfs/chan.c --rw-rw-r-- M 105 fst sys 35357 Mar 17 09:52 /n/sources/patch/syscall-exportfs/chan.c.orig --rw-rw-rw- M

Re: [9fans] rtl8169 gbe slow

2016-02-18 Thread arisawa
hello, rtl8169 is popular in cheap MB, so it is installed in my many MBs. however, cat /dev/kmesg claims: rtl8169: oui 0x732 phyno 1, macv = 0x3c00 phyv = 0x0002 #l0: rtl8169: 100Mbps port 0xD000 irq 10: 001fd0169891 the “100Mbps" in the message is correct or not? I also feel rtl8169 is

Re: [9fans] file descriptor leak

2016-02-16 Thread arisawa
. how to find fd leakage? thanks in advance io% ps|grep dns arisawa 2480:00 0:00 348K Awaitdns arisawa 2490:00 0:0014584K Preaddns arisawa 2500:12 0:1214576K Preaddns io% cat /proc/^(248 249 250)^/fd /usr/arisawa 0 r M8

[9fans] file descriptor leak

2016-02-16 Thread arisawa
tal("exec rc: %r"); } for(p = waitpid(); p >= 0; p = waitpid()) if(p == pid) return msg.msg; return "lost child"; } fd is lost if pid > 0 my server is running on 9front. however both 9atom and bell-labs use same routine. Kenji Arisawa

Re: [9fans] 9pfuse and u9fs

2016-02-16 Thread arisawa
thanks for your reply. the server mmac is mac and mountable from plan9 using 9fs. auth method is set to p9any in u9fs setting. In the experiment, I once (and only once) requested password -bash$ 9fs mmac !adding key: role=client proto=p9sk1 dom=mmac user[arisawa]: password: ! authdial

[9fans] 9pfuse and u9fs

2016-02-16 Thread arisawa
be great if 9pfuse can mount u9fs Kenji Arisawa

[9fans] mirror of sources of bell-labs

2016-02-15 Thread arisawa
Hello 9fans, I added mirror page of sources of bell-labs. look http://p9.nyx.link/sources I am afraid the page has a problem with copyright or something else. if so, please inform me. I will remove them if necessary. Kenji Arisawa

Re: [9fans] bug in exportfs

2016-02-14 Thread arisawa
Hello, > 2016/02/15 7:57、Charles Forsyth のメール: > > > On 14 February 2016 at 16:38, wrote: > i could imagine the filtering being usefull when cpu'ing to foreign machines, > as a server can easily compromize your system when cpu exports your

Re: [9fans] bell-labs wiki page

2016-02-11 Thread arisawa
Hello 9fans, I also have constructed mirror page of Plan 9 Wiki just now. please try. http://p9.nyx.link/wiki/plan_9_wiki/ > 2016/02/10 12:32、arisawa <aris...@ar.aichi-u.ac.jp> のメール: > > many thanks. > >> 2016/02/10 10:45、R. Lucas van Ryn <rvan+pl...@sdf.org> のメー

[9fans] bell-labs wiki page

2016-02-09 Thread arisawa
hello 9fans, bell-labs wiki page is down. both http://www.cs.bell-labs.com/wiki/plan9//plan_9_wiki/ and http://www.cs.bell-labs.com/wiki/plan9/plan_9_wiki/ says: Object not found is there any mirror of that wiki? Kenji Arisawa

Re: [9fans] bell-labs wiki page

2016-02-09 Thread arisawa
many thanks. > 2016/02/10 10:45、R. Lucas van Ryn <rvan+pl...@sdf.org> のメール: > > On Wed, Feb 10, 2016 at 10:40:21AM +0900, arisawa wrote: >> bell-labs wiki page is down. >> >> is there any mirror of that wiki? > > There is http://9p.io/wiki/plan9/plan_9_wiki/ >

Re: [9fans] WiFi for Plan9

2016-01-30 Thread arisawa
thanks cinap, your advice resolved my problem. aux/wpa is pretty wise! > 2016/01/31 6:37、cinap_len...@felloff.net のメール: > > aux/wpa doesnt need to be restarted really. it uses factotum to derive > the psk using the current essid read from the wifi drivers ifstats file. > so to switch essid's

[9fans] WiFi for Plan9

2016-01-28 Thread arisawa
point. now I reboot and reconnect to other essid. anyone knows better way? Kenji Arisawa

Re: [9fans] a question on csquery

2016-01-09 Thread arisawa
hello erik, did you try ndb/csquery on the machine named dual? > 2016/01/10 1:18、erik quanstrom のメール: > >>> tcp!io.local!1 >> /net/tcp/clone 192.168.0.5!1 >> /net/tcp/clone 2402:6b00:22cd:bf80::5!1 >>> >> io% >> >> is there any reason that csquery should not show

Re: [9fans] a question on csquery

2016-01-09 Thread arisawa
hello erik, > there is no machine named "dual". it was just a set of ndb entries. > i tried the same experiment with a machine i have, and got the same > result. > > - erik > hmmm… then it seems that problem is only to me. thanks for your experiments!

[9fans] a question on csquery

2016-01-08 Thread arisawa
et/tcp/clone 192.168.0.5!1 /net/tcp/clone 2402:6b00:22cd:bf80::5!1 > io% is there any reason that csquery should not show both IPs when address is sysname on that csquery command is executed? Kenji Arisawa

Re: [9fans] need a REAL WORKING iso

2016-01-02 Thread arisawa
hello, I have recently reinstalled 9pi. -rw-r-@ 1 arisawa staff 127695824 1 1 18:38 9pi.img.gz which is downloaded from plan9.bell-labs.com/sources/contrib/miller/9pi.img.gz the img works fine with 8GB sd card (4GB is OK?) I don’t experience your problem. in 9front distribution we can

Re: [9fans] bug or feature ? --- ip/ping -6

2015-12-30 Thread arisawa
hello, I did nothing about original ping options, so they should work as they have been. I am afraid I have removed too much. the new ping is here. test, please. ping.c Description: Binary data > 2015/12/31 7:43、Kenny Lasse Hoff Levinsen のメール: > > It is not a

[9fans] bug or feature ? --- ip/ping -6

2015-12-30 Thread arisawa
rtt 158 µs, ttl = 255 code is simplified. io% ls -l --rw-rw-r-- M 327 arisawa arisawa 9942 Dec 30 21:27 ping.c --rw-rw-r-- M 327 arisawa arisawa 10943 Dec 28 15:59 ping.c.orig io% Kenji Arisawa > 2015/12/28 18:04、arisawa <aris...@ar.aichi-u.ac.jp> のメール: > > hello 9fans, > &

[9fans] bug or feature ? --- ip/ping -6

2015-12-28 Thread arisawa
6b00:22cd:bf80::6 rtt 88 µs, avg rtt 95 µs, ttl = 255 2: 2402:6b00:22cd:bf80::5 -> 2402:6b00:22cd:bf80::6 rtt 84 µs, avg rtt 91 µs, ttl = 255 3: 2402:6b00:22cd:bf80::5 -> 2402:6b00:22cd:bf80::6 rtt 104 µs, avg rtt 94 µs, ttl = 255 is this a feature or a bug? Kenji Arisawa

Re: [9fans] bug in exportfs

2015-12-22 Thread arisawa
No. The difficulty is in the pattern matching rule. If we want to export only /usr/glenda, then the pattern matching filer must pass /usr /usr/glenda and must not pass /usr/ have you get solution? > 2015/12/22 18:25、Peter Hull <peterhul...@gmail.com> のメール: > > Mr Arisawa, &g

Re: [9fans] 9grid again

2015-12-21 Thread arisawa
Hello 9fans. I have started a new 9grid server with some services. Please look http://p9.nyx.link/9grid2/9grid.html for details. This is an experimental service. If you noticed something bad, please inform me. Kenji Arisawa > 2015/11/12 16:30、arisawa <aris...@ar.aichi-u.ac.jp> のメール: &

Re: [9fans] bug in exportfs

2015-12-17 Thread arisawa
terhul...@gmail.com> のメール: > > On Wed, Dec 16, 2015 at 11:31 PM, arisawa <aris...@ar.aichi-u.ac.jp> wrote: >> It seems cpu command is buggy in -P option. >> the sources of the problem is in command option -P of exportfs. > > I had a look at the manpag

Re: [9fans] unmount

2015-12-01 Thread arisawa
I said: > 2015/12/01 12:24、arisawa <aris...@ar.aichi-u.ac.jp> のメール: > > Hello 9fans, > > current kernel allows unmount even if after rfork m. > this feature makes sandboxing difficult. > can anyone explain this feature is necessary? > > Kenji Arisawa I make

[9fans] unmount

2015-11-30 Thread arisawa
Hello 9fans, current kernel allows unmount even if after rfork m. this feature makes sandboxing difficult. can anyone explain this feature is necessary? Kenji Arisawa

[9fans] 9grid again

2015-11-11 Thread arisawa
is practically infeasible. 9grid enables opposite approach: login to servers and process the data there and gather the results. we have all the tools that are necessary to do this as much as 10 years ago. what is lacking is target data. any idea? Kenji Arisawa

[9fans] blank line in /lib/ndb/local

2015-11-09 Thread arisawa
auth will produce dom=foo auth=bar on the other hand, if the blank line is empty, then the command will produce dom=foo Is this a bug or a specification? I want to believe this is a bug. Kenji Arisawa

Re: [9fans] blank line in /lib/ndb/local

2015-11-09 Thread arisawa
hello, your blank line doesn’t have a white space. > 2015/11/10 12:02、erik quanstrom のメール: > > On Mon Nov 9 04:32:24 PST 2015, aris...@ar.aichi-u.ac.jp wrote: >> Hello, >> >> manual ndb(6) says: "Each line starting without white space starts a new >> tuple. Lines

Re: [9fans] blank line in /lib/ndb/local

2015-11-09 Thread arisawa
yes, your right. the manual says what the code does. however I don’t think it is a good idea to make sense in white spaces within blank line. probably the code does not suppose blank lines within ndb entry. > 2015/11/10 13:05、erik quanstrom のメール: > > On Mon Nov 9

Re: [9fans] 9vx on OSX

2015-11-07 Thread arisawa
ent makes problem. Kenji Arisawa

[9fans] 9vx on OSX

2015-11-03 Thread arisawa
Hello, does anyone have 9vx that is working on recent osx (Yosemite for example)? mine is weird: when I type “abc”, I have “aabbcc”. Kenji Arisawa

Re: [9fans] manual qer(8)

2015-09-26 Thread arisawa
thanks. anyway, simple “runq” does not work. should be fixed. > 2015/09/26 18:11、Charles Forsyth <charles.fors...@gmail.com> のメール: > > > On 26 September 2015 at 06:29, arisawa <aris...@ar.aichi-u.ac.jp> wrote: > I think “runq” should be replaced by “upas/runq” &

Re: [9fans] dns message

2015-09-26 Thread arisawa
thank you erik. you are very careful! I didn’t aware that garbage. however removing “ip” does not fix my problem. looking source code I guess: names that are not followed by “=“ are just discarded. I want to know whether this is only to me. erik, thanks again! > 2015/09/27 0:28、erik quanstrom

[9fans] manual qer(8)

2015-09-25 Thread arisawa
Hello, qer(8) says: Runq is often called from cron(8) by an entry such as 0,10,20,30,40,50 * * * * kremvax runq -a /mail/queue /mail/lib/remotemail I think “runq” should be replaced by “upas/runq” Kenji Arisawa

[9fans] dns message

2015-09-25 Thread arisawa
are advertised by DHCP server # we assume that dhcpd is running on the same ip. look /cfg/common/cpurc dns=192.168.0.6 yes my dns is running on 192.168.0.6 any wrong setting in /lib/ndb/local? if not, I think these warning messages are annoying. Kenji Arisawa

[9fans] ipv6on bug?

2015-08-02 Thread arisawa
‘') ### s/sysname/mev6/g mev6=`{ndb/query -mf $ndbf sys $sysname ip | grep :}### s/-f/-mf/ Kenji Arisawa

Re: [9fans] ipv6 and ndb/csquery

2015-07-14 Thread arisawa
Thanks cinap, your detailed explanation will be helpful to me and all others. Kenji Arisawa 2015/07/12 0:37、cinap_len...@felloff.net のメール: when you query /net/dns, it differentiates between ip (A) and ipv6 () records. so querying for ip only yields ipv4 addresses and querying

Re: [9fans] ipv6 and ndb/csquery

2015-07-11 Thread arisawa
Thanks. It seems you are right. I have been playing with ipv6 and yet i don’t understand something. What is the rule to select an IP if we allow multiple IPs for a dom? Maybe case by case. But how to select ipv6 in case of telnet? 2015/07/07 2:01、cinap_len...@felloff.net のメール: i dont know

[9fans] ipv6 and ndb/csquery

2015-07-03 Thread arisawa
173.194.117.211!* /net/tcp/clone 173.194.117.212!* /net/tcp/clone 2404:6800:4004:80c::1014!* why csquery does not show ipv6 address of maia? Kenji Arisawa

Re: [9fans] Plan9 DNS server

2015-06-22 Thread arisawa
thanks all. now I have achieved my goal. 2015/06/22 19:34、lu...@proxima.alt.za のメール: how to enable locally assigned name resolution such as maia? The dns man page requires careful reading, but all the details are in there. I have a pretty complex DNS configuration and it seems to cause

[9fans] Plan9 DNS server

2015-06-21 Thread arisawa
to enable locally assigned name resolution such as maia? I have many computers on my home network. currently I am registering them to /etc/hosts. but that is a pain. Kenji Arisawa

Re: [9fans] protection against resource exhaustion

2015-01-29 Thread arisawa
Hi, erik, Thanks a lot! 2015/01/29 15:42、erik quanstrom quans...@quanstro.net のメール: i hope i haven't overplayed my argument. i am for real solutions to this issue. i'm not for the current solution, or more complicanted variants.

Re: [9fans] protection against resource exhaustion

2015-01-28 Thread arisawa
Thanks for all. I have looked old source code /sys/src/9/port/proc.c, and found the next code exists from very old day. lock(procalloc); for(;;) { if((p = procalloc.free) != nil) break; snprint(msg, sizeof msg, no procs;

Re: [9fans] protection against resource exhaustion

2015-01-27 Thread arisawa
we don’t have perfect solution. nevertheless, we must protect system. if we search ideal (or nearly ideal) solution, we should assign limited resource to each user. however this is a big job, I believe. current plan9 system is running under shared resource model. under this model, it is very

Re: [9fans] protection against resource exhaustion

2015-01-27 Thread arisawa
Hello, nonetheless, i have experience running multi-user plan 9 systems, and users were not usually the issue. Eric’s users are all gentleman, all careful people and all skillful programmers. If your system is served for university students, you will have different thought. i think you've

Re: [9fans] protection against resource exhaustion

2015-01-26 Thread arisawa
Hello, i think it will go the same way with fork protection. how do you tell which program is at fault? how do you tell a program forking at high frequency, with short lived children from a fork bomb? (such as a busy web server.) only system administrator knows which processes should

Re: [9fans] protection against resource exhaustion

2015-01-26 Thread arisawa
Hello, I have been playing the following program. I tried on official plan9, 9front, and 9atom. none of them showed messages that come from: sysfatal(fork: %r”); sysfatal(exec: %r); I suspect that fork() does not return -1 even if it failed in creating new

Re: [9fans] protection against resource exhaustion

2015-01-26 Thread arisawa
Hello, many of resource exhaustion come from careless programming. I would like such processes to be killed immediately. throwing up to broken state might be better. I prefer an option to plan9.ini that enable resrcwait(), because the call breaks traditional programming style and probably we need

Re: [9fans] protection against resource exhaustion

2015-01-25 Thread arisawa
be a bug in rc. Kenji Arisawa 2015/01/25 15:16、arisawa aris...@ar.aichi-u.ac.jp のメール: Hello 9fans my mac has a protection below: -bash$ cat foo #!/bin/sh ./foo -bash$ ./foo ./foo: fork: Resource temporarily unavailable -bash$ on the other hand, Plan 9 does not. kernel is protected

[9fans] protection against resource exhaustion

2015-01-24 Thread arisawa
anyone have idea to fix the problem? Kenji Arisawa

Re: [9fans] bug in rc(1) ?

2014-11-30 Thread arisawa
OK, thanks 2014/11/29 13:57、minux minux...@gmail.com のメール: On Fri, Nov 28, 2014 at 11:42 PM, arisawa aris...@ar.aichi-u.ac.jp wrote: rc(1) says: rfork [nNeEsfFm] Become a new process group using rfork(flags) where flags is composed of the bitwise

[9fans] bug in rc(1) ?

2014-11-28 Thread arisawa
Arisawa

Re: [9fans] rc: null list in concatenation

2014-11-25 Thread arisawa
2014/11/25 15:56、tre...@india.com のメール: a = `{ls file}^test; echo 'this part is not executed if file doesn''t exist' probably your question is as follows: maia% a = `{ls file}^test; echo 'this part is not executed if file doesn''t exist' ls: file: 'file' directory entry not found rc: null

Re: [9fans] rc: null list in concatenation

2014-11-24 Thread arisawa
example is required. 2014/11/25 13:24、tre...@india.com のメール: Hello everyone. I'm curious about the behavior of rc concatenating null strings (brakes execution on error...). It's a feature, rationally thought-out, or a bug? If anyone can tell me the story behind, I'll be grateful.

Re: [9fans] Pjpeg in /sys/lib/mimetype

2014-11-15 Thread arisawa
in determining the mime type? If so, should files with suffix “.JPG” be renamed to “.jpg” ? Kenji Arisawa 2014/11/14 21:13、arisawa aris...@ar.aichi-u.ac.jp のメール: Hello, It is curious for me that .jpg has two entries in /sys/lib/mimetype. term% grep jpeg /sys/lib/mimetype .jfif image

[9fans] inconsistent comparison?

2014-11-15 Thread arisawa
Hello, /sys/lib/mimetype is referenced in three files: /sys/src/cmd/ip/httpd/content.c # for outgoing file /sys/src/cmd/upas/marshal/marshal.c # for outgoing file /usr/arisawa/src/upas/vf/vf.c # for incoming file the codes are as follows. /sys/src/cmd/ip/httpd/content.c /sys/src/cmd/ip

[9fans] Pjpeg in /sys/lib/mimetype

2014-11-14 Thread arisawa
that the file provides conventional way to determine mime type from file suffix. If so, what is the mime type for foo.jpg? Kenji arisawa

[9fans] pjpeg in /sys/lib/memetype

2014-11-14 Thread Kenji Arisawa
thought that the file provides conventional way to determine mime type from file suffix. If so, what is the mime time for foo.jpg? Kenji Arisawa

Re: [9fans] shell functions

2014-10-01 Thread arisawa
thanks for all. our conclusion is: worthless to fix. Kenji Arisawa

Re: [9fans] shell functions

2014-09-29 Thread arisawa
in dangerousness between some environment variable are destroyed and arbitrary commands can be executed. Kenji Arisawa 2014/09/28 18:39、Richard Miller 9f...@hamnavoe.com のメール: when rc is invoked, rc reconstructs shell variable and shell functions using files in /env/. in case of shell functions

Re: [9fans] shell functions

2014-09-28 Thread arisawa
Arisawa 2014/09/27 23:40、Christian Neukirchen chneukirc...@gmail.com のメール: The problem could be completely avoided if the '{}' were implicit, that is, store fn foo { echo bar } as fn#foo=echo bar (Also, I heard Research Unix v8 sh(1) stored functions in the environment as foo

[9fans] segattach in telnetd

2014-09-13 Thread arisawa
*)-1) return 0; return vastart; } I think it should be - if(segattach(0, shared, vastart, len) == (void*)-1) + if((vastart = segattach(0, shared, vastart, len)) == (void*)-1) Kenji Arisawa

Re: [9fans] segattach in telnetd

2014-09-13 Thread arisawa
Hello, I think vastart += 2*1024*1024; is weird. if we look /proc/$ip/segment in share(), we will have better solution. but I am not convinced we should apply the solution. because we seldom needs shared segment. I haven’t had any trouble with telnetd. I needed shared segment for

  1   2   3   >