X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafsd%2Fafsd.c;h=b3f2fc56b0ce4ba7d944ec49c0388e99f6c498f1;hp=46921728a1498f9e4b72512f73e10a116b08e90c;hb=6d74e3d6a1becf86cec30efc2d01a5692167afe1;hpb=278581c24a802834719e0d57f27978321556c9bb diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index 4692172..b3f2fc5 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2433,8 +2433,20 @@ afsd_run(void) if (afsd_verbose) printf("%s: Calling AFSOP_SET_VOLUME_TTL with '%d'\n", rn, volume_ttl); code = afsd_syscall(AFSOP_SET_VOLUME_TTL, volume_ttl); - if (code != 0) - printf("%s: Error setting volume ttl to %d seconds; code=%d.\n", rn, volume_ttl, code); + if (code == EFAULT) { + if (volume_ttl < AFS_MIN_VOLUME_TTL) + printf("%s: Failed to set volume ttl to %d seconds; " + "value is too low.\n", rn, volume_ttl); + else if (volume_ttl > AFS_MAX_VOLUME_TTL) + printf("%s: Failed to set volume ttl to %d seconds; " + "value is too high.\n", rn, volume_ttl); + else + printf("%s: Failed to set volume ttl to %d seconds; " + "value is out of range.\n", rn, volume_ttl); + } else if (code != 0) { + printf("%s: Failed to set volume ttl to %d seconds; " + "code=%d.\n", rn, volume_ttl, code); + } } /*