Import TBBT (NFS trace replay).
[bluesky.git] / TBBT / trace_play / frag_collect_cust
diff --git a/TBBT/trace_play/frag_collect_cust b/TBBT/trace_play/frag_collect_cust
new file mode 100755 (executable)
index 0000000..24d9c62
--- /dev/null
@@ -0,0 +1,14 @@
+#This is to collect info for something other than test1
+#test1 is hard-coded in frag_collect
+nfs stop
+umount $1
+mount $1
+nfs start
+echo "sed -d s/^/show_inode_info / $3"
+sed -e "s/^/show_inode_info /" $3 >$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