From 07de2684262d924820b174070592d694723572d2 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 9 Apr 2014 17:11:57 +1000 Subject: [PATCH] DDF: update timestamp in DDF header. Doco says: Header update timestamp. MUST be set when the DDF header is updated. So I guess we should. Signed-off-by: NeilBrown --- super-ddf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/super-ddf.c b/super-ddf.c index 414bdef..598c43b 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3107,6 +3107,7 @@ static int _write_super_to_disk(struct ddf_super *ddf, struct dl *d) ddf->anchor.secondary_lba = cpu_to_be64(size - 32*1024*2); ddf->anchor.seq = ddf->active->seq; + ddf->anchor.timestamp = cpu_to_be32(time(0) - DECADE); memcpy(&ddf->primary, &ddf->anchor, 512); memcpy(&ddf->secondary, &ddf->anchor, 512);