master - cleanup: drop unneeded included header files
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=286cd2006bd6426f19d2dd312441755624ed260e Commit: 286cd2006bd6426f19d2dd312441755624ed260e Parent: 6d0abc6b484f1441c6a0a65fd3c82bc09e9d2104 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Aug 16 19:24:09 2012 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Aug 23 14:37:20 2012 +0200
cleanup: drop unneeded included header files
This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
--- daemons/clvmd/clvmd-command.c | 3 -- daemons/dmeventd/dmeventd.c | 2 - daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c | 2 - .../dmeventd/plugins/snapshot/dmeventd_snapshot.c | 2 - daemons/dmeventd/plugins/thin/dmeventd_thin.c | 2 - daemons/lvmetad/lvmetad-core.c | 1 - lib/Makefile.in | 1 - lib/activate/dev_manager.c | 1 - lib/cache/lvmetad.c | 1 - lib/config/config.c | 2 - lib/device/dev-swap.c | 2 - lib/error/errseg.c | 5 ---- lib/filters/filter-md.c | 1 - lib/filters/filter-sysfs.c | 1 - lib/format1/import-export.c | 1 - lib/format_pool/import_export.c | 1 - lib/format_pool/pool_label.c | 1 - lib/format_text/archive.c | 1 - lib/format_text/archiver.c | 1 - lib/format_text/format-text.c | 2 - lib/format_text/import.c | 3 -- lib/format_text/text_label.c | 1 - lib/freeseg/freeseg.c | 10 --------- lib/log/log.c | 3 -- lib/metadata/merge.c | 1 - lib/metadata/metadata.c | 1 - lib/metadata/mirror.c | 1 - lib/metadata/pv_manip.c | 2 - lib/metadata/pv_map.c | 1 - lib/metadata/raid_manip.c | 3 -- lib/mirror/mirrored.c | 1 - lib/misc/lvm-file.c | 1 - lib/misc/lvm-globals.c | 1 - lib/misc/sharedlib.c | 2 - lib/misc/util.c | 22 -------------------- lib/replicator/replicator.c | 3 -- lib/report/report.c | 1 - lib/thin/thin.c | 2 - lib/unknown/unknown.c | 6 ----- lib/zero/zero.c | 5 ---- libdm/libdm-deptree.c | 1 - tools/dmsetup.c | 1 - tools/lvcreate.c | 1 - tools/lvmcmdlib.c | 3 -- tools/lvmcmdline.c | 3 -- tools/toollib.c | 4 --- tools/vgreduce.c | 1 - 47 files changed, 0 insertions(+), 117 deletions(-)
daemons/clvmd/clvmd-command.c +0 -3
@@ -51,9 +51,6 @@*/ #include "clvmd-common.h" - -#include <pthread.h> -#include "clvmd-comms.h" #include "clvm.h" #include "clvmd.h"
daemons/dmeventd/dmeventd.c +0 -2
@@ -39,8 +39,6 @@#include <arpa/inet.h> /* for htonl, ntohl */ #ifdef linux -# include <malloc.h> -/* * Kernel version 2.6.36 and higher has * new OOM killer adjustment interface.
daemons/dmeventd/plugins/lvm2/dmeventd_lvm.c +0 -2
@@ -16,8 +16,6 @@#include "log.h" #include "lvm2cmd.h" -#include "errors.h" -#include "libdevmapper-event.h" #include "dmeventd_lvm.h" #include <pthread.h>
daemons/dmeventd/plugins/snapshot/dmeventd_snapshot.c +0 -2
@@ -19,8 +19,6 @@#include "libdevmapper-event.h" #include "dmeventd_lvm.h" -#include "lvm-string.h" -#include <sys/wait.h> #include <syslog.h> /* FIXME Replace syslog with multilog */ /* FIXME Missing openlog? */
daemons/dmeventd/plugins/thin/dmeventd_thin.c +0 -2
@@ -19,8 +19,6 @@#include "libdevmapper-event.h" #include "dmeventd_lvm.h" -#include "lvm-string.h" -#include <sys/wait.h> #include <syslog.h> /* FIXME Replace syslog with multilog */ /* FIXME Missing openlog? */
daemons/lvmetad/lvmetad-core.c +0 -1
@@ -21,7 +21,6 @@#include <assert.h> #include <pthread.h> -#include <malloc.h> #include <stdint.h> #include <unistd.h>
lib/Makefile.in +0 -1
@@ -103,7 +103,6 @@ SOURCES =\ misc/lvm-string.c \ misc/lvm-wrappers.c \ misc/lvm-percent.c \ - misc/util.c \ mm/memlock.c \ report/properties.c \ report/report.c \
lib/activate/dev_manager.c +0 -1
@@ -14,7 +14,6 @@*/ #include "lib.h" -#include "str_list.h" #include "dev_manager.h" #include "lvm-string.h" #include "fs.h"
lib/cache/lvmetad.c +0 -1
@@ -20,7 +20,6 @@#include "lvmcache.h" #include "lvmetad-client.h" #include "format-text.h" // TODO for disk_locn, used as a DA representation -#include "filter.h" static int _using_lvmetad =0 ;static daemon_handle _lvmetad;
lib/config/config.c +0 -2
@@ -21,14 +21,12 @@#include "device.h" #include "str_list.h" #include "toolcontext.h" -#include "lvm-string.h" #include "lvm-file.h" #include <sys/stat.h> #include <sys/mman.h> #include <unistd.h> #include <fcntl.h> -#include <ctype.h> #include <assert.h> struct config_file {
lib/device/dev-swap.c +0 -2
@@ -14,8 +14,6 @@#include "lib.h" #include "metadata.h" -#include "xlate.h" -#include "filter.h" #ifdef linux
lib/error/errseg.c +0 -5
@@ -16,15 +16,10 @@#include "toolcontext.h" #include "segtype.h" #include "display.h" -#include "text_export.h" -#include "text_import.h" #include "config.h" #include "str_list.h" -#include "targets.h" -#include "lvm-string.h" #include "activate.h" #include "str_list.h" -#include "metadata.h" static const char *_errseg_name (const struct lv_segment *seg) {
lib/filters/filter-md.c +0 -1
@@ -15,7 +15,6 @@#include "lib.h" #include "filter-md.h" -#include "metadata.h" #ifdef linux
lib/filters/filter-sysfs.c +0 -1
@@ -14,7 +14,6 @@#include "lib.h" #include "filter-sysfs.h" -#include "lvm-string.h" #ifdef linux
lib/format1/import-export.c +0 -1
@@ -25,7 +25,6 @@#include "segtype.h" #include "pv_alloc.h" #include "display.h" -#include "lvmcache.h" #include "metadata.h" #include <time.h>
lib/format_pool/import_export.c +0 -1
@@ -16,7 +16,6 @@#include "lib.h" #include "label.h" #include "metadata.h" -#include "lvmcache.h" #include "disk_rep.h" #include "sptype_names.h" #include "lv_alloc.h"
lib/format_pool/pool_label.c +0 -1
@@ -16,7 +16,6 @@#include "lib.h" #include "label.h" #include "metadata.h" -#include "xlate.h" #include "disk_rep.h" #include "pool_label.h"
lib/format_text/archive.c +0 -1
@@ -25,7 +25,6 @@#include <dirent.h> #include <unistd.h> #include <sys/stat.h> -#include <sys/file.h> #include <fcntl.h> #include <time.h>
lib/format_text/archiver.c +0 -1
@@ -16,7 +16,6 @@#include "lib.h" #include "archiver.h" #include "format-text.h" -#include "lvm-file.h" #include "lvm-string.h" #include "lvmcache.h" #include "toolcontext.h"
lib/format_text/format-text.c +0 -2
@@ -27,12 +27,10 @@#include "crc.h" #include "xlate.h" #include "label.h" -#include "memlock.h" #include "lvmcache.h" #include "lvmetad.h" #include <unistd.h> -#include <sys/file.h> #include <sys/param.h> #include <limits.h> #include <dirent.h>
lib/format_text/import.c +0 -3
@@ -16,9 +16,6 @@#include "lib.h" #include "metadata.h" #include "import-export.h" -#include "display.h" -#include "toolcontext.h" -#include "lvmcache.h" /* FIXME Use tidier inclusion method */ static struct text_vg_version_ops *(_text_vsn_list[2 ]);
lib/format_text/text_label.c +0 -1
@@ -19,7 +19,6 @@#include "label.h" #include "xlate.h" #include "lvmcache.h" -#include "lvmetad.h" #include <sys/stat.h> #include <fcntl.h>
lib/freeseg/freeseg.c +0 -10
@@ -15,16 +15,6 @@#include "lib.h" #include "toolcontext.h" #include "segtype.h" -#include "display.h" -#include "text_export.h" -#include "text_import.h" -#include "config.h" -#include "str_list.h" -#include "targets.h" -#include "lvm-string.h" -#include "activate.h" -#include "str_list.h" -#include "metadata.h" static const char *_freeseg_name (const struct lv_segment *seg) {
lib/log/log.c +0 -3
@@ -16,10 +16,7 @@#include "lib.h" #include "device.h" #include "memlock.h" -#include "lvm-string.h" -#include "lvm-file.h" #include "defaults.h" -#include "config.h" #include <stdarg.h> #include <syslog.h>
lib/metadata/merge.c +0 -1
@@ -15,7 +15,6 @@#include "lib.h" #include "metadata.h" -#include "toolcontext.h" #include "lv_alloc.h" #include "pv_alloc.h" #include "str_list.h"
lib/metadata/metadata.c +0 -1
@@ -30,7 +30,6 @@#include "locking.h" #include "archiver.h" #include "defaults.h" -#include "filter-persistent.h" #include <math.h> #include <sys/param.h>
lib/metadata/mirror.c +0 -1
@@ -24,7 +24,6 @@#include "lvm-string.h" #include "str_list.h" #include "locking.h" /* FIXME Should not be used in this file */ -#include "memlock.h" #include "defaults.h" /* FIXME: should this be defaults.h? */
lib/metadata/pv_manip.c +0 -2
@@ -17,9 +17,7 @@#include "metadata.h" #include "pv_alloc.h" #include "toolcontext.h" -#include "archiver.h" #include "locking.h" -#include "lvmcache.h" #include "defaults.h" static struct pv_segment *_alloc_pv_segment(struct dm_pool *mem,
lib/metadata/pv_map.c +0 -1
@@ -15,7 +15,6 @@#include "lib.h" #include "pv_map.h" -#include "pv_alloc.h" #include <assert.h>
lib/metadata/raid_manip.c +0 -3
@@ -17,12 +17,9 @@#include "toolcontext.h" #include "segtype.h" #include "display.h" -#include "archiver.h" #include "activate.h" #include "lv_alloc.h" #include "lvm-string.h" -#include "str_list.h" -#include "memlock.h" #define RAID_REGION_SIZE 1024
lib/mirror/mirrored.c +0 -1
@@ -25,7 +25,6 @@#include "lvm-string.h" #include "targets.h" #include "activate.h" -#include "sharedlib.h" #include "str_list.h" #include <sys/utsname.h>
lib/misc/lvm-file.c +0 -1
@@ -15,7 +15,6 @@#include "lib.h" #include "lvm-file.h" -#include "lvm-string.h" #include <unistd.h> #include <sys/stat.h>
lib/misc/lvm-globals.c +0 -1
@@ -17,7 +17,6 @@#include "device.h" #include "memlock.h" #include "lvm-string.h" -#include "lvm-file.h" #include "defaults.h" #include "metadata-exported.h"
lib/misc/sharedlib.c +0 -2
@@ -15,9 +15,7 @@#include "lib.h" #include "config.h" -#include "lvm-string.h" #include "sharedlib.h" -#include "toolcontext.h" #include <limits.h> #include <sys/stat.h>
lib/misc/util.c deleted +0 -22
@@ -1,22 +0,0 @@ -/* -* Copyright (C) 2007 Red Hat, Inc. All rights reserved. -* -* This file is part of LVM2. -* -* This copyrighted material is made available to anyone wishing to use, -* modify, copy, or redistribute it subject to the terms and conditions -* of the GNU Lesser General Public License v.2.1. -* -* You should have received a copy of the GNU Lesser General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -/* -* Return the address of the last file name component of NAME. -* If NAME ends in a slash, return the empty string. -*/ - -#include "lib.h" - -/* empty for now. */
lib/replicator/replicator.c +0 -3
@@ -17,12 +17,9 @@#include "metadata.h" #include "segtype.h" #include "text_export.h" -#include "text_import.h" -#include "config.h" #include "activate.h" #include "str_list.h" #ifdef DMEVENTD -# include "sharedlib.h" # include "libdevmapper-event.h" #endif
lib/report/report.c +0 -1
@@ -21,7 +21,6 @@#include "display.h" #include "activate.h" #include "segtype.h" -#include "str_list.h" #include "lvmcache.h" #include <stddef.h> /* offsetof() */
lib/thin/thin.c +0 -2
@@ -17,14 +17,12 @@#include "metadata.h" #include "segtype.h" #include "text_export.h" -#include "text_import.h" #include "config.h" #include "activate.h" #include "str_list.h" #include "defaults.h" #ifdef DMEVENTD -# include "sharedlib.h" # include "libdevmapper-event.h" #endif
lib/unknown/unknown.c +0 -6
@@ -17,14 +17,8 @@#include "segtype.h" #include "display.h" #include "text_export.h" -#include "text_import.h" #include "config.h" -#include "str_list.h" -#include "targets.h" -#include "lvm-string.h" #include "activate.h" -#include "str_list.h" -#include "metadata.h" static const char *_unknown_name (const struct lv_segment *seg) {
lib/zero/zero.c +0 -5
@@ -16,14 +16,9 @@#include "toolcontext.h" #include "segtype.h" #include "display.h" -#include "text_export.h" -#include "text_import.h" #include "config.h" #include "str_list.h" -#include "targets.h" -#include "lvm-string.h" #include "activate.h" -#include "metadata.h" static const char *_zero_name (const struct lv_segment *seg) {
libdm/libdm-deptree.c +0 -1
@@ -16,7 +16,6 @@#include "libdm-targets.h" #include "libdm-common.h" #include "kdev_t.h" -#include "dm-ioctl.h" #include <stdarg.h> #include <sys/param.h>
tools/dmsetup.c +0 -1
@@ -30,7 +30,6 @@#include <dirent.h> #include <errno.h> #include <unistd.h> -#include <libgen.h> #include <sys/wait.h> #include <unistd.h> #include <sys/param.h>
tools/lvcreate.c +0 -1
@@ -14,7 +14,6 @@*/ #include "tools.h" -#include "lv_alloc.h" #include <fcntl.h>
tools/lvmcmdlib.c +0 -3
@@ -17,13 +17,10 @@#include "lvm2cmdline.h" #include "label.h" #include "memlock.h" -#include "lvm-version.h" #include "lvm2cmd.h" #include <signal.h> -#include <syslog.h> -#include <libgen.h> #include <sys/stat.h> #include <time.h> #include <sys/resource.h>
tools/lvmcmdline.c +0 -3
@@ -19,12 +19,9 @@#include "lvm-version.h" #include "stub.h" -#include "lvm2cmd.h" #include "last-path-component.h" #include <signal.h> -#include <syslog.h> -#include <libgen.h> #include <sys/stat.h> #include <time.h> #include <sys/resource.h>
tools/toollib.c +0 -4
@@ -14,11 +14,7 @@*/ #include "tools.h" -#include "lv_alloc.h" -#include "xlate.h" -#include <sys/stat.h> -#include <sys/wait.h> const char *command_name (struct cmd_context *cmd) {
tools/vgreduce.c +0 -1
@@ -14,7 +14,6 @@*/ #include "tools.h" -#include "lv_alloc.h" static int _remove_pv (struct volume_group *vg,struct pv_list *pvl,int silent) {