Plan 9 from Bell Labs’s /usr/web/sources/contrib/mycroftiv/unreleased/confighelper/ventiformatter

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# helps prepare venti disk

disk/mbr -m /386/mbr /dev/sdC1/data
disk/fdisk -baw /dev/sdC1/data
disk/prep -bw -a^(arenas isect bloom) /dev/sdC1/plan9
disk/format /dev/sdC1/plan9

touch /tmp/configfiles/newventi.conf
echo 'index newventi' >> /tmp/configfiles/newventi.conf
echo 'arenas /dev/sdC1/arenas' >> /tmp/configfiles/newventi.conf
echo 'isect /dev/sdC1/isect' >> /tmp/configfiles/newventi.conf
echo 'bloom /dev/sdC1/bloom' >> /tmp/configfiles/newventi.conf
echo 'mem 64m' >> /tmp/configfiles/newventi.conf
echo 'bcmem 96m' >> /tmp/configfiles/newventi.conf
echo 'icmem 128m' >> /tmp/configfiles/newventi.conf
echo 'httpaddr tcp!127.0.0.1!8000' >> /tmp/configfiles/newventi.conf

venti/fmtarenas arenas0 /dev/sdC1/arenas
venti/fmtisect isect0 /dev/sdC1/isect
venti/fmtbloom /dev/sdC1/bloom
venti/fmtindex /tmp/configfiles/newventi.conf

echo 'venti created on /dev/sdC1, config file at /tmp/configfiles/newventi.conf'
echo 'copy that config file to the desired directory and begin serving venti with venti/venti -c /path/to/newventi.conf'
exit

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].