Skip to content

Instantly share code, notes, and snippets.

@jsingle
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsingle/78d80b7ecdbe41e6773b to your computer and use it in GitHub Desktop.
Save jsingle/78d80b7ecdbe41e6773b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
top_dir=~/nfs_test
mkdir -p nfs_test
num_dirs=100
num_files=100
for i in `seq 1 $num_dirs`; do
mkdir $top_dir/$i
for j in `seq 1 $num_files`; do
dd if=/dev/random of=$top_dir/$i/$j count=$j > /dev/null 2>/dev/null
done
echo "Done $i of $num_dirs"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment