]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: Do not offline volume on successful IH_DEC
authorAndrew Deason <adeason@sinenomine.net>
Thu, 5 Apr 2012 22:55:17 +0000 (17:55 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 10 May 2012 21:34:03 +0000 (14:34 -0700)
commita8eb0bfd04c4bc60cc37528b15f5a1e4cbe39b36
treea530e16cd33b788e4e04542fa935f83a8016940d
parent60d000794d7f00453817a34af4eac0b8b9f780a8
viced: Do not offline volume on successful IH_DEC

If we fail to CoW a file due to ENOSPC, we try to IH_DEC the new file
copy, and if IH_DEC fails, we take the volume offline for salvaging.
But IH_DEC returns 0 on success, not on error. So take the salvaging
path when we get non-zero.

Reviewed-on: http://gerrit.openafs.org/7054
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
(cherry picked from commit 613f14727fbb404fb7fc1cac953dda46b671222e)

Change-Id: I207ffc4db59bdbd8b80fa4ffad9210d13d76b68f
Reviewed-on: http://gerrit.openafs.org/7394
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/viced/afsfileprocs.c