* [PATCH] xfstests: delay before dumps for incremental tests
@ 2011-10-31 15:02 Bill Kendall
0 siblings, 0 replies; only message in thread
From: Bill Kendall @ 2011-10-31 15:02 UTC (permalink / raw)
To: xfs
To get reproducible results when testing incremental backups, files
contained in a backup should not have the same timestamp (at second
resolution) as the backup itself. If they do, those files will also
be included in the incremental backup, and this will likely cause
issues in the expected output of the test. This patch adds a sleep
to test 024 prior to doing the level 0 backup. The other incremental
tests already include similar delays.
Signed-off-by: Bill Kendall <wkendall@sgi.com>
---
024 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/024 b/024
index de5ab5f..64b59bc 100755
--- a/024
+++ b/024
@@ -42,6 +42,8 @@ _supported_os Linux
_require_tape $TAPE_DEV
_create_dumpdir_fill
+# ensure file/dir timestamps precede dump timestamp
+sleep 2
src/bstat $SCRATCH_MNT >>$here/$seq.full
_erase_hard
_do_dump
--
1.7.0.4
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-10-31 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31 15:02 [PATCH] xfstests: delay before dumps for incremental tests Bill Kendall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.