Whamcloud - gitweb
Script to set MDS, OST, client to wildly different dates for mtime testing.
authoradilger <adilger>
Mon, 25 Aug 2003 23:09:20 +0000 (23:09 +0000)
committeradilger <adilger>
Mon, 25 Aug 2003 23:09:20 +0000 (23:09 +0000)
Then, dates in the filesystem that are 1973 are MDS, 1976 are OST, and those
in Aug (1979) are the client.  These also conveniently appear as ~101010101,
~202020202, and ~303030303 in unix time format (seconds since epoch).

lustre/tests/set_dates.sh [new file with mode: 0644]

diff --git a/lustre/tests/set_dates.sh b/lustre/tests/set_dates.sh
new file mode 100644 (file)
index 0000000..b2a9979
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+[ `hostname` = "uml1" ] && date --set="Mar 14 20:21:41 MDT 1973" #101010101
+[ `hostname` = "uml2" ] && date --set="May 26 22:43:22 MDT 1976" #202020202
+[ `hostname` = "uml3" ] && date --set="Aug  9 01:05:03 MDT 1979" #303030303