salvager: Create link table with volume group id
authorAndrew Deason <adeason@sinenomine.net>
Fri, 2 Dec 2011 20:36:59 +0000 (14:36 -0600)
committerDerrick Brashear <shadow@dementix.org>
Sat, 3 Dec 2011 14:15:08 +0000 (06:15 -0800)
commitae227049fca2519e1f5ae1e8b68efbff10ebb665
tree6a409e081ae8ef3234ee6ba08579902f6da64d98
parent53230846a202a50f6c3a61b38d62ccba8876f89d
salvager: Create link table with volume group id

The link table needs to be created with the VG id or RW vol id, not
the non-RW vol id. Unlike other special inodes, this goes for both the
'parent' and 'volume' volume ids, not just the 'parent' id, since
there is only one link table per VG.

Without this, the salvager can generate invalid linktable special
inodes if it encounters a VG with no inodes for the RW vol.

Change-Id: I10725c514ef1b8a5b09a506e42596b51b74af5a2
Reviewed-on: http://gerrit.openafs.org/6179
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/vol/vol-salvage.c