From cb6de07fb8a12199ad0f1c4990f19074a9a54fcc Mon Sep 17 00:00:00 2001 From: Hans-Werner Paulsen Date: Wed, 17 Sep 2014 09:41:16 +0200 Subject: [PATCH] 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 --- src/volser/dumpstuff.c | 2 +- src/volser/vol-dump.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5