head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	2003.07.14.07.12.31;	author zubair;	state dead;
branches;
next	1.1;

1.1
date	2003.07.14.02.48.02;	author zubair;	state Exp;
branches;
next	;


desc
@@


1.2
log
@
mount -t unionfs -o dirs=b1:b2:b3:b4:b5:b6:b7,debug=18 null /mnt/unionfs

am-utils' files/directories were divided equally among 7 branches (All
branches having same number of files/dirs except last branch if cant divide equally)

tar cvf am-utils-6.1-20030713.tar.gz /mnt/unionfs/*

gives the same tarball (same size) as the original tarball.


diff -ruN /mnt/unionfs/* am-utils-6.1-20030713

gives no output, indicating no difference between the two


buildall, configure and then make all work without error on /mnt/unionfs,
same number of files are produced
@
text
@#!/bin/sh

echo "Enter the tarbal's path"
read tarball
echo "Number of branches:"
read N

#echo $tarball
#echo $N

rm -Rf tmp
mkdir tmp
cd tmp
tar xvfz ../$tarball

dir=`ls`
echo $dir

cd $dir

numfiles=`ls -al | wc -l`

echo "Total files = $numfiles"


a=`expr $numfiles / $N`

echo "each will have $a"

mod=`expr $numfiles / $N`



for (( i=1; i<=$N; i++))
do
	@@mkdir b$i
done




for i in `ls -a`
do
	echo "file= $i"
done

@


1.1
log
@script to test unionfs: Give a tarball path and N, the number of branches of unionfs, distributes package's files equally (for now) among the branches. not completed
@
text
@@

