mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
volser: allow clonevol purge id to be new id
effectively the same functionality that reclone already uses, but for some reason we artificially limit it out of clone despite the interface being there for it. it used to be there. put it back. Change-Id: I22868c41f8d3b920ba61d01e5334ff2320b38376 Reviewed-on: http://gerrit.openafs.org/6250 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Alistair Ferguson <alistair.ferguson@mac.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
f1de04f3b3
commit
641c674736
@ -782,13 +782,17 @@ VolClone(struct rx_call *acid, afs_int32 atrans, afs_uint32 purgeId,
|
||||
salv_vp = originalvp;
|
||||
#endif
|
||||
|
||||
newvp =
|
||||
VCreateVolume(&error, originalvp->partition->name, newId,
|
||||
V_parentId(originalvp));
|
||||
if (error) {
|
||||
Log("1 Volser: Clone: Couldn't create new volume; clone aborted\n");
|
||||
newvp = (Volume *) 0;
|
||||
goto fail;
|
||||
if (purgeId == newId) {
|
||||
newvp = purgevp;
|
||||
} else {
|
||||
newvp =
|
||||
VCreateVolume(&error, originalvp->partition->name, newId,
|
||||
V_parentId(originalvp));
|
||||
if (error) {
|
||||
Log("1 Volser: Clone: Couldn't create new volume; clone aborted\n");
|
||||
newvp = (Volume *) 0;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
if (newType == readonlyVolume)
|
||||
V_cloneId(originalvp) = newId;
|
||||
|
Loading…
Reference in New Issue
Block a user