From 66d086da413b922097a16ce894fd105c63cd9e70 Mon Sep 17 00:00:00 2001 From: Jeffrey Hutzelman Date: Tue, 9 Oct 2001 06:29:16 +0000 Subject: [PATCH] volser-update-backup-times-20011009 update backup time when the backup is recloned --- src/volser/volprocs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 048eeed651..71f686d4dd 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -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) {