From: Hans-Werner Paulsen Date: Wed, 17 Sep 2014 07:41:16 +0000 (+0200) Subject: use V_creationDate in DumpHeader for R/O volumes X-Git-Tag: upstream/1.8.0_pre1^2~375 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=cb6de07fb8a12199ad0f1c4990f19074a9a54fcc;p=packages%2Fo%2Fopenafs.git use V_creationDate in DumpHeader for R/O volumes This patch modifies a patch committed as 1e6fb1b7b7, the dumpTimes.to is now set to creationDate for R/O volumes. The old value copyDate is wrong, if the R/O volumes is re-cloned. This does not happen with "vos dump -clone", but may happen with dumping a R/O volume directly: "vos dump ". Change-Id: Ia3ae7e1ae4a22aa47f0f28fac45077ff6789e720 Reviewed-on: http://gerrit.openafs.org/11468 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Daria Brashear Reviewed-by: Benjamin Kaduk --- diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index bc1fe9fea..3835031a9 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -1042,7 +1042,7 @@ DumpDumpHeader(struct iod *iodp, Volume * vp, dumpTimes[1] = V_updateDate(vp); /* until last update */ break; case readonlyVolume: - dumpTimes[1] = V_copyDate(vp); /* until clone was made */ + dumpTimes[1] = V_creationDate(vp); /* until clone was updated */ break; case backupVolume: dumpTimes[1] = V_backupDate(vp); /* until backup was made */ diff --git a/src/volser/vol-dump.c b/src/volser/vol-dump.c index 56b4657c8..c78f1c5d4 100644 --- a/src/volser/vol-dump.c +++ b/src/volser/vol-dump.c @@ -380,7 +380,7 @@ DumpDumpHeader(int dumpfd, Volume * vp, afs_int32 fromtime) dumpTimes[1] = V_updateDate(vp); /* until last update */ break; case readonlyVolume: - dumpTimes[1] = V_copyDate(vp); /* until clone was made */ + dumpTimes[1] = V_creationDate(vp); /* until clone was updated */ break; case backupVolume: dumpTimes[1] = V_backupDate(vp); /* until backup was made */