]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
use V_creationDate in DumpHeader for R/O volumes
authorHans-Werner Paulsen <hans@MPA-Garching.MPG.DE>
Wed, 17 Sep 2014 07:41:16 +0000 (09:41 +0200)
committerStephan Wiesand <stephan.wiesand@desy.de>
Thu, 5 Nov 2015 09:54:34 +0000 (04:54 -0500)
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 <R/O volume>".

Reviewed-on: http://gerrit.openafs.org/11468
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Daria Brashear <shadow@your-file-system.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit cb6de07fb8a12199ad0f1c4990f19074a9a54fcc)

Change-Id: I65df02bc4f98d58ba1461d36e79be2f72098ef7c
Reviewed-on: http://gerrit.openafs.org/11825
Reviewed-by: Daria Phoebe Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Hans-Werner Paulsen <hans@mpa-garching.mpg.de>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/volser/dumpstuff.c
src/volser/vol-dump.c

index e1898da80c629e6cd23266de05b2b473b6208308..a3e8c7ae53f3b84fca9d0c1a37fb715bbcaf9a48 100644 (file)
@@ -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 */
index 3e20d8c2ef9a3e219207d76edaf82d9c81516afe..fc5f62e54c9eb745a2278af704bb943373a16b52 100644 (file)
@@ -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 */