]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux: core dump requires write fop
authorDerrick Brashear <shadow@your-file-system.com>
Fri, 13 Sep 2013 15:13:05 +0000 (11:13 -0400)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 25 Sep 2013 16:30:18 +0000 (09:30 -0700)
turns out not just writev is unhappy with aio_write (only); core dumping
wants a write file op. always provide it.

FIXES 131729

Reviewed-on: http://gerrit.openafs.org/10251
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
(cherry picked from commit 13165c05836bcd4b3f5655ab2bcc979ff859efa2)

Change-Id: I35f16004164af79621307de1973d25e75b01ec2c
Reviewed-on: http://gerrit.openafs.org/10254
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
acinclude.m4
src/afs/LINUX/osi_vnodeops.c

index 670fe48904bfe4cc3badbc3195af9c0e4c4a9c07..86ff65bfbbae8e52e526782450a853223743c464 100644 (file)
@@ -820,7 +820,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 825ad51111b291e2666daf52e2d5cd337bfdfa92..437cd312bbb5da65573befeaabe5fa9db5f858a3 100644 (file)
@@ -791,10 +791,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,