linux: core dump requires write fop
authorDerrick Brashear <shadow@your-file-system.com>
Fri, 13 Sep 2013 15:13:05 +0000 (11:13 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Fri, 13 Sep 2013 17:00:07 +0000 (10:00 -0700)
turns out not just writev is unhappy with aio_write (only); core dumping
wants a write file op. always provide it.

FIXES 131729

Change-Id: If099f83973825981b4c568db7572bf30d399c089
Reviewed-on: http://gerrit.openafs.org/10251
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>

acinclude.m4
src/afs/LINUX/osi_vnodeops.c

index d9f5baa..99bb234 100644 (file)
@@ -836,7 +836,6 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
                 AC_CHECK_LINUX_STRUCT([cred], [session_keyring], [cred.h])
                 AC_CHECK_LINUX_STRUCT([ctl_table], [ctl_name], [sysctl.h])
                 AC_CHECK_LINUX_STRUCT([dentry_operations], [d_automount], [dcache.h])
-                AC_CHECK_LINUX_STRUCT([file_operations], [writev], [fs.h])
                 AC_CHECK_LINUX_STRUCT([inode], [i_alloc_sem], [fs.h])
                 AC_CHECK_LINUX_STRUCT([inode], [i_blkbits], [fs.h])
                 AC_CHECK_LINUX_STRUCT([inode], [i_blksize], [fs.h])
index 88d2430..f12304a 100644 (file)
@@ -802,10 +802,8 @@ struct file_operations afs_file_fops = {
 #ifdef HAVE_LINUX_GENERIC_FILE_AIO_READ
   .aio_read =  afs_linux_aio_read,
   .aio_write = afs_linux_aio_write,
-#ifdef STRUCT_FILE_OPERATIONS_HAS_WRITEV
   .read =      do_sync_read,
   .write =     do_sync_write,
-#endif
 #else
   .read =      afs_linux_read,
   .write =     afs_linux_write,