Import TBBT (NFS trace replay).
[bluesky.git] / TBBT / trace_play / frag_collect
diff --git a/TBBT/trace_play/frag_collect b/TBBT/trace_play/frag_collect
new file mode 100755 (executable)
index 0000000..773e158
--- /dev/null
@@ -0,0 +1,15 @@
+nfs stop
+umount $1
+mount $1
+nfs start
+cd $1
+echo "find test1 -print >$3.1"
+find test1 -print > $3.1
+echo "sed -d s/^/show_inode_info / $3.1"
+sed -e "s/^/show_inode_info /" $3.1 >$3.2
+echo "open $2" >$3.3
+cat $3.2 >> $3.3
+echo "debugfs -f $3.3"
+debugfs -f $3.3 > $3.4
+#echo "frag_count $3.4 > $3.5"
+#frag_count $3.4 > $3.5