From: Andrew Deason Date: Wed, 28 Jul 2010 22:47:21 +0000 (-0500) Subject: vol-bless: Detach, not put, volumes on completion X-Git-Tag: openafs-devel-1_5_76~69 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ec5f7f0e0284b38b86c32c2dfc842b08aca720ff;p=packages%2Fo%2Fopenafs.git vol-bless: Detach, not put, volumes on completion vol-bless was just calling VPutVolume when it was done blessing or unblessing a volume. Instead call VDetachVolume, so we actually give the volume back to the fileserver when we are done if !nofssync. Change-Id: Idc1e0c32cf5c1c9d2c130fee4b2f1a5f61ab1c3a Reviewed-on: http://gerrit.openafs.org/2477 Tested-by: Andrew Deason Reviewed-by: Derrick Brashear --- diff --git a/src/vol/vol-bless.c b/src/vol/vol-bless.c index 993cfa13d..18fdd0239 100644 --- a/src/vol/vol-bless.c +++ b/src/vol/vol-bless.c @@ -69,10 +69,10 @@ handleit(struct cmd_syndesc *as, void *arock) VUpdateVolume(&ec, vp); if (ec) { fprintf(stderr,"VUpdateVolume failed: %d\n", ec); - VPutVolume(vp); + VDetachVolume(&ec, vp); exit(1); } - VPutVolume(vp); + VDetachVolume(&ec, vp); return 0; }