OpenAFS Master Repository branch, openafs-stable-1_8_x, updated. openafs-stable-1_8_0-60-g37daf10
Gerrit Code Review
gerrit@openafs.org
Fri, 8 Jun 2018 08:40:15 -0400
The following commit has been merged in the openafs-stable-1_8_x branch:
commit 37daf101007e92038560913b56ac0330fce3d230
Author: Michael Meffie <mmeffie@sinenomine.net>
Date: Mon Apr 25 11:19:10 2016 -0400
Windows: define AFS_IHANDLE_PIO_ENV for ihandle pio
Support for positional i/o in the ihandle package was added to the
windows platform in commit 50b6a116a1c412d0e6d7442d13d6e92c9dbb35ee
using native windows functions. That commit also defined HAVE_PIO in
the windows version of the afsconfig.h file. Unfortunately, that
definition of HAVE_PIO is not limited to the ihandle package.
Remove the project-wide HAVE_PIO definition from the windows afsconfig.h
file and define the new AFS_IHANDLE_PIO_ENV symbol when position i/o
support is available in the ihandle package.
Build the fallback ih_pread and ih_pwrite functions (which use lseek)
only when positional i/o is not available in the ihandle package for the
current platform.
Use AFS_IHANDLE_PIO_ENV instead of HAVE_PIO in ih_open() to determine
when it is is safe to share ihandles among threads.
Reviewed-on: https://gerrit.openafs.org/12270
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 759f29cfdfabed4dc5c1b96a0b2b79a3f83c08e3)
Change-Id: Ic64f9e65b10fbe6f7650eff852d5a7e20762ef10
Reviewed-on: https://gerrit.openafs.org/13148
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/config/afsconfig-windows.h | 2 +-
src/vol/ihandle.c | 10 +++++-----
src/vol/ihandle.h | 28 ++++++++++++++--------------
3 files changed, 20 insertions(+), 20 deletions(-)
--
OpenAFS Master Repository