]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Create missing root directory when ORPH_ATTACH
authorAndrew Deason <adeason@sinenomine.net>
Wed, 3 Feb 2010 19:02:23 +0000 (13:02 -0600)
committerRuss Allbery <rra@debian.org>
Fri, 26 Mar 2010 19:27:13 +0000 (12:27 -0700)
commitfab17139e28fc8f80c1c08dd1bbc8cd07c6a74ee
treea7faabc9ad288d01254b1f93fa84bdb72fd18653
parentf3b69866463282e309069af93dc3f487336f5b82
Create missing root directory when ORPH_ATTACH

When we are salvaging with ORPH_ATTACH, orphans are normally attached to
a volume's root directory. If the volume is missing a root directory,
however, nothing is attached, and the volume can appear empty or
unusable.

So, to make it possible to get a useful volume out of a volume that lost
(only) its root directory, create a new root dir, and attach orphans to
that root.

FIXES 94658

Reviewed-on: http://gerrit.openafs.org/1235
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 32ebc44f42aad7dd77d42d07bfd891e8be6f1fff)

Change-Id: Ib74507e28630ce409f412b67f19d6008d215c6b0
Reviewed-on: http://gerrit.openafs.org/1613
Tested-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 135e196b6145d5d2ebddc1d65b3193d2b5c7cffb)
src/vol/vol-salvage.c