volser-update-backup-times-20011009
authorJeffrey Hutzelman <jhutz@cmu.edu>
Tue, 9 Oct 2001 06:29:16 +0000 (06:29 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Oct 2001 06:29:16 +0000 (06:29 +0000)
update backup time when the backup is recloned

src/volser/volprocs.c

index 048eeed..71f686d 100644 (file)
@@ -626,6 +626,10 @@ char *newName;
     ClearVolumeStats(&V_disk(newvp));
     V_destroyMe(newvp) = DESTROY_ME;
     V_inService(newvp) = 0;
+    if (newType == backupVolume) {
+       V_backupDate(originalvp) = V_copyDate(newvp);
+       V_backupDate(newvp) = V_copyDate(newvp);
+    }
     V_inUse(newvp) = 0;
     VUpdateVolume(&error, newvp);
     if (error) {
@@ -779,6 +783,10 @@ afs_int32 cloneId;
     ClearVolumeStats(&V_disk(clonevp));
     V_destroyMe(clonevp) = 0;
     V_inService(clonevp) = 0;
+    if (newType == backupVolume) {
+       V_backupDate(originalvp) = V_copyDate(clonevp);
+       V_backupDate(clonevp) = V_copyDate(clonevp);
+    }
     V_inUse(clonevp) = 0;
     VUpdateVolume(&error, clonevp);
     if (error) {