HomeFreeBSD

Fix vn_open/vn_rdwr error handling

Description

Fix vn_open/vn_rdwr error handling

  1. In vn_open(), if fstat64() returned an error, the real errno

was being obscured by calling close().

  1. Add error handling for both pwrite64() calls in vn_rdwr().

Signed-off-by: Ricardo M. Correia <Ricardo.M.Correia@Sun.COM>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>

Details

Provenance
Ricardo M. Correia <Ricardo.M.Correia@Sun.COM>Authored on Aug 26 2010, 5:21 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 31 2010, 3:38 PM
Parents
rG235db0aceaa0: Fix deadcode
Branches
Unknown
Tags
Unknown