multipath: remove unnecessary fds from alias code
authorBenjamin Marzinski <bmarzins@redhat.com>
Fri, 8 Jun 2012 17:28:28 +0000 (12:28 -0500)
committerChristophe Varoqui <christophe.varoqui@opensvc.com>
Sat, 9 Jun 2012 07:46:49 +0000 (09:46 +0200)
commit1ef46588784b582f7f4c7fd890a1e093704528ee
treebd72be82273c67b07c7fb4ed7abd9b8dcf0aafbb
parenta00088a0162fe96d647c42902a9f86c4950b907f
multipath: remove unnecessary fds from alias code

Originally, the alias code duped the bindings file fd so that a stream could
be opened on it, and then closed without closing the original fd. Later,
closing the stream was moved to the end of the function, to avoid a locking
bug.  Because of this, there isn't any point to duping the fd.  Also, since
the stream is still opened when the original fd is used, the stream
should be flushed after its done being used.

Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
libmultipath/alias.c