]> git.michaelhowe.org Git - packages/o/openafs.git/commit
ihandle: Refactor ih_open to split out ih_attachfd
authorAndrew Deason <adeason@sinenomine.net>
Thu, 30 May 2013 22:52:32 +0000 (17:52 -0500)
committerStephan Wiesand <stephan.wiesand@desy.de>
Tue, 24 Sep 2013 12:38:31 +0000 (05:38 -0700)
commit2c619d2105ed3d0846640a48c0c4a8d687691c8d
treed89cc70be2ad117dd08b74d3d7aaf1db1bf368bf
parent2d1ed3a1108de01ac6a967daf3fc71646703b9f2
ihandle: Refactor ih_open to split out ih_attachfd

Refactor the function ih_open, so part of its logic gets split out
into the new ih_attachfd_r (and ih_attachfd) function. This allows
other code to splice in an existing fd, without going through the
normal "open" path.

This patch should incur no functional change; it is just code
reorganization.

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

Change-Id: I40bb515b5c822c3be3d3819c0183091753c41dea
Reviewed-on: http://gerrit.openafs.org/10176
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/ihandle.c
src/vol/ihandle.h