Re: [PATCHv2 0/7] saner readdir usage

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

 



On 04/26/2014 06:14 AM, Eric Blake wrote:
> This extends the work started by Nataneal to cover the entire
> tree.  Basically, readdir() is awkward to use correctly: to
> properly check for (unlikely) errors, one must pre-set errno.
> Forcing everything to go through a wrapper ensures that all
> our uses will be consistent; this also fixes several bugs
> in some of the call sites.
> 
> Eric Blake (5):
>   conf: use virDirRead API
>   util: use virDirRead API
>   drivers: use virDirRead API
>   storage: use virDirRead API
>   enforce sane readdir usage
> 
> Natanael Copa (2):
>   util: introduce virDirRead wrapper for readdir
>   nodeinfo: use virDirRead API
> 
>  cfg.mk                              |  6 +++
>  src/conf/domain_conf.c              |  5 ++-
>  src/conf/network_conf.c             | 11 +++---
>  src/conf/nwfilter_conf.c            |  6 +--
>  src/conf/storage_conf.c             |  6 +--
>  src/libvirt_private.syms            |  1 +
>  src/nodeinfo.c                      | 31 +++++----------
>  src/openvz/openvz_conf.c            |  9 +----
>  src/parallels/parallels_storage.c   | 11 ++++--
>  src/qemu/qemu_driver.c              |  5 ++-
>  src/qemu/qemu_hostdev.c             |  7 ++--
>  src/secret/secret_driver.c          |  6 +--
>  src/storage/storage_backend.c       |  8 ++--
>  src/storage/storage_backend_fs.c    |  6 ++-
>  src/storage/storage_backend_iscsi.c |  5 ++-
>  src/storage/storage_backend_scsi.c  | 10 +++--
>  src/util/vircgroup.c                | 28 ++++++++------
>  src/util/virfile.c                  | 76 +++++++++++++++++++++++--------------
>  src/util/virfile.h                  |  4 ++
>  src/util/virnetdevtap.c             | 10 +----
>  src/util/virpci.c                   | 20 +++++-----
>  src/util/virscsi.c                  |  9 +++--
>  src/util/virusb.c                   |  7 +++-
>  src/util/virutil.c                  |  4 +-
>  src/xen/xen_inotify.c               |  7 +++-
>  src/xen/xm_internal.c               |  3 +-
>  26 files changed, 170 insertions(+), 131 deletions(-)
> 

ACK series if you conver the newly addded readdir call as well:
src/network/bridge_driver.c:487:        entry = readdir(dir);
maint.mk: use virDirRead, not readdir
make: *** [sc_prohibit_readdir] Error 1

Jan



Attachment: signature.asc
Description: OpenPGP digital signature

--
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]