mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-19 18:11:31 +00:00
Change file names in comments to match the files they are in
Some of these are leftovers from renaming the files, others are just typos. Also introduce an ugly awk script to enforce this.
This commit is contained in:
parent
dd6deb391c
commit
9b9d7704b5
24
cfg.mk
24
cfg.mk
@ -863,6 +863,30 @@ sc_prohibit_atoi:
|
||||
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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* bhyve_process.c: bhyve command generation
|
||||
* bhyve_command.c: bhyve command generation
|
||||
*
|
||||
* Copyright (C) 2014 Roman Bogorodskiy
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* bhyve_process.c: bhyve command generation
|
||||
* bhyve_command.h: bhyve command generation
|
||||
*
|
||||
* Copyright (C) 2014 Roman Bogorodskiy
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
/*
|
||||
* 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>
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* domain_lock.c: Locking for domain lifecycle operations
|
||||
* domain_lock.h: Locking for domain lifecycle operations
|
||||
*
|
||||
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virnetservermdns.c: advertise server sockets
|
||||
* virnetservermdns.h: advertise server sockets
|
||||
*
|
||||
* Copyright (C) 2011 Red Hat, Inc.
|
||||
* Copyright (C) 2007 Daniel P. Berrange
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* viratomic.h: atomic integer operations
|
||||
* viratomic.c: atomic integer operations
|
||||
*
|
||||
* Copyright (C) 2012 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virbitmap.h: Simple bitmap operations
|
||||
* virbitmap.c: Simple bitmap operations
|
||||
*
|
||||
* Copyright (C) 2010-2013 Red Hat, Inc.
|
||||
* Copyright (C) 2010 Novell, Inc.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* viruuid.h: helper APIs for dealing with UUIDs
|
||||
* viruuid.c: helper APIs for dealing with UUIDs
|
||||
*
|
||||
* Copyright (C) 2007-2013 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* xen_unified.c: Unified Xen driver.
|
||||
* xen_driver.h: Unified Xen driver.
|
||||
*
|
||||
* Copyright (C) 2007, 2010-2011 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* utils.c: test utils
|
||||
* testutils.h: test utils
|
||||
*
|
||||
* Copyright (C) 2005, 2008-2013 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virsh-interface.c: Commands to manage host interface
|
||||
* virsh-interface.h: Commands to manage host interface
|
||||
*
|
||||
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virsh-network.c: Commands to manage network
|
||||
* virsh-network.h: Commands to manage network
|
||||
*
|
||||
* Copyright (C) 2005, 2007-2012 Red Hat, Inc.
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* virt-host-check.c: Sanity check a hypervisor host
|
||||
* virt-host-validate.c: Sanity check a hypervisor host
|
||||
*
|
||||
* Copyright (C) 2012 Red Hat, Inc.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user