summaryrefslogtreecommitdiffstats
path: root/Geo-rep-scripts/node_fop_truncate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Geo-rep-scripts/node_fop_truncate.sh')
-rw-r--r--Geo-rep-scripts/node_fop_truncate.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/Geo-rep-scripts/node_fop_truncate.sh b/Geo-rep-scripts/node_fop_truncate.sh
new file mode 100644
index 0000000..091ffb2
--- /dev/null
+++ b/Geo-rep-scripts/node_fop_truncate.sh
@@ -0,0 +1,11 @@
+source ./config
+fop="truncate"
+mkdir $MNT_PT/d1/d2/d3/d4/d5 -p
+echo "hello..this is called a truncate test file." > $MNT_PT/d1/d2/d3/d4/d5/file.txt
+echo "Before $fop"
+$XTIME_PATH/xtime.rb $MNT_PT_NEG_PID
+show_backend
+echo "AFTER $fop"
+truncate -s $TRUNCATE_SIZE $MNT_PT/d1/d2/d3/d4/d5/file.txt
+$XTIME_PATH/xtime.rb $MNT_PT_NEG_PID
+show_backend