From ec5f7f0e0284b38b86c32c2dfc842b08aca720ff Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Wed, 28 Jul 2010 17:47:21 -0500 Subject: [PATCH] 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 --- src/vol/vol-bless.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5