mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: drop unneeded included header files
This headers were not resolving anything used for compiled .c files. Remove unused util.c file.
This commit is contained in:
parent
6d0abc6b48
commit
286cd2006b
@ -51,9 +51,6 @@
|
||||
*/
|
||||
|
||||
#include "clvmd-common.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#include "clvmd-comms.h"
|
||||
#include "clvm.h"
|
||||
#include "clvmd.h"
|
||||
|
@ -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.
|
||||
|
@ -16,8 +16,6 @@
|
||||
#include "log.h"
|
||||
|
||||
#include "lvm2cmd.h"
|
||||
#include "errors.h"
|
||||
#include "libdevmapper-event.h"
|
||||
#include "dmeventd_lvm.h"
|
||||
|
||||
#include <pthread.h>
|
||||
|
@ -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? */
|
||||
|
@ -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? */
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <pthread.h>
|
||||
#include <malloc.h>
|
||||
#include <stdint.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
@ -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 \
|
||||
|
@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include "lib.h"
|
||||
#include "str_list.h"
|
||||
#include "dev_manager.h"
|
||||
#include "lvm-string.h"
|
||||
#include "fs.h"
|
||||
|
1
lib/cache/lvmetad.c
vendored
1
lib/cache/lvmetad.c
vendored
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -14,8 +14,6 @@
|
||||
|
||||
#include "lib.h"
|
||||
#include "metadata.h"
|
||||
#include "xlate.h"
|
||||
#include "filter.h"
|
||||
|
||||
#ifdef linux
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
#include "lib.h"
|
||||
#include "filter-md.h"
|
||||
#include "metadata.h"
|
||||
|
||||
#ifdef linux
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
|
||||
#include "lib.h"
|
||||
#include "filter-sysfs.h"
|
||||
#include "lvm-string.h"
|
||||
|
||||
#ifdef linux
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include "segtype.h"
|
||||
#include "pv_alloc.h"
|
||||
#include "display.h"
|
||||
#include "lvmcache.h"
|
||||
#include "metadata.h"
|
||||
|
||||
#include <time.h>
|
||||
|
@ -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"
|
||||
|
@ -16,7 +16,6 @@
|
||||
#include "lib.h"
|
||||
#include "label.h"
|
||||
#include "metadata.h"
|
||||
#include "xlate.h"
|
||||
#include "disk_rep.h"
|
||||
#include "pool_label.h"
|
||||
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/file.h>
|
||||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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>
|
||||
|
@ -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]);
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "label.h"
|
||||
#include "xlate.h"
|
||||
#include "lvmcache.h"
|
||||
#include "lvmetad.h"
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -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"
|
||||
|
@ -30,7 +30,6 @@
|
||||
#include "locking.h"
|
||||
#include "archiver.h"
|
||||
#include "defaults.h"
|
||||
#include "filter-persistent.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -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? */
|
||||
|
||||
|
@ -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,
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
#include "lib.h"
|
||||
#include "pv_map.h"
|
||||
#include "pv_alloc.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
@ -15,7 +15,6 @@
|
||||
|
||||
#include "lib.h"
|
||||
#include "lvm-file.h"
|
||||
#include "lvm-string.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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. */
|
@ -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
|
||||
|
||||
|
@ -21,7 +21,6 @@
|
||||
#include "display.h"
|
||||
#include "activate.h"
|
||||
#include "segtype.h"
|
||||
#include "str_list.h"
|
||||
#include "lvmcache.h"
|
||||
|
||||
#include <stddef.h> /* offsetof() */
|
||||
|
@ -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
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -14,7 +14,6 @@
|
||||
*/
|
||||
|
||||
#include "tools.h"
|
||||
#include "lv_alloc.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user