It's not clear what MAXNAMELEN in ZFS compat environment means. Name indicates it's the maximum name length (for ZFS objects), but actual checks error out when requested name has the maximum length. In practice this makes it the maximum plus one: ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c: if (dsl_dataset_namelen(ds) + 1 + strlen(snapname) >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c: if (dsl_dir_namelen(ds->ds_dir) + 1 + strlen(newsnapname) >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dataset.c: if (strlen(oldname) + delta >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c: if (strlcat(zc->zc_name, "@", sizeof (zc->zc_name)) >= MAXNAMELEN) { ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c: if (strlen(propname) >= ZAP_MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c: if (strlen(propname) >= ZAP_MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c: if (strlen(nvpair_name(elem)) >= ZAP_MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c: if (strlen(path) >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c: if (p-path >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_dir.c: if (p-path >= MAXNAMELEN) ./sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c: if (strlen(path) >= MAXNAMELEN) { ./sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c: if (strlen(path) >= MAXNAMELEN) { ./sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c: if (end - start >= MAXNAMELEN) { ./sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c: if (strlen(pool) >= MAXNAMELEN) { ./cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c: } else if (p - volname >= ZFS_MAXNAMELEN) { ./cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c: if (strlen(nvpair_name(elem)) >= ZAP_MAXNAMELEN) {
Responsible Changed From-To: freebsd-bugs->freebsd-fs reclassify.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped
^Triage: I'm sorry that this PR did not get addressed in a timely fashion. By now, the version that it was created against is long out of support. As well, many newer versions of ZFS have been imported. Please re-open if it is still a problem on a supported version.