提交 f12bfc5e 编写于 作者: D Daniel P. Berrange

logging: allow inode/offset params to be NULL

Not all callers of virLogManagerDomainOpenLogFile will
care about getting the current inode/offset, so we should
allow those parameters to be NULL
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 ab3f1428
......@@ -196,7 +196,9 @@ virLogManagerDomainOpenLogFile(virLogManagerPtr mgr,
goto cleanup;
}
if (inode)
*inode = ret.pos.inode;
if (offset)
*offset = ret.pos.offset;
rv = fdout[0];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册