Handle _PC_FILESIZEBITS and _PC_NO_TRUNC for smbfs' VOP_PATHCONF().
MFC after: 1 month Sponsored by: Chelsio Communications
This commit is contained in:
parent
853b3a8ae8
commit
4a62795260
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326990
@ -901,6 +901,12 @@ smbfs_pathconf (ap)
|
||||
switch (ap->a_name) {
|
||||
case _PC_LINK_MAX:
|
||||
*retval = 0;
|
||||
case _PC_FILESIZEBITS:
|
||||
if (vcp->vc_sopt.sv_caps & (SMB_CAP_LARGE_READX |
|
||||
SMB_CAP_LARGE_WRITEX))
|
||||
*retval = 64;
|
||||
else
|
||||
*retval = 32;
|
||||
break;
|
||||
case _PC_NAME_MAX:
|
||||
*retval = (vcp->vc_hflags2 & SMB_FLAGS2_KNOWS_LONG_NAMES) ? 255 : 12;
|
||||
@ -908,6 +914,9 @@ smbfs_pathconf (ap)
|
||||
case _PC_PATH_MAX:
|
||||
*retval = 800; /* XXX: a correct one ? */
|
||||
break;
|
||||
case _PC_NO_TRUNC:
|
||||
*retval = 1;
|
||||
break;
|
||||
default:
|
||||
error = vop_stdpathconf(ap);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user