Plan 9 from Bell Labs’s /usr/web/sources/contrib/de0u/root/sys/src/cmd/divergefs/tree

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


#!/bin/rc

rfork e

if (! test -f /bin/fs) fn rovlfs { /usr/chaokul/rovlfs/8.out $* }

switch($#*) {
#case 0; area=omni
case 1; area=$1 mnt=/sys/src
case 2; area=$1 mnt=$2
case *; echo usage: $0 area-name '[mntpnt]'; exit 'bad usage'
}

echo area $area...

dir=$home/trees/$area

test -d /tmp/$area || mkdir /tmp/$area
test -d $dir || mkdir $dir
test -d $dir/files || mkdir $dir/files

cat > $dir/rules << EOF
/tmp/$area ext<8>
/tmp/$area ext<q>
$home/trees/$area/files all<>
EOF

fs -f $dir/rules -h $dir/holedb $mnt

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.