zfs/config
Brian Behlendorf dfc166d174 Limit sysfs name to KOBJ_NAME_LEN
It appears that in earlier kernels the maximum name length of a
kobject was KOBJ_NAME_LEN (20) bytes.  This was later extended to
dynamically allocate enough memory if it was over KOBJ_NAME_LEN,
and finally it was always made dynamic.  Unfortunately, util this
last step happened it doesn't look like it always safe to use
names larger than KOBJ_NAME_LEN.  For example, under the RHEL5
2.6.18 kernel if the kobject name length exceeds KOBJ_NAME_LEN
a NULL dereference is tripped.

To avoid this issue the build system has been update to check
to see if KOBJ_NAME_LEN is defined.  If it is we have to assume
the maximum kobject name length is only 20 bytes.  This 20 byte
name must minimally include the following components.

  <zpool>/<dataset>[@snapshot[partition]]
2010-08-09 16:44:41 -07:00
..
Makefile.am Use old autoconf stratagy 2008-12-15 16:27:22 -08:00
Rules.am Only make compiler warnings fatal with --enable-debug 2010-07-14 10:41:48 -07:00
config.awk Allow zfs_config.h to be included by dependant packages (updated) 2010-03-22 16:42:18 -07:00
deb.am Add Debian and Slackware style packaging via alien 2010-07-28 09:37:04 -07:00
kernel-bdev-block-device-operations.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-bdev-logical-size.m4 Linux 2.6.31 logical block size compatibility. 2009-11-12 12:49:01 -08:00
kernel-bio-empty-barrier.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-bio-end-io-t-args.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-bio-rw-syncio.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-end-request.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-fetch-request.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-requeue-request.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-rq-bytes.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-blk-rq-pos.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-blk-rq-sectors.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-fmode-t.m4 Add a check for the fmode_t type. 2009-12-23 14:42:32 -08:00
kernel-get-disk-ro.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel-invalidate-bdev-args.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-kobj-name-len.m4 Limit sysfs name to KOBJ_NAME_LEN 2010-08-09 16:44:41 -07:00
kernel-open-bdev-exclusive.m4 Required autoconf support for vdev_disk integration with 2.6.30 kernels. 2009-07-29 17:14:23 -07:00
kernel-rq-for-each_segment.m4 Additional ZVOL compatibility autoconf checks and zconfig ZVOL sanity test. 2009-11-20 10:04:56 -08:00
kernel-rq-is_sync.m4 Add autoconf checks for zvol integration. 2009-11-16 10:31:10 -08:00
kernel.m4 Limit sysfs name to KOBJ_NAME_LEN 2010-08-09 16:44:41 -07:00
rpm.am Add Debian and Slackware style packaging via alien 2010-07-28 09:37:04 -07:00
tgz.am Add Debian and Slackware style packaging via alien 2010-07-28 09:37:04 -07:00
user-arch.m4 Move user-arch.m4 change from linux-libspl to zfs-branch. 2010-05-18 12:26:48 -07:00
user-frame-larger-than.m4 Add configure check for -Wframe-larger-than=<size> 2010-06-29 16:53:02 -07:00
user-ioctl.m4 Properly detect and set HAVE_GPL_ONLY_SYMBOLS based on license 2009-02-03 09:59:54 -08:00
user-libblkid.m4 Additional build system update for libefi library. 2009-10-14 15:47:41 -07:00
user-libshare.m4 Moving addition configure checks to m4 macros 2008-12-15 16:46:34 -08:00
user-libuuid.m4 Fix error message to reference the new libuuid package. 2010-05-20 10:00:03 -07:00
user-nptl_guard_within_stack.m4 Autoconf check for buggy stack guard region 2010-07-23 11:35:20 -07:00
user-zlib.m4 Update build system for libblkid integration 2009-10-15 16:25:18 -07:00
user.m4 Autoconf check for buggy stack guard region 2010-07-23 11:35:20 -07:00
zfs-build.m4 Add splat module to zfs.sh script 2010-07-28 16:47:30 -07:00
zfs-meta.m4 Configure checks for kernel build options incompatible with the license 2010-03-08 10:27:42 -08:00