support qcow2, so blktap is needed to support domains with 'tap:qcow2' disk configurations. modified tmp-initscript-modprobe.patch - bnc#809203 - xen.efi isn't signed with SUSE Secure Boot key xen.spec - Fix adding managed PCI device to an inactive domain modified xen-managed-pci-device.patch - bnc#805094 - xen hot plug attach/detach fails modified blktap-pv-cdrom.patch - bnc# 802690 - domain locking can prevent a live migration from completing modified xend-domain-lock.patch - bnc#797014 - no way to control live migrations 26675-tools-xentoollog_update_tty_detection_in_stdiostream_progress.patch xen.migrate.tools-xc_print_messages_from_xc_save_with_xc_report.patch xen.migrate.tools-xc_document_printf_calls_in_xc_restore.patch xen.migrate.tools-xc_rework_xc_save.cswitch_qemu_logdirty.patch xen.migrate.tools_set_migration_constraints_from_cmdline.patch xen.migrate.tools_add_xm_migrate_--log_progress_option.patch - Upstream patches from Jan 26585-x86-mm-Take-the-p2m-lock-even-in-shadow-mode.patch 26595-x86-nhvm-properly-clean-up-after-failure-to-set-up-all-vCPU-s.patch 26601-honor-ACPI-v4-FADT-flags.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=232
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
changeset: 26675:3eb62c576a1a
|
|
user: Olaf Hering <olaf@aepfle.de>
|
|
date: Wed Feb 27 14:16:36 2013 +0000
|
|
files: tools/libxc/xtl_logger_stdio.c
|
|
description:
|
|
tools/xentoollog: update tty detection in stdiostream_progress
|
|
|
|
As suggested by IanJ:
|
|
Check isatty only once to preserve the errno of ->progress users, and to
|
|
reduce the noice in strace output.
|
|
|
|
Signed-off-by: Olaf Hering <olaf@aepfle.de>
|
|
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
|
|
|
|
|
|
diff -r 4b25c1e6cfbb -r 3eb62c576a1a tools/libxc/xtl_logger_stdio.c
|
|
--- a/tools/libxc/xtl_logger_stdio.c Wed Feb 27 11:16:47 2013 +0000
|
|
+++ b/tools/libxc/xtl_logger_stdio.c Wed Feb 27 14:16:36 2013 +0000
|
|
@@ -35,6 +35,7 @@ struct xentoollog_logger_stdiostream {
|
|
xentoollog_level min_level;
|
|
unsigned flags;
|
|
int progress_erase_len, progress_last_percent;
|
|
+ int tty;
|
|
};
|
|
|
|
static void progress_erase(xentoollog_logger_stdiostream *lg) {
|
|
@@ -118,7 +119,7 @@ static void stdiostream_progress(struct
|
|
|
|
lg->progress_last_percent = percent;
|
|
|
|
- if (isatty(fileno(lg->f)) <= 0) {
|
|
+ if (!lg->tty) {
|
|
stdiostream_message(logger_in, this_level, context,
|
|
"%s: %lu/%lu %3d%%",
|
|
doing_what, done, total, percent);
|
|
@@ -166,6 +167,7 @@ xentoollog_logger_stdiostream *xtl_creat
|
|
newlogger.f = f;
|
|
newlogger.min_level = min_level;
|
|
newlogger.flags = flags;
|
|
+ newlogger.tty = isatty(fileno(newlogger.f)) > 0;
|
|
|
|
if (newlogger.flags & XTL_STDIOSTREAM_SHOW_DATE) tzset();
|
|
|