From e37ec7817aae9a856be527bd9c8b920c1a2dbc03 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 13 May 2013 06:45:34 -0400 Subject: [PATCH] vol: return VNOVNODE if vnode is not allocated If a request for a vnode fails because the vnode is not allocated within the volume, the error returned to the client should be VNOVNODE to indicate that the requested FID does not exist and not VIO indicating a transient disk i/o error or other transient internal inconsistency. Change-Id: I2f875593d4a49b7ca8ed26a2f147a1c3c9109a6d Reviewed-on: http://gerrit.openafs.org/9902 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/vol/vnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vol/vnode.c b/src/vol/vnode.c index 82d851c74..6983e8d86 100644 --- a/src/vol/vnode.c +++ b/src/vol/vnode.c @@ -979,7 +979,7 @@ VnLoad(Error * ec, Volume * vp, Vnode * vnp, if (LogLevel >= 5) Log("VnLoad: Couldn't read vnode %u, volume %" AFS_VOLID_FMT " (%s); read %d bytes, errno %d\n", Vn_id(vnp), afs_printable_VolumeId_lu(V_id(vp)), V_name(vp), (int)nBytes, errno); - *ec = VIO; + *ec = VNOVNODE; dosalv = 0; } goto error_encountered_nolock; -- 2.39.5