[9fans] [plan9mod] Query regarding venti scores

2009-02-06 Thread anoop . anoop
Hello All,

I have a query regarding the scores in venti. Here is my question:
Since the venti scores are SHA-1 hashes, can they be considered as
UUIDs? I have two different venti servers and am storing different
sets of databolcks on each. I am wondering whether a scenario will
arise where server A and server B gives the same score for completely
different datablocks.

Any help is greatly appreciated. Thanks in advance.

Regards,
Anoop



Re: [9fans] [plan9mod] Query regarding venti scores

2009-02-06 Thread 23hiro
With today's amount of storage the probability of a collision is too
low for that to happen.
I read that in the Venti paper[1].
I would not consider them UUIDs though, since the same data blocks
will have the same sha-1 hash on both servers.
If that doesn't cause a problem you're fine

[1] http://plan9.bell-labs.com/sys/doc/venti/venti.pdf


On 2/6/09, anoop.an...@gmail.com anoop.an...@gmail.com wrote:
 Hello All,

 I have a query regarding the scores in venti. Here is my question:
 Since the venti scores are SHA-1 hashes, can they be considered as
 UUIDs? I have two different venti servers and am storing different
 sets of databolcks on each. I am wondering whether a scenario will
 arise where server A and server B gives the same score for completely
 different datablocks.

 Any help is greatly appreciated. Thanks in advance.

 Regards,
 Anoop





[9fans] nupas mk install bug

2009-02-06 Thread matt

mk install
... snip ...
cp 8.out /386/bin/nupas/Mail
cp: can't create /386/bin/nupas/Mail: '/386/bin/nupas' does not exist


works ok when I access my Courier server but aborts on

nupas/fs/fs.c:157

when I access the imap version of http://fastmail.fm/

I've tried it on two mailboxes, it does this command

9x4 uid fetch 1:* (uid rfc822.size internaldate)

then fails parsing the repsonses

of the form

* 99 FETCH (UID 32768 INTERNALDATE  6-Feb-2009 08:52:33 -0500 
RFC822.SIZE 74193)



That's as far as I got :

Matt




Re: [9fans] nupas mk install bug

2009-02-06 Thread erik quanstrom
On Fri Feb  6 09:17:01 EST 2009, mattmob...@proweb.co.uk wrote:
 mk install
 ... snip ...
 cp 8.out /386/bin/nupas/Mail
 cp: can't create /386/bin/nupas/Mail: '/386/bin/nupas' does not exist

i may be wrong, but that is intentional.  i don't know of other
plan 9 programs that make their own bin when installed.

 9x4 uid fetch 1:* (uid rfc822.size internaldate)
 
 then fails parsing the repsonses
 
 of the form
 
 * 99 FETCH (UID 32768 INTERNALDATE  6-Feb-2009 08:52:33 -0500 
 RFC822.SIZE 74193)

interesting.  there's nothing that looks obviously
wrong with that line.  it must already be out of step.
would you mind applying this edit

imap.c:1085,1091 - /n/sources/contrib/quanstro/src/nupas/fs//imap.c:1085,1090
}
  
imap = emalloc(sizeof *imap);
-   imap-flags |= Fdebug;
imap-fd = -1;
imap-freep = path;
imap-flags = flags;

and sending along the debugging output?  it's going
to be a bit chatty.  thanks.

- erik



Re: [9fans] [plan9mod] Query regarding venti scores

2009-02-06 Thread erik quanstrom
 that doesn't directly address their suitability as UUIDs. it seems
 like an odd choice to me (certainly it's an expensive way of
 generating them), although i guess it depends what your application
 is.

sha-1 is a standard uuid format.  since a uuid is 16 bytes and
sha-1 is 20, there should be plenty of room in there.  here's the
fully legal url:

http://en.wikipedia.org/wiki/UUID#Version_5_.28SHA-1_hash.29

- erik



Re: [9fans] nupas mk install bug

