From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 22 Dec 2005 13:22:37 -0500 From: Serge Gagnon Subject: Re: [9fans] plan9port venti FreeBSD In-reply-to: <200512210421.jBL4LmZv058701@gate.bitblocks.com> To: 9fans@cse.psu.edu Message-id: <200512221322.37563.serge.gagnon@b2b2c.ca> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Content-disposition: inline References: <200512210421.jBL4LmZv058701@gate.bitblocks.com> User-Agent: KMail/1.8.3 Topicbox-Message-UUID: ca8d1690-ead0-11e9-9d60-3106f5b1d025 Le 20 D=E9cembre 2005 23:21, Bakul Shah a =E9crit=A0: > There is no special magic number for venti. Just give it a > normal file or a freebsd partition (/dev/ad0s1e etc) or a > slice (/dev/ad0s2 etc.) I suggest you use normal files > while playing with venti. Hello, i tried it with normal files and it begins to work. I got this error with yesterday ; yesterday -d /COPYRIGHT diff -c /dump/quenix1/2005/1222/COPYRIGHT /COPYRIGHT diff: /dump/quenix1/2005/1222/COPYRIGHT: Input/output error [status 1] ; =20 with this message on the terminal where i start venti and vnfs: % err 0: read too small: asked for 128 need at least 300 cannot open venti disk b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c: read too=20 small: asked for 128 need at least 300 I don't know what exactly it means. =46or information, i made my setup like this: create arenas and index: $ dd if=3D/dev/zero of=3Darenas0 seek=3D$((1024 * 1024 * 512 - 1)) bs=3D1 c= ount=3D1 1+0 records in 1+0 records out 1 bytes transferred in 0.000109 secs (9178 bytes/sec) $ dd if=3D/dev/zero of=3Disect0 seek=3D$((1024 * 1024 * 24 - 1)) bs=3D1 cou= nt=3D1 1+0 records in 1+0 records out 1 bytes transferred in 0.000095 secs (10538 bytes/sec) ; 9 rc % venti/fmtisect -b 32k isect0. isect0 part isect0: file isect0 offset 0 size 25,165,824 fmtisect isect0: 743 buckets of 862 entries, 524,288 bytes for index map % venti/fmtarenas -b 32k arenas0. arenas0 part arenas0: file arenas0 offset 0 size 536,870,912 fmtarenas arenas0: 1 arenas, 536,051,712 bytes storage, 524,288 bytes for=20 index map (I tried it with -b 16k the first time. It was just to see the difference) % cat venti.conf index main isect /home/serge/isect0 arenas /home/serge/arenas0 % venti/fmtindex venti.conf part venti.conf: file venti.conf offset 0 size 92 part /home/serge/isect0: file /home/serge/isect0 offset 0 size 25,165,824 part /home/serge/arenas0: file /home/serge/arenas0 offset 0 size 536,870,912 fmtindex: 1 arenas, 743 index buckets, 535,986,176 bytes storage And start venti: % venti/venti -c venti.conf -h tcp!localhost!8888 venti: conf...part venti.conf: file venti.conf offset 0 size 92 part /home/serge/isect0: file /home/serge/isect0 offset 0 size 25,165,824 part /home/serge/arenas0: file /home/serge/arenas0 offset 0 size 536,870,912 httpd tcp!localhost!8888...init...sync...announce tcp!*!venti...serving. (it is very fun to play with this ;) Ok, now i have backuped something: ; sudo vbackup /dev/ad1s2a Password: offset of magic: 1372 ffs magic 0x12253e51 offset of magic: 1372 ffs magic 0x19540119 mount /quenix1/2005/1222 ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c=20 2005/1222/1222 # 2005/1222 12:22:23.491 /dev/ad1s2a=20 ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c It is my / partition And now I started vnfs: cat config mount /quenix1/2005/1222 ffs:b8ab9f305bd8b1b7b5e7c18186e7336a94107e2c=20 2005/1222/1222 % sudo vnfs -b 32k -c 1k config Password: handle da39a3ee5e6b4b0d and mount it: ; - vmount sudo vmount localhost /dump This is where i got a little problem: ; yesterday /COPYRIGHT /dump/quenix1/2005/1222/COPYRIGHT ; yesterday -d /COPYRIGHT diff -c /dump/quenix1/2005/1222/COPYRIGHT /COPYRIGHT diff: /dump/quenix1/2005/1222/COPYRIGHT: Input/output error [status 1] ; =20 Sorry for my very beginner question... regards, =2D-=20 GAGNON serge PGP KEY-ID: 0xBBC1478F PGP Fingerprint: B48B 4633 28F5 28F6 7A62 5650 69C8 E293 BBC1 478F PPG Key: http://quenix2.dyndns.org:7777 | telnet quenix2.dyndns.org 7777