]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Make namei convertROtoRW'd volumes usable
authorAndrew Deason <adeason@sinenomine.net>
Wed, 7 Oct 2009 17:14:11 +0000 (12:14 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Thu, 8 Oct 2009 20:23:00 +0000 (13:23 -0700)
commit10441428634e6f474457a1fbf38ea693279d1ad1
tree53d7c5cb7bd8167c843d5cc62e47c0b0a7d0807d
parentdcb60b82fa2e216d02587fe349a4405146661c93
Make namei convertROtoRW'd volumes usable

Right now, if you convertROtoRW a volume on namei, the converted volume
appears to need a salvage before it is usable, and the header of the old
(now empty) RO volume is kept around. Fix this:

 -- Set inUse = 0 on the converted volume, so the fileserver will be
    able to attach the volume when we give it back

 -- Unlink the RO header file, instead of trying to unlink the
    VI_VOLINFO file twice

 -- Log the actual error code (errno) in the error message for the last
    unlink

Reviewed-on: http://gerrit.openafs.org/591
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 906403c6d770026fd9da606ea468e47ee911f896)
Reviewed-on: http://gerrit.openafs.org/613
src/vol/namei_ops.c