2009-02-06 Thread erik quanstrom
 when I access the imap version of http://fastmail.fm/
 I've tried it on two mailboxes, it does this command
 9x4 uid fetch 1:* (uid rfc822.size internaldate)
 then fails parsing the repsonses

thanks for the bug report.  i signed up for fastmail.fm
to figure out what's going on.

there were two independent failures.  first, fastmail.fm
takes the unusual step of reordering the requested fields.
the response parser wasn't able to deal with that.  simple
fix.  the second problem was parsing a list of flags in the
return.  we didn't ask for flags, but fastmail sent 'em anyway.
this part of the fix seems solid, but needs a little more testing.
since it's not working for you at all, would you try
/n/sources/contrib/quanstro/src/imap.c?
replace fs/imap.c with this file and recompile.

- erik



[9fans] Handling of other Dir.mode bits

2009-02-06 Thread Anthony Sorace
Dir.mode has several bits that don't seem to be defined. Should the
protocol be read that optimally conforming clients and servers should
pass through the bits, or set them to 0? Aside from the obvious risk
of future collisions, is there anything that makes using these bits
unsafe?

No, this isn't for DMEVIL.



[9fans] Ethernet drivers

2009-02-06 Thread Akshat Kumar
Is a D-Link DL10038D supported by the RTL8139 drivers?
Are they essentially the same thing?
Has anyone tried it?


Thanks,
ak



Re: [9fans] Ethernet drivers

2009-02-06 Thread Akshat Kumar
DL10038D is a success by RTL 8139 drivers on Plan 9.
Took it off of a dying computer -- a good hardware investment
(though a poor replacement for my Broadcom).


yay!
ak



Re: [9fans] Ethernet drivers

2009-02-06 Thread ron minnich
On Fri, Feb 6, 2009 at 12:01 PM, Akshat Kumar
aku...@mail.nanosouffle.net wrote:
 Is a D-Link DL10038D supported by the RTL8139 drivers?
 Are they essentially the same thing?
 Has anyone tried it?


do you have one or are you preparing to buy one?

ron



Re: [9fans] Ethernet drivers

2009-02-06 Thread Akshat Kumar
2009/2/6 ron minnich rminn...@gmail.com:

 do you have one or are you preparing to buy one?

 ron



Ah, so the situation was that I have a Broadcom on
my workstation, and there are no drivers for it on Plan 9.
But there are drivers for the RTL8139, and an old box
that's just been brought down to me has a
D-Link DL10038D card. This is stated (somewhere online)
to be a remark of RTL8139, but I'm not sure about the
details of that. Anyways, before I placed it in my workstation,
 I wanted to make sure that it'd actually work.
Since no one replied, I went ahead anyways... and voila!

It's fine, I have internet on Plan 9 now. Yay!


ak



[9fans] FileServer grid

2009-02-06 Thread Giacomo Tesio
Hello every one...
In a context of really heavy load and high availability needs, I'm
evaluating plan 9 to implement a fileserver grid to be used by a web server
for temporary storage (session's serializations, for example).

I'd like to build a Plan 9 grid exposing a unique filesystem mounted by all
the web servers.

Each session could be accessible from any web server instantly, but what if
a fileserver in the grid break?
Is there a way to mantain such a session (actually the file storing the
session data) available by keeping it sincronized beetween the Plan 9
fileservers?


Hoping to have been clear...
Thanks for your help


Giacomo


Re: [9fans] FileServer grid

2009-02-06 Thread Roman V. Shaposhnik
On Fri, 2009-02-06 at 23:26 +0100, Giacomo Tesio wrote:
 Hello every one...
 In a context of really heavy load and high availability needs, I'm
 evaluating plan 9 to implement a fileserver grid to be used by a web
 server for temporary storage (session's serializations, for example).

What OS do you web servers run under?

 I'd like to build a Plan 9 grid exposing a unique filesystem mounted
 by all the web servers.

Are you going to talk to this filesystem using 9P or something else?

 Each session could be accessible from any web server instantly, but
 what if a fileserver in the grid break?
 Is there a way to mantain such a session (actually the file storing
 the session data) available by keeping it sincronized beetween the
 Plan 9 fileservers?

This is unclear. Please restate.

Thanks,
Roman.




Re: [9fans] FileServer grid

2009-02-06 Thread erik quanstrom
 Hello every one...
 In a context of really heavy load and high availability needs, I'm
 evaluating plan 9 to implement a fileserver grid to be used by a web server
 for temporary storage (session's serializations, for example).
 
 I'd like to build a Plan 9 grid exposing a unique filesystem mounted by all
 the web servers.
 
 Each session could be accessible from any web server instantly, but what if
 a fileserver in the grid break?
 Is there a way to mantain such a session (actually the file storing the
 session data) available by keeping it sincronized beetween the Plan 9
 fileservers?

my 2ยข.

before plan 9 got a shiny osi license, i did something like this
on linux.  since it was linux, the backend server took commands
much like a scsi device does rather than use 9p.  since there
were no reasonable threading option in those days, it worked
like a task-based operating system.  we used select to schedule
work.  all state was written to disk so that the death of the server
was not fatal.  horrible, i know.  but it worked reasonably well
without declaring war on the system we needed to use.  having
two web servers would have been easy in this setup.  having
multiple back-end servers was not possible.  but neither was ever
a performance limitation for us so it remained unexplored.
this is because all the work was pushed to a cluster of workers
fronted by the backend server.  they were always the limitation.

at some level of throughput, this server would be a limitation.
i would be suprised if the limitation would not be the speed of
your network.  since the amount of traffic this server sees should
be much less than the amount of web traffic, one machine with
a 10gbe card could move a lot of data.

- erik



Re: [9fans] sed crash

2009-02-06 Thread Derek Fawcus
On Thu, Feb 05, 2009 at 04:13:46PM -0500, erik quanstrom wrote:
 it would be much preferable to put the pgp
 stuff in its own mime part, as many mail readers
 do.

  X-Pgp-Agent: GPGMail d55 (v55, Leopard)
  X-Mailer: Apple Mail (2.930.3)

and his mailer (plugin) can do so - if it is configured correctly.




[9fans] live cd

2009-02-06 Thread erik quanstrom
does anyone have handy the disk/mk9660 arguments
used to create the plan 9 live cd?  it seems that
-9j is not quite right.

- erik



Re: [9fans] live cd

2009-02-06 Thread Russ Cox
On Fri, Feb 6, 2009 at 5:17 PM, erik quanstrom quans...@quanstro.net wrote:
 does anyone have handy the disk/mk9660 arguments
 used to create the plan 9 live cd?  it seems that
 -9j is not quite right.

/sys/lib/dist/mkfile

russ



Re: [9fans] live cd

2009-02-06 Thread erik quanstrom
 thanks, russ.  i'm not sure why 9660srv without the -9

sorry.  misfired.

- erik



Re: [9fans] live cd

2009-02-06 Thread erik quanstrom
 On Fri, Feb 6, 2009 at 5:17 PM, erik quanstrom quans...@quanstro.net wrote:
  does anyone have handy the disk/mk9660 arguments
  used to create the plan 9 live cd?  it seems that
  -9j is not quite right.
 
 /sys/lib/dist/mkfile
 
 russ

thanks, russ.  i'm not sure why 9660srv without the -9
flag will lowercase all the files on a cd made with -9j
and not -9cj.  with the -9 flag, things aren't perfect,
either, because the ':'s get dropped.  are these bugs
in 9660srv, or do i misunderstand the situation?

(i do now realize that in any event the -c flag is preferable.)

do you know if there is any other information on
devsd than the manual pages?  in writing up the ata
raw command stuff, i realized that there are some small
differences between the manual pages and how it is
actually used.  the raw file is documented as taking
raw commands for the device, but in practice they have
been scsi cdbs.  combined sas/sata controllers 
kind of beg that question.

hope that stuff didn't make you want to gouge your
eyes out.

- erik



[9fans] troff clock hack

2009-02-06 Thread erik quanstrom
i saw a clock face that looked something like
this some time ago.  but in the original a few
of the places were out of form and for some
reason, i had to fix it.

build with
eval `{doctype clock.ms}|clock.ps lp -m.9 -dstdout

it took impressively little code and , due to
the wonders of pic and eqn.

it would be neat to have a companion for
mclock, but i couldn't think of a way to
scale the clock without the projecting becoming
more trouble than it's worth.

- erik

clock.ms
Description: Troff MS-macros document


[9fans] /net different from sockets, but better?

2009-02-06 Thread Rahul Murmuria
I am planning on porting the /net concept of Plan9 to Linux.

My Plan:
Use libfs[1] to write a synthetic filesystem in Linux, much like
securityfs[2], or /proc. This libfs based code will make calls to the TCP/IP
stack on the linux, and basically be an alternative to the Linux kernel
sockets. As a result I will expose networking using /net, instead of POSIX
to the applications.

My Motivation:
Glendix[3]

My Question:
I know that using /net instead of sockets is very different. But is it
better? Specially from the networking side of things, not from application
development point of view (which we have already established is simpler, by
example).

[1] http://lwn.net/Articles/57369/
[2] http://lwn.net/Articles/153366/
[3] http://glendix.org/   and   http://glendix.org/glendix_iwp9_2008.pdf
andhttp://www.osnews.com/story/20588/

Regards,

-- 
Rahul Murmuria


[9fans] External HDD over USB

2009-02-06 Thread Akshat Kumar
This is a Seagate FreeAgent.

term% usb/disk
usb/disk: initialisation: permission denied
usb/disk: statuscmd: fd out of range or not open
usb/disk: statuscmd: fd out of range or not open
usb/disk: statuscmd: fd out of range or not open
usbscsi: write cmd: fd out of range or not open
usb/disk: statuscmd: fd out of range or not open
usb/disk: statuscmd: fd out of range or not open
usb/disk: statuscmd: fd out of range or not open
status 0xFFFD
usb/disk: initialisation: fd out of range or not open
usb/disk: no usb mass storage device found


Suggestions?
ak



Re: [9fans] External HDD over USB

2009-02-06 Thread erik quanstrom
On Fri Feb  6 23:08:59 EST 2009, aku...@mail.nanosouffle.net wrote:
 This is a Seagate FreeAgent.
 
 term% usb/disk
 usb/disk: initialisation: permission denied
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usbscsi: write cmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 status 0xFFFD
 usb/disk: initialisation: fd out of range or not open
 usb/disk: no usb mass storage device found

it's a little hard to be certain because usb/disk
does not do werrstr() before it calls umsinit, but,
i'd bet you're actually having permission problems.

are you running usb/disk as the host owner (eve)?

- erik



Re: [9fans] External HDD over USB

2009-02-06 Thread akumar
I've tried running it as glenda and
another user I've created.

Same results.


On 06/02/2009, erik quanstrom quans...@quanstro.net wrote:
 On Fri Feb  6 23:08:59 EST 2009, aku...@mail.nanosouffle.net wrote:
 This is a Seagate FreeAgent.

 term% usb/disk
 usb/disk: initialisation: permission denied
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usbscsi: write cmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 usb/disk: statuscmd: fd out of range or not open
 status 0xFFFD
 usb/disk: initialisation: fd out of range or not open
 usb/disk: no usb mass storage device found

 it's a little hard to be certain because usb/disk
 does not do werrstr() before it calls umsinit, but,
 i'd bet you're actually having permission problems.

 are you running usb/disk as the host owner (eve)?

 - erik