mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
salvage: Do not look at not-found root dir
If we have not found any root directory, don't even look at 'oldrootdir' or 'rootdir', since they will be uninitialized at this point. Change-Id: Ia1a7037e06a223a7e1fbc48c0bfadd3b7aaa0e4b Reviewed-on: http://gerrit.openafs.org/2528 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
1c002a5b5d
commit
56218cab39
@ -3908,7 +3908,7 @@ SalvageVolume(register struct InodeSummary *rwIsp, IHandle_t * alinkH)
|
|||||||
|
|
||||||
/* Delete the old rootinode directory if the rootdir was CopyOnWrite */
|
/* Delete the old rootinode directory if the rootdir was CopyOnWrite */
|
||||||
DFlush();
|
DFlush();
|
||||||
if (!oldrootdir.copied && rootdir.copied) {
|
if (rootdirfound && !oldrootdir.copied && rootdir.copied) {
|
||||||
code =
|
code =
|
||||||
IH_DEC(oldrootdir.ds_linkH, oldrootdir.dirHandle.dirh_inode,
|
IH_DEC(oldrootdir.ds_linkH, oldrootdir.dirHandle.dirh_inode,
|
||||||
oldrootdir.rwVid);
|
oldrootdir.rwVid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user