mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-14 05:57:26 +03:00
bhyve: process: don't bother seeking to end of log
The file is opened O_APPEND. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
This commit is contained in:
parent
679fcfe969
commit
fd54da1ef2
@ -101,8 +101,6 @@ virBhyveProcessStart(virConnectPtr conn,
|
|||||||
char *devicemap = NULL;
|
char *devicemap = NULL;
|
||||||
char *logfile = NULL;
|
char *logfile = NULL;
|
||||||
int logfd = -1;
|
int logfd = -1;
|
||||||
off_t pos = -1;
|
|
||||||
char ebuf[1024];
|
|
||||||
virCommandPtr cmd = NULL;
|
virCommandPtr cmd = NULL;
|
||||||
virCommandPtr load_cmd = NULL;
|
virCommandPtr load_cmd = NULL;
|
||||||
bhyveConnPtr driver = conn->privateData;
|
bhyveConnPtr driver = conn->privateData;
|
||||||
@ -172,9 +170,6 @@ virBhyveProcessStart(virConnectPtr conn,
|
|||||||
|
|
||||||
/* Log generated command line */
|
/* Log generated command line */
|
||||||
virCommandWriteArgLog(load_cmd, logfd);
|
virCommandWriteArgLog(load_cmd, logfd);
|
||||||
if ((pos = lseek(logfd, 0, SEEK_END)) < 0)
|
|
||||||
VIR_WARN("Unable to seek to end of logfile: %s",
|
|
||||||
virStrerror(errno, ebuf, sizeof(ebuf)));
|
|
||||||
|
|
||||||
VIR_DEBUG("Loading domain '%s'", vm->def->name);
|
VIR_DEBUG("Loading domain '%s'", vm->def->name);
|
||||||
if (virCommandRun(load_cmd, NULL) < 0)
|
if (virCommandRun(load_cmd, NULL) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user