halt='Use virStrToLong* instead of atoi, atol, atof, atoq, atoll' \
$(_sc_search_regexp)
+sc_prohibit_wrong_filename_in_comment:
+ @fail=0; \
+ awk 'BEGIN { \
+ fail=0; \
+ } FNR < 3 { \
+ n=match($$0, /[[:space:]][^[:space:]]*[.][ch][[:space:]:]/); \
+ if (n > 0) { \
+ A=substr($$0, RSTART+1, RLENGTH-2); \
+ n=split(FILENAME, arr, "/"); \
+ if (A != arr[n]) { \
+ print "in " FILENAME ": " A " mentioned in comments "; \
+ fail=1; \
+ } \
+ } \
+ } END { \
+ if (fail == 1) { \
+ exit 1; \
+ } \
+ }' $$($(VC_LIST_EXCEPT) | grep '\.[ch]$$') || fail=1; \
+ if test $$fail -eq 1; then \
+ { echo '$(ME): The file name in comments must match the ' \
+ 'actual file name' 1>&2; exit 1; } \
+ fi;
+
# We don't use this feature of maint.mk.
prev_version_file = /dev/null
/*
- * libvirtd.c: daemon start of day, guest process & i/o management
+ * libvirtd-config.c: daemon start of day, guest process & i/o management
*
* Copyright (C) 2006-2012 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * libvirtd.c: daemon start of day, guest process & i/o management
+ * libvirtd-config.h: daemon start of day, guest process & i/o management
*
* Copyright (C) 2006-2012 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * bhyve_process.c: bhyve command generation
+ * bhyve_command.c: bhyve command generation
*
* Copyright (C) 2014 Roman Bogorodskiy
*
/*
- * bhyve_process.c: bhyve command generation
+ * bhyve_command.h: bhyve command generation
*
* Copyright (C) 2014 Roman Bogorodskiy
*
/*
- * domain_audit.c: Domain audit management
+ * domain_audit.h: Domain audit management
*
* Copyright (C) 2006-2011 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * datatypes.h: management of structs for public data types
+ * datatypes.c: management of structs for public data types
*
* Copyright (C) 2006-2014 Red Hat, Inc.
*
/*
- * hyperv_wmi.h: general WMI over WSMAN related functions and structures for
+ * hyperv_wmi.c: general WMI over WSMAN related functions and structures for
* managing Microsoft Hyper-V hosts
*
* Copyright (C) 2011 Matthias Bolte <matthias.bolte@googlemail.com>
/*
- * interface_driver.c: backend driver methods to handle physical
- * interface configuration using the netcf library.
+ * interface_backend_netcf.c: backend driver methods to handle physical
+ * interface configuration using the netcf library.
*
* Copyright (C) 2006-2013 Red Hat, Inc.
*
/*
- * domain_lock.c: Locking for domain lifecycle operations
+ * domain_lock.h: Locking for domain lifecycle operations
*
* Copyright (C) 2010-2011 Red Hat, Inc.
*
/*
- * lock_daemon_config.h: virtlockd config file handling
+ * lock_daemon_config.c: virtlockd config file handling
*
* Copyright (C) 2006-2012 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * virLXC_hostdev.c: VIRLXC hostdev management
+ * lxc_hostdev.c: VIRLXC hostdev management
*
* Copyright (C) 2006-2007, 2009-2012 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * virLXC_hostdev.h: VIRLXC hostdev management
+ * lxc_hostdev.h: VIRLXC hostdev management
*
* Copyright (C) 2006-2007, 2009-2010 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * network_driver.h: core driver methods for managing networks
+ * bridge_driver.h: core driver methods for managing networks
*
* Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * bridge_driver.h: platform specific routines for bridge driver
+ * bridge_driver_platform.h: platform specific routines for bridge driver
*
* Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * node_device.c: node device enumeration
+ * node_device_driver.c: node device enumeration
*
* Copyright (C) 2010-2013 Red Hat, Inc.
* Copyright (C) 2008 Virtual Iron Software, Inc.
/*
- * node_device.h: node device enumeration
+ * node_device_driver.h: node device enumeration
*
* Copyright (C) 2008 Virtual Iron Software, Inc.
* Copyright (C) 2008 David F. Lively
/*
- * nodeinfo.c: Helper routines for OS specific node information
+ * nodeinfo.h: Helper routines for OS specific node information
*
* Copyright (C) 2006-2008, 2011-2012 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * openvz_config.h: config information for OpenVZ VPSs
+ * openvz_conf.h: config information for OpenVZ VPSs
*
* Copyright (C) 2010 Red Hat, Inc.
* Copyright (C) 2006, 2007 Binary Karma.
/*
- * openvz_driver.c: core driver methods for managing OpenVZ VEs
+ * openvz_util.c: core driver methods for managing OpenVZ VEs
*
* Copyright (C) 2013 Red Hat, Inc.
* Copyright (C) 2012 Guido Günther
/*
- * openvz_driver.h: common util functions for managing openvz VPEs
+ * openvz_util.h: common util functions for managing openvz VPEs
*
* Copyright (C) 2012 Guido Günther
*
/*
- * parallels_driver.c: core driver functions for managing
+ * parallels_driver.h: core driver functions for managing
* Parallels Cloud Server hosts
*
* Copyright (C) 2012 Parallels, Inc.
/*
- * parallels_storage.c: core privconn functions for managing
+ * parallels_network.c: core privconn functions for managing
* Parallels Cloud Server hosts
*
* Copyright (C) 2013 Red Hat, Inc.
/*
- * qemu_agent.h: interaction with QEMU guest agent
+ * qemu_agent.c: interaction with QEMU guest agent
*
* Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * qemu_domain.h: QEMU domain private state
+ * qemu_domain.c: QEMU domain private state
*
* Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * driver.h: core driver methods for managing qemu guests
+ * qemu_driver.h: core driver methods for managing qemu guests
*
* Copyright (C) 2006, 2007 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * qemu_hotplug.h: QEMU device hotplug management
+ * qemu_hotplug.c: QEMU device hotplug management
*
* Copyright (C) 2006-2014 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * remote_internal.h: driver to provide access to libvirtd running
+ * remote_driver.h: driver to provide access to libvirtd running
* on a remote machine
*
* Copyright (C) 2006-2007, 2010 Red Hat, Inc.
/*
- * virnetservermdns.c: advertise server sockets
+ * virnetservermdns.h: advertise server sockets
*
* Copyright (C) 2011 Red Hat, Inc.
* Copyright (C) 2007 Daniel P. Berrange
/*
- * storage_backend_scsi.h: storage backend for SCSI handling
+ * storage_backend_mpath.h: storage backend for multipath handling
*
* Copyright (C) 2009-2009 Red Hat, Inc.
* Copyright (C) 2009-2008 Dave Allan
/*
- * storage_backend_sheepog.h: storage backend for Sheepdog handling
+ * storage_backend_sheepdog.h: storage backend for Sheepdog handling
*
* Copyright (C) 2012 Wido den Hollander
* Copyright (C) 2012 Frank Spijkerman
/*
- * test.c: A "mock" hypervisor for use by application unit tests
+ * test_driver.c: A "mock" hypervisor for use by application unit tests
*
* Copyright (C) 2006-2014 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * test.h: A "mock" hypervisor for use by application unit tests
+ * test_driver.h: A "mock" hypervisor for use by application unit tests
*
* Copyright (C) 2006-2006 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * config.h: VM configuration management
+ * uml_conf.h: VM configuration management
*
* Copyright (C) 2006, 2007, 2010 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * viratomic.h: atomic integer operations
+ * viratomic.c: atomic integer operations
*
* Copyright (C) 2012 Red Hat, Inc.
*
/*
- * virbitmap.h: Simple bitmap operations
+ * virbitmap.c: Simple bitmap operations
*
* Copyright (C) 2010-2013 Red Hat, Inc.
* Copyright (C) 2010 Novell, Inc.
/*
- * virebtables.c: Helper APIs for managing ebtables
+ * virebtables.h: Helper APIs for managing ebtables
*
* Copyright (C) 2007-2008, 2013 Red Hat, Inc.
* Copyright (C) 2009 IBM Corp.
/*
- * virerror.c: error handling and reporting code for libvirt
+ * virerror.h: error handling and reporting code for libvirt
*
* Copyright (C) 2006-2014 Red Hat, Inc.
*
/*
- * vireventpool.h: Poll based event loop for monitoring file handles
+ * vireventpoll.h: Poll based event loop for monitoring file handles
*
* Copyright (C) 2007 Daniel P. Berrange
* Copyright (C) 2007 Red Hat, Inc.
/*
- * viruuid.h: helper APIs for dealing with UUIDs
+ * viruuid.c: helper APIs for dealing with UUIDs
*
* Copyright (C) 2007-2013 Red Hat, Inc.
*
/*
- * virxml.c: helper APIs for dealing with XML documents
+ * virxml.h: helper APIs for dealing with XML documents
*
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
*
/*
- * xen_unified.c: Unified Xen driver.
+ * xen_driver.h: Unified Xen driver.
*
* Copyright (C) 2007, 2010-2011 Red Hat, Inc.
*
/*
- * xen_internal.c: direct access to Xen hypervisor level
+ * xen_hypervisor.c: direct access to Xen hypervisor level
*
* Copyright (C) 2005-2013 Red Hat, Inc.
*
/*
- * xen_internal.h: internal API for direct access to Xen hypervisor level
+ * xen_hypervisor.h: internal API for direct access to Xen hypervisor level
*
* Copyright (C) 2005, 2010-2011 Red Hat, Inc.
*
/*
- * xen_inofify.c: Xen notification of xml file activity in the
+ * xen_inotify.c: Xen notification of xml file activity in the
* following dirs:
* /etc/xen
* /var/lib/xend/domains
/*
- * xen_inofify.h: Xen notification of xml files
+ * xen_inotify.h: Xen notification of xml files
*
* Copyright (C) 2011 Red Hat, Inc.
* Copyright (C) 2008 VirtualIron
/*
- * xm_internal.h: helper routines for dealing with inactive domains
+ * xm_internal.c: helper routines for dealing with inactive domains
*
* Copyright (C) 2006-2007, 2009-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
/*
- * xenapi_driver.h.c: Xen API driver header file to be included in libvirt.c.
+ * xenapi_driver.h: Xen API driver header file to be included in libvirt.c.
* Copyright (C) 2009, 2010 Citrix Ltd.
*
* This library is free software; you can redistribute it and/or
/*
- * utils.c: test utils
+ * testutils.h: test utils
*
* Copyright (C) 2005, 2008-2013 Red Hat, Inc.
*
/*
- * virsh-interface.c: Commands to manage host interface
+ * virsh-interface.h: Commands to manage host interface
*
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
*
/*
- * virsh-network.c: Commands to manage network
+ * virsh-network.h: Commands to manage network
*
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
*
/*
- * virt-host-check.c: Sanity check a hypervisor host
+ * virt-host-validate.c: Sanity check a hypervisor host
*
* Copyright (C) 2012 Red Hat, Inc.
*