]> 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>
Fri, 4 Oct 2013 09:35:21 +0000 (02:35 -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)

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>
(cherry picked from commit 8cef9359cd3ff5bd7c36465e09a6d616f70f3cd0)

Change-Id: Id0f0e3f56d29d8739b875f794a3204f551aac7a4
Reviewed-on: http://gerrit.openafs.org/10279
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: Stephan Wiesand <stephan.wiesand@desy.de>
acinclude.m4
src/afs/LINUX/osi_vnodeops.c

index 38011cd22d2d0c52b0cb6bf659d80083daaef4a7..6652b0cbb82aababa55aec8331f6ea0f601cae43 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 2d5a08d1a07ae33e479c2e4e9e4a8091bc8fc8ba..78b98ba5e0289f5aad44a793a4555f3550692f92 100644 (file)
@@ -779,10 +779,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,