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.6.17^2~49 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=918fc9c4e65638447b24cc0eb603912dd6908234;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 ". Reviewed-on: http://gerrit.openafs.org/11468 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Reviewed-by: Daria Brashear Reviewed-by: Benjamin Kaduk (cherry picked from commit cb6de07fb8a12199ad0f1c4990f19074a9a54fcc) Change-Id: I65df02bc4f98d58ba1461d36e79be2f72098ef7c Reviewed-on: http://gerrit.openafs.org/11825 Reviewed-by: Daria Phoebe Brashear Tested-by: BuildBot Reviewed-by: Hans-Werner Paulsen Reviewed-by: Mark Vitale Reviewed-by: Stephan Wiesand --- diff --git a/src/volser/dumpstuff.c b/src/volser/dumpstuff.c index e1898da80..a3e8c7ae5 100644 --- a/src/volser/dumpstuff.c +++ b/src/volser/dumpstuff.c @@ -1045,7 +1045,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 3e20d8c2e..fc5f62e54 100644 --- a/src/volser/vol-dump.c +++ b/src/volser/vol-dump.c @@ -415,7 +415,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 */