OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-65-g6d74e3d
Gerrit Code Review
gerrit@openafs.org
Tue, 27 Feb 2018 22:03:54 -0500
The following commit has been merged in the master branch:
commit 6d74e3d6a1becf86cec30efc2d01a5692167afe1
Author: Michael Meffie <mmeffie@sinenomine.net>
Date: Tue Feb 20 11:51:01 2018 -0500
afs: improve -volume-ttl error messages
Change the afs call which sets the volume ttl value to return EFAULT
instead of EINVAL when given an out of range value for the volume ttl
parameter. This is more consistent with the other op codes, which
return EFAULT when given an out of range parameter and allows the caller
to distinguish between an invalid opcode and a bad parameter.
Move the volume ttl range constants to afs_args.h, which is where
constants related to the op codes are supposed to be defined. This makes
the constants available to the caller in afsd.c as well as the
implementation in afs_call.c.
Update afsd to print a more sensible error message when the volume ttl
set calls fails due to an out of range parameter.
Change-Id: I6b3ab7d38a60464017daf06f70080a90d2a7a429
Reviewed-on: https://gerrit.openafs.org/12918
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afs/afs.h | 4 ----
src/afs/afs_call.c | 2 +-
src/afsd/afsd.c | 16 ++++++++++++++--
src/config/afs_args.h | 3 +++
4 files changed, 18 insertions(+), 7 deletions(-)
--
OpenAFS Master Repository