mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
volser-update-backup-times-20011009
update backup time when the backup is recloned
This commit is contained in:
parent
342ae52c81
commit
66d086da41
@ -626,6 +626,10 @@ char *newName;
|
|||||||
ClearVolumeStats(&V_disk(newvp));
|
ClearVolumeStats(&V_disk(newvp));
|
||||||
V_destroyMe(newvp) = DESTROY_ME;
|
V_destroyMe(newvp) = DESTROY_ME;
|
||||||
V_inService(newvp) = 0;
|
V_inService(newvp) = 0;
|
||||||
|
if (newType == backupVolume) {
|
||||||
|
V_backupDate(originalvp) = V_copyDate(newvp);
|
||||||
|
V_backupDate(newvp) = V_copyDate(newvp);
|
||||||
|
}
|
||||||
V_inUse(newvp) = 0;
|
V_inUse(newvp) = 0;
|
||||||
VUpdateVolume(&error, newvp);
|
VUpdateVolume(&error, newvp);
|
||||||
if (error) {
|
if (error) {
|
||||||
@ -779,6 +783,10 @@ afs_int32 cloneId;
|
|||||||
ClearVolumeStats(&V_disk(clonevp));
|
ClearVolumeStats(&V_disk(clonevp));
|
||||||
V_destroyMe(clonevp) = 0;
|
V_destroyMe(clonevp) = 0;
|
||||||
V_inService(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;
|
V_inUse(clonevp) = 0;
|
||||||
VUpdateVolume(&error, clonevp);
|
VUpdateVolume(&error, clonevp);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user