svn commit: r324224 - head/sys/fs/cd9660
John Baldwin
jhb at FreeBSD.org
Mon Oct 2 23:12:03 UTC 2017
Author: jhb
Date: Mon Oct 2 23:12:02 2017
New Revision: 324224
URL: https://svnweb.freebsd.org/changeset/base/324224
Log:
Handle _PC_FILESIZEBITS and _PC_SYMLINK_MAX pathconf() requests in cd9660.
cd9660 only supports symlinks with Rock Ridge extensions, so
_PC_SYMLINK_MAX is conditional on Rock Ridge.
Sponsored by: Chelsio Communications
Modified:
head/sys/fs/cd9660/cd9660_vnops.c
Modified: head/sys/fs/cd9660/cd9660_vnops.c
==============================================================================
--- head/sys/fs/cd9660/cd9660_vnops.c Mon Oct 2 22:39:12 2017 (r324223)
+++ head/sys/fs/cd9660/cd9660_vnops.c Mon Oct 2 23:12:02 2017 (r324224)
@@ -783,6 +783,9 @@ cd9660_pathconf(ap)
{
switch (ap->a_name) {
+ case _PC_FILESIZEBITS:
+ *ap->a_retval = 32;
+ return (0);
case _PC_LINK_MAX:
*ap->a_retval = 1;
return (0);
@@ -792,6 +795,12 @@ cd9660_pathconf(ap)
else
*ap->a_retval = 37;
return (0);
+ case _PC_SYMLINK_MAX:
+ if (VTOI(ap->a_vp)->i_mnt->iso_ftype == ISO_FTYPE_RRIP) {
+ *ap->a_retval = MAXPATHLEN;
+ return (0);
+ }
+ return (EINVAL);
case _PC_NO_TRUNC:
*ap->a_retval = 1;
return (0);
More information about the svn-src-all
mailing list