volser-update-backup-times-20011009

update backup time when the backup is recloned
This commit is contained in:
Jeffrey Hutzelman 2001-10-09 06:29:16 +00:00 committed by Derrick Brashear
parent 342ae52c81
commit 66d086da41

View 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) {