1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-31 16:57:10 +00:00

Clean up coda_pathconf() slightly while debugging a problem there.

MFC after:	1 month
This commit is contained in:
Robert Watson 2008-02-11 00:01:45 +00:00
parent d7b63faf0c
commit 4f52b754df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=176156

View File

@ -1768,21 +1768,17 @@ make_coda_node(CodaFid *fid, struct mount *vfsp, short type)
int
coda_pathconf(struct vop_pathconf_args *ap)
{
int error;
register_t *retval;
retval = ap->a_retval;
error = 0;
switch (ap->a_name) {
case _PC_NAME_MAX:
*retval = CODA_MAXNAMLEN;
break;
*ap->a_retval = CODA_MAXNAMLEN;
return (0);
case _PC_PATH_MAX:
*retval = CODA_MAXPATHLEN;
break;
*ap->a_retval = CODA_MAXPATHLEN;
return (0);
default:
error = vop_stdpathconf(ap);
break;
return (vop_stdpathconf(ap));
}
return (error);
}