env: add ReuseWritableFile
Add an environment method to reuse an existing file. Provide a generic
implementation that does a simple rename + open (writeable), and also a
posix variant that is more careful about error handling (if we fail to
open, do not rename, etc.).
Signed-off-by: NSage Weil <sage@redhat.com>
Showing
想要评论请 注册 或 登录