mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
vdo: rename vdoimport to lvm_import_vdo
Missed bits in previous rename commits.
This commit is contained in:
parent
49822624e8
commit
12ba43ccd0
26
configure
vendored
26
configure
vendored
@ -643,8 +643,6 @@ WRITE_INSTALL
|
|||||||
WRITECACHE
|
WRITECACHE
|
||||||
VDO_LIB
|
VDO_LIB
|
||||||
VDO_INCLUDE
|
VDO_INCLUDE
|
||||||
VDOIMPORT_PATH
|
|
||||||
VDOIMPORT
|
|
||||||
VDO
|
VDO
|
||||||
VALGRIND_POOL
|
VALGRIND_POOL
|
||||||
USRSBINDIR
|
USRSBINDIR
|
||||||
@ -693,6 +691,8 @@ OCFDIR
|
|||||||
OCF
|
OCF
|
||||||
MIRRORS
|
MIRRORS
|
||||||
MANGLING
|
MANGLING
|
||||||
|
LVMIMPORTVDO_PATH
|
||||||
|
LVMIMPORTVDO
|
||||||
LVM_RELEASE_DATE
|
LVM_RELEASE_DATE
|
||||||
LVM_RELEASE
|
LVM_RELEASE
|
||||||
LVM_PATH
|
LVM_PATH
|
||||||
@ -971,7 +971,7 @@ enable_dbus_service
|
|||||||
enable_pkgconfig
|
enable_pkgconfig
|
||||||
enable_write_install
|
enable_write_install
|
||||||
enable_fsadm
|
enable_fsadm
|
||||||
enable_vdoimport
|
enable_lvmimportvdo
|
||||||
enable_blkdeactivate
|
enable_blkdeactivate
|
||||||
enable_dmeventd
|
enable_dmeventd
|
||||||
enable_selinux
|
enable_selinux
|
||||||
@ -1710,7 +1710,7 @@ Optional Features:
|
|||||||
--enable-pkgconfig install pkgconfig support
|
--enable-pkgconfig install pkgconfig support
|
||||||
--enable-write_install install user writable files
|
--enable-write_install install user writable files
|
||||||
--disable-fsadm disable fsadm
|
--disable-fsadm disable fsadm
|
||||||
--disable-vdoimport disable vdoimport
|
--disable-lvmimportvdo disable lvm_import_vdo
|
||||||
--disable-blkdeactivate disable blkdeactivate
|
--disable-blkdeactivate disable blkdeactivate
|
||||||
--enable-dmeventd enable the device-mapper event daemon
|
--enable-dmeventd enable the device-mapper event daemon
|
||||||
--disable-selinux disable selinux support
|
--disable-selinux disable selinux support
|
||||||
@ -3143,7 +3143,7 @@ case "$host_os" in
|
|||||||
DM_IOCTLS=yes
|
DM_IOCTLS=yes
|
||||||
SELINUX=yes
|
SELINUX=yes
|
||||||
FSADM=yes
|
FSADM=yes
|
||||||
VDOIMPORT=yes
|
LVMIMPORTVDO=yes
|
||||||
BLKDEACTIVATE=yes
|
BLKDEACTIVATE=yes
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
@ -3157,7 +3157,7 @@ case "$host_os" in
|
|||||||
DM_IOCTLS=no
|
DM_IOCTLS=no
|
||||||
SELINUX=no
|
SELINUX=no
|
||||||
FSADM=no
|
FSADM=no
|
||||||
VDOIMPORT=no
|
LVMIMPORTVDO=no
|
||||||
BLKDEACTIVATE=no
|
BLKDEACTIVATE=no
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -12554,13 +12554,13 @@ $as_echo "$FSADM" >&6; }
|
|||||||
################################################################################
|
################################################################################
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5
|
||||||
$as_echo_n "checking whether to install lvm_import_vdo... " >&6; }
|
$as_echo_n "checking whether to install lvm_import_vdo... " >&6; }
|
||||||
# Check whether --enable-vdoimport was given.
|
# Check whether --enable-lvmimportvdo was given.
|
||||||
if test "${enable_vdoimport+set}" = set; then :
|
if test "${enable_lvmimportvdo+set}" = set; then :
|
||||||
enableval=$enable_vdoimport; VDOIMPORT=$enableval
|
enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VDOIMPORT" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5
|
||||||
$as_echo "$VDOIMPORT" >&6; }
|
$as_echo "$LVMIMPORTVDO" >&6; }
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5
|
||||||
@ -14048,10 +14048,10 @@ cat >>confdefs.h <<_ACEOF
|
|||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
VDOIMPORT_PATH="$SBINDIR/lvm_import_vdo"
|
LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo"
|
||||||
|
|
||||||
cat >>confdefs.h <<_ACEOF
|
cat >>confdefs.h <<_ACEOF
|
||||||
#define VDOIMPORT_PATH "$VDOIMPORT_PATH"
|
#define LVMIMPORTVDO_PATH "$LVMIMPORTVDO_PATH"
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
18
configure.ac
18
configure.ac
@ -46,7 +46,7 @@ case "$host_os" in
|
|||||||
DM_IOCTLS=yes
|
DM_IOCTLS=yes
|
||||||
SELINUX=yes
|
SELINUX=yes
|
||||||
FSADM=yes
|
FSADM=yes
|
||||||
VDOIMPORT=yes
|
LVMIMPORTVDO=yes
|
||||||
BLKDEACTIVATE=yes
|
BLKDEACTIVATE=yes
|
||||||
;;
|
;;
|
||||||
darwin*)
|
darwin*)
|
||||||
@ -60,7 +60,7 @@ case "$host_os" in
|
|||||||
DM_IOCTLS=no
|
DM_IOCTLS=no
|
||||||
SELINUX=no
|
SELINUX=no
|
||||||
FSADM=no
|
FSADM=no
|
||||||
VDOIMPORT=no
|
LVMIMPORTVDO=no
|
||||||
BLKDEACTIVATE=no
|
BLKDEACTIVATE=no
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -1317,9 +1317,9 @@ AC_MSG_RESULT($FSADM)
|
|||||||
################################################################################
|
################################################################################
|
||||||
dnl -- Enable lvm_import_vdo
|
dnl -- Enable lvm_import_vdo
|
||||||
AC_MSG_CHECKING(whether to install lvm_import_vdo)
|
AC_MSG_CHECKING(whether to install lvm_import_vdo)
|
||||||
AC_ARG_ENABLE(vdoimport, AC_HELP_STRING([--disable-vdoimport], [disable vdoimport]),
|
AC_ARG_ENABLE(lvmimportvdo, AC_HELP_STRING([--disable-lvmimportvdo], [disable lvm_import_vdo]),
|
||||||
VDOIMPORT=$enableval)
|
LVMIMPORTVDO=$enableval)
|
||||||
AC_MSG_RESULT($VDOIMPORT)
|
AC_MSG_RESULT($LVMIMPORTVDO)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
dnl -- Enable blkdeactivate
|
dnl -- Enable blkdeactivate
|
||||||
@ -1676,8 +1676,8 @@ USRSBINDIR="$(eval echo $(eval echo $usrsbindir))"
|
|||||||
FSADM_PATH="$SBINDIR/fsadm"
|
FSADM_PATH="$SBINDIR/fsadm"
|
||||||
AC_DEFINE_UNQUOTED(FSADM_PATH, ["$FSADM_PATH"], [Path to fsadm binary.])
|
AC_DEFINE_UNQUOTED(FSADM_PATH, ["$FSADM_PATH"], [Path to fsadm binary.])
|
||||||
|
|
||||||
VDOIMPORT_PATH="$SBINDIR/lvm_import_vdo"
|
LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo"
|
||||||
AC_DEFINE_UNQUOTED(VDOIMPORT_PATH, ["$VDOIMPORT_PATH"], [Path to lvm_import_vdo binary.])
|
AC_DEFINE_UNQUOTED(LVMIMPORTVDO_PATH, ["$LVMIMPORTVDO_PATH"], [Path to lvm_import_vdo script.])
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
dnl -- dmeventd pidfile and executable path
|
dnl -- dmeventd pidfile and executable path
|
||||||
@ -1855,6 +1855,8 @@ AC_SUBST(LVM_PATCHLEVEL)
|
|||||||
AC_SUBST(LVM_PATH)
|
AC_SUBST(LVM_PATH)
|
||||||
AC_SUBST(LVM_RELEASE)
|
AC_SUBST(LVM_RELEASE)
|
||||||
AC_SUBST(LVM_RELEASE_DATE)
|
AC_SUBST(LVM_RELEASE_DATE)
|
||||||
|
AC_SUBST(LVMIMPORTVDO)
|
||||||
|
AC_SUBST(LVMIMPORTVDO_PATH)
|
||||||
AC_SUBST(localedir)
|
AC_SUBST(localedir)
|
||||||
AC_SUBST(MANGLING)
|
AC_SUBST(MANGLING)
|
||||||
AC_SUBST(MIRRORS)
|
AC_SUBST(MIRRORS)
|
||||||
@ -1915,8 +1917,6 @@ AC_SUBST(SILENT_RULES)
|
|||||||
AC_SUBST(USRSBINDIR)
|
AC_SUBST(USRSBINDIR)
|
||||||
AC_SUBST(VALGRIND_POOL)
|
AC_SUBST(VALGRIND_POOL)
|
||||||
AC_SUBST(VDO)
|
AC_SUBST(VDO)
|
||||||
AC_SUBST(VDOIMPORT)
|
|
||||||
AC_SUBST(VDOIMPORT_PATH)
|
|
||||||
AC_SUBST(VDO_FORMAT_CMD)
|
AC_SUBST(VDO_FORMAT_CMD)
|
||||||
AC_SUBST(VDO_INCLUDE)
|
AC_SUBST(VDO_INCLUDE)
|
||||||
AC_SUBST(VDO_LIB)
|
AC_SUBST(VDO_LIB)
|
||||||
|
@ -571,6 +571,9 @@
|
|||||||
/* Path to lvmconfig binary. */
|
/* Path to lvmconfig binary. */
|
||||||
#undef LVMCONFIG_PATH
|
#undef LVMCONFIG_PATH
|
||||||
|
|
||||||
|
/* Path to lvm_import_vdo script. */
|
||||||
|
#undef LVMIMPORTVDO_PATH
|
||||||
|
|
||||||
/* Path to lvmlockd pidfile. */
|
/* Path to lvmlockd pidfile. */
|
||||||
#undef LVMLOCKD_PIDFILE
|
#undef LVMLOCKD_PIDFILE
|
||||||
|
|
||||||
@ -687,9 +690,6 @@
|
|||||||
/* Enable a valgrind aware build of pool */
|
/* Enable a valgrind aware build of pool */
|
||||||
#undef VALGRIND_POOL
|
#undef VALGRIND_POOL
|
||||||
|
|
||||||
/* Path to lvm_import_vdo binary. */
|
|
||||||
#undef VDOIMPORT_PATH
|
|
||||||
|
|
||||||
/* The path to 'vdoformat', if available. */
|
/* The path to 'vdoformat', if available. */
|
||||||
#undef VDO_FORMAT_CMD
|
#undef VDO_FORMAT_CMD
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
FSADMMAN = fsadm.8
|
FSADMMAN = fsadm.8
|
||||||
VDOIMPORTMAN = lvm_import_vdo.8
|
LVMIMPORTVDOMAN = lvm_import_vdo.8
|
||||||
BLKDEACTIVATEMAN = blkdeactivate.8
|
BLKDEACTIVATEMAN = blkdeactivate.8
|
||||||
DMEVENTDMAN = dmeventd.8
|
DMEVENTDMAN = dmeventd.8
|
||||||
DMFILEMAPDMAN = dmfilemapd.8
|
DMFILEMAPDMAN = dmfilemapd.8
|
||||||
@ -51,7 +51,7 @@ MAN8SYSTEMD_GENERATORS=lvm2-activation-generator.8
|
|||||||
|
|
||||||
ifeq (,$(findstring $(MAKECMDGOALS), distclean all_man install_all_man))
|
ifeq (,$(findstring $(MAKECMDGOALS), distclean all_man install_all_man))
|
||||||
MAN7 += lvmcache.7 lvmthin.7 lvmvdo.7
|
MAN7 += lvmcache.7 lvmthin.7 lvmvdo.7
|
||||||
MAN8+=$(FSADMMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) $(LVMDBUSDMAN) $(VDOIMPORTMAN)
|
MAN8+=$(FSADMMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) $(LVMDBUSDMAN) $(LVMIMPORTVDOMAN)
|
||||||
MAN8DM+=$(BLKDEACTIVATEMAN) $(DMEVENTDMAN) $(DMFILEMAPDMAN)
|
MAN8DM+=$(BLKDEACTIVATEMAN) $(DMEVENTDMAN) $(DMFILEMAPDMAN)
|
||||||
MAN8CLUSTER+=$(CMIRRORDMAN)
|
MAN8CLUSTER+=$(CMIRRORDMAN)
|
||||||
else
|
else
|
||||||
@ -59,8 +59,8 @@ else
|
|||||||
MAN8+=$(FSADMMAN)
|
MAN8+=$(FSADMMAN)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@VDOIMPORT@", "yes")
|
ifeq ("@LVMIMPORTVDO@", "yes")
|
||||||
MAN8+=$(VDOIMPORTMAN)
|
MAN8+=$(LVMIMPORTVDOMAN)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@BUILD_LVMDBUSD@", "yes")
|
ifeq ("@BUILD_LVMDBUSD@", "yes")
|
||||||
|
@ -89,4 +89,3 @@ Defaults to "\fI/dev\fP" and must be an absolute path.
|
|||||||
.BR lvm.conf (5),
|
.BR lvm.conf (5),
|
||||||
.P
|
.P
|
||||||
.BR vdo (8),
|
.BR vdo (8),
|
||||||
.BR vdo2lvm (8),
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2006-2015 Red Hat, Inc. All rights reserved.
|
# Copyright (C) 2006-2021 Red Hat, Inc. All rights reserved.
|
||||||
#
|
#
|
||||||
# This file is part of LVM2.
|
# This file is part of LVM2.
|
||||||
#
|
#
|
||||||
@ -31,7 +31,7 @@ ifeq ("@FSADM@", "yes")
|
|||||||
LVM_SCRIPTS += fsadm.sh
|
LVM_SCRIPTS += fsadm.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("@VDOIMPORT@", "yes")
|
ifeq ("@LVMIMPORTVDO@", "yes")
|
||||||
LVM_SCRIPTS += lvm_import_vdo.sh
|
LVM_SCRIPTS += lvm_import_vdo.sh
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -14,11 +14,11 @@
|
|||||||
#
|
#
|
||||||
# Author: Zdenek Kabelac <zkabelac at redhat.com>
|
# Author: Zdenek Kabelac <zkabelac at redhat.com>
|
||||||
#
|
#
|
||||||
# Script for converting VDO volumes to lvm2 VDO LVs
|
# Script for importing VDO volumes to lvm2 managed VDO LVs
|
||||||
#
|
#
|
||||||
# Needed utilities:
|
# Needed utilities:
|
||||||
# lvm, dmsetup,
|
# lvm, dmsetup,
|
||||||
# vdo, vdo2lvm,
|
# vdo,
|
||||||
# grep, awk, sed, blockdev, readlink, mkdir
|
# grep, awk, sed, blockdev, readlink, mkdir
|
||||||
#
|
#
|
||||||
# Conversion is using 'vdo convert' support from VDO manager to move
|
# Conversion is using 'vdo convert' support from VDO manager to move
|
||||||
@ -305,7 +305,7 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Obtain free space in this new PV
|
# Obtain free space in this new PV
|
||||||
# after 'vdo convert/vdo2lvm' call there is +2M free space at the front of the device
|
# after 'vdo convert' call there is +2M free space at the front of the device
|
||||||
case "$DRY" in
|
case "$DRY" in
|
||||||
0) pvfree=$("$LVM" pvs -o devsize --units b --nosuffix --noheadings "$DEVICE") ;;
|
0) pvfree=$("$LVM" pvs -o devsize --units b --nosuffix --noheadings "$DEVICE") ;;
|
||||||
*) pvfree=$("$BLOCKDEV" --getsize64 "$DEVICE") ;;
|
*) pvfree=$("$BLOCKDEV" --getsize64 "$DEVICE") ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user