Advertisement
Guest User

TouchScript to reproduce encfs error

a guest
Aug 4th, 2011
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.43 KB | None | 0 0
  1. mountdir=/tmp/mount
  2. no_of_dirs=1000;
  3. no_of_files=10000;
  4. dcounter=1;
  5. while [[ $dcounter -le $no_of_dirs ]];
  6.   do echo Creating directory no $dcounter
  7.     fcounter=1;
  8.     mkdir $mountdir/random-dir-$dcounter
  9.  
  10.     while [[ $fcounter -le $no_of_files ]];
  11.      do echo Creating file no $fcounter;
  12.       touch $mountdir/random-dir-$dcounter/random-file.$fcounter;
  13.       let "fcounter += 1";
  14.      done
  15.  
  16.     let "dcounter += 1";
  17.   done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement