[PATCH v4 00/13] Introduce VIR_STRDUP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Previously this aimed on dropping OOM report from almost
everywhere (v1), then just prepare the ground (v2). Now, it just
aims on introducing VIR_STRDUP and VIR_STRNDUP which do report
OOM error. This will cause rebase conflicts, for sure. Sorry.

Patches available at:
  git://gitorious.org/~zippy2/libvirt/michal-staging.git
  branch oom5


Michal Privoznik (13):
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/conf/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/openvz/*
  Change virConnectDomainEventGraphicsCallback signature
  _virConnectCredential: turn @prompt into char *
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/qemu/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/remote/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/rpc/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/security/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/util/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/xen/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/xenapi/*
  Adapt to VIR_STRDUP and VIR_STRNDUP in src/xenxs/*
  Introduce syntax-check rule to prefer VIR_STRDUP over strdup

 cfg.mk                           |   8 +
 include/libvirt/libvirt.h.in     |  16 +-
 src/conf/capabilities.c          |  30 +--
 src/conf/cpu_conf.c              |  20 +-
 src/conf/domain_conf.c           | 119 +++--------
 src/conf/domain_event.c          |  41 ++--
 src/conf/node_device_conf.c      |  28 ++-
 src/conf/nwfilter_conf.c         |  17 +-
 src/conf/nwfilter_params.c       |  34 +---
 src/conf/snapshot_conf.c         |  11 +-
 src/conf/storage_conf.c          |  13 +-
 src/conf/virchrdev.c             |  12 +-
 src/openvz/openvz_conf.c         |  45 ++--
 src/openvz/openvz_driver.c       |  29 +--
 src/qemu/qemu_capabilities.c     |  79 +++-----
 src/qemu/qemu_cgroup.c           |   4 +-
 src/qemu/qemu_command.c          | 428 +++++++++++++++------------------------
 src/qemu/qemu_conf.c             |  64 +++---
 src/qemu/qemu_domain.c           |  26 +--
 src/qemu/qemu_driver.c           | 129 ++++--------
 src/qemu/qemu_hotplug.c          |  15 +-
 src/qemu/qemu_migration.c        |  17 +-
 src/qemu/qemu_monitor_json.c     |  63 ++----
 src/qemu/qemu_monitor_text.c     |  15 +-
 src/qemu/qemu_process.c          |  64 +++---
 src/remote/remote_driver.c       | 116 ++++-------
 src/rpc/gendispatch.pl           |  21 +-
 src/rpc/virnetclient.c           |  16 +-
 src/rpc/virnetmessage.c          |  27 ++-
 src/rpc/virnetsaslcontext.c      |   6 +-
 src/rpc/virnetserver.c           |   6 +-
 src/rpc/virnetserverclient.c     |  10 +-
 src/rpc/virnetservermdns.c       |   6 +-
 src/rpc/virnetsocket.c           |  10 +-
 src/rpc/virnetsshsession.c       |  78 ++++---
 src/rpc/virnettlscontext.c       |  26 +--
 src/security/security_apparmor.c |  20 +-
 src/security/security_dac.c      |  21 +-
 src/security/security_nop.c      |   7 +-
 src/security/security_selinux.c  |  79 ++------
 src/security/virt-aa-helper.c    |   4 +-
 src/util/virauth.c               |  17 +-
 src/util/virauthconfig.c         |   8 +-
 src/util/virbitmap.c             |   9 +-
 src/util/vircgroup.c             |  37 ++--
 src/util/vircommand.c            |  33 ++-
 src/util/virconf.c               |  34 +---
 src/util/virdnsmasq.c            |  22 +-
 src/util/virebtables.c           |  34 ++--
 src/util/virebtables.h           |   2 +-
 src/util/virerror.c              |  19 +-
 src/util/virfile.c               |  28 ++-
 src/util/virhash.c               |   5 +-
 src/util/viridentity.c           |  14 +-
 src/util/virinitctl.c            |   4 +-
 src/util/viriptables.c           |   4 +-
 src/util/virjson.c               |  18 +-
 src/util/virkeyfile.c            |  13 +-
 src/util/virlockspace.c          |  25 +--
 src/util/virlog.c                |  27 +--
 src/util/virnetdevmacvlan.c      |  16 +-
 src/util/virnetdevtap.c          |  11 +-
 src/util/virnetdevvportprofile.c |   4 +-
 src/util/virobject.c             |  16 +-
 src/util/virpci.c                |  13 +-
 src/util/virscsi.c               |   6 +-
 src/util/virsexpr.c              |  37 +---
 src/util/virsocketaddr.c         |   9 +-
 src/util/virstoragefile.c        |  18 +-
 src/util/virstring.c             |  17 +-
 src/util/virsysinfo.c            | 293 +++++++++++----------------
 src/util/virtypedparam.c         |  14 +-
 src/util/viruri.c                |  58 +++---
 src/util/virutil.c               |  57 ++----
 src/util/virxml.c                |   5 +-
 src/xen/block_stats.c            |  16 +-
 src/xen/xen_driver.c             |   9 +-
 src/xen/xen_hypervisor.c         |  19 +-
 src/xen/xen_inotify.c            |  15 +-
 src/xen/xend_internal.c          |  68 ++-----
 src/xen/xm_internal.c            |   9 +-
 src/xen/xs_internal.c            |  44 ++--
 src/xenapi/xenapi_driver.c       |  59 +++---
 src/xenapi/xenapi_utils.c        |  39 ++--
 src/xenxs/xen_sxpr.c             | 200 ++++++++----------
 src/xenxs/xen_xm.c               |  91 ++++-----
 86 files changed, 1244 insertions(+), 2032 deletions(-)

-- 
1.8.2.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]