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 <neilb@suse.de>
This commit is contained in:
parent
0d255ff84e
commit
07de268426
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue