mirror of
https://github.com/openwrt/packages.git
synced 2026-11-29 20:43:21 +04:00
Patch update: - 002-const-stdio.patch: adjust hunk offsets LVM2 2.03.44: - round non-power-of-two VDO slab size up to a power of two in lvcreate - make pthread_setname_np optional for older pthread libraries - fix blkio invalidation of held or dirty blocks and interrupted waits - report synchronous I/O failures through the blkio completion path - release the label scan before forking the polldaemon - add configure --with/out-libaio to control async engine support - add configure --with/out-liburing to control io_uring support - add optional io_uring io engine (requires liburing, kernel 5.1+) - default the I/O engine to iouring, then threads, then libaio, then sync - add pthread-based I/O engine to eliminate libaio io_destroy penalty - deprecate use_aio; use_aio=0 still selects sync I/O - add io_engine config to select the I/O engine - warn and use sync I/O when the requested I/O engine is unavailable - zero fill the tail of a short io engine read at the end of a device - drain in-flight libaio on io engine destroy - remove orphaned pvmove LV when force-removing a RAID LV locked for pvmove - preserve committed metadata when pv_write updates an existing PV - use mdadm-compatible CRC-32 when detecting DDF metadata - detect NVMe multipath devices and handle uncached primary devices - use the VDO pool data LV size for VDO memory checks - warn about RAID reshape data corruption on kernels older than 6.11 - suggest remedies when duplicate PV devices block VG updates or activation - improve documentation about PVs layered on top of LVs - reject cache pool resize with a clear error instead of failing internally - preserve RAID1 recovery state and rebuild markers when reducing images - accept transient or incomplete dm-raid status during repair and reduction - report the dead-primary RAID repair advice instead of refusing a rebuild - fix out-of-bounds read when parsing short dmeventd client messages - reject malformed numeric fields in dmeventd client registration messages - reject dmeventd registrations without a plugin or device name - use non-blocking dmeventd FIFO I/O and timeouts for stalled clients - fix dmeventd timeout thread spin when no timeout is scheduled - fix dmeventd monitor thread list when a thread fails before linking - unregister dmeventd devices from plugins if monitoring stops early - do not reuse dmeventd grace-period threads when the device inode is unknown - reset dmeventd pending SIGALRM without changing signal disposition - warn when parent directories of dmeventd FIFO paths are not secure - validate systemd-activated dmeventd FIFOs and use non-blocking I/O - fix dmeventd info when the running daemon returns no status reply data - run build-tree binaries against build libraries, not installed copies - avoid spurious dmeventd unregister errors when removing monitored snapshots - run mirror repair from dmeventd when mirror reports in-sync with failed legs - fix out-of-bounds access on an unterminated mda_header raw_locns (BZ2510937) - log open failures at debug for devices excluded after scan I/O errors - fix blkdeactivate to exit 0 when devices stay mounted by policy - fix blkdeactivate -l wholevg when another LV in the VG stays mounted - fix blkdeactivate exit status on failed deactivation or mpath queueing - fix blkdeactivate umount for paths with spaces or lsblk hex escapes - update lvmdump for lvmlockd; add -A; drop lvmetad collection - harden fsadm size parsing and use mktemp for temporary mount dirs - ignore _FSADM_YES from the environment; pass --yes only from the CLI - fix fsadm fsck exit codes and mount detection via /proc/self/mountinfo - harden lvm_import_vdo YAML and stat parsing against shell injection - use mktemp in lvm_import_vdo; validate TMPDIR and tool binary overrides - harden lvresize_fs_helper temp mounts, signal cleanup, and TMPDIR checks - validate lvresize_fs_helper resize sizes and value-taking options - fix lvresize_fs_helper btrfs, e2fsck handling, and --fsextend/--fsreduce - prevent redundant device access after scan I/O errors (DEV_SCAN_NOT_READ) - apply lvmlockd --lockopt force to all lock requests - keep PR state after failed start - apply PTPL when extending VG to ensure persistence when power cycling devs - allow vgextend before any host starts PR on new devs - fix pvscan autoactivation when DEVLINKS symlinks are not yet created LVM2 2.03.43: - wipe stale signatures before formatting a VDO data LV on thin storage - warn on non-power-of-2 thin pool chunk size; prompt when --chunksize is used - fix lvmpolld shutdown when reaping a finished client thread - fix dmeventd raid repair after partial replacement or resync completion - retry failed dmeventd snapshot extension with exponential backoff - fix dmeventd snapshot threshold advance when lvextend failed - fix dmeventd snapshot unmount on Invalid/Overflow, not 100% usage alone - reject undersized --pooldatavdo conversion before allocating pool metadata - allow lvchange --refresh and properties on hidden thin and cache pool sub LVs - allow 4K stripe size smaller than page size (except on DAX and MD RAID) - set recursion limit to 1024 LVs when processing device tree - remove cmirrord and clustered mirror log daemon support - remove legacy vgimportclone.sh script (superseded by native vgimportclone) - respect /run/mdadm/creating-<md_dev_name> in 69-dm-lvm.rules - add lvmconfig --edit Section/Field=Value to set an lvm.conf setting - add lvmconfig --edit Section/Field=- to remove an lvm.conf setting - fix use-after-free of host tag list on toolcontext refresh - fix memleak of config tree list nodes on toolcontext refresh - fix lvmconfig output of merged and unregistered config nodes - recurse into subsections when merging config trees - make lvmpersist reject non-block devices and unsupported device types - make lvmpersist validate --vg/--device and key options before use - make lvmpersist check for required PR tools (sg_persist, nvme, mpathpersist, jq) - make lvmpersist clean up registered keys when interrupted during start/takeover - make lvmpersist report failures from start, stop, clear, remove and query commands - fix lvmpersist --vg device list splitting to avoid pathname expansion device-mapper 1.02.218: - handle incomplete RAID health status from dm-raid 1.9.0/1.9.1 - fix dmstats handling of stale group members after @stats_delete - fix dmstats histogram bounds leak when statistics regions are re-listed - validate dmsetup vdostats device name before use - only prefix log output with source location when verbose is enabled device-mapper 1.02.217: - ignore stale raid sync/nosync in active table for reload suppression - fix dmvdostats help -c to list VDO report fields instead of dmstats fields - resolve dmsetup vdostats through device tree and try -vpool name suffix - make library initialization and finalization safe with dlopen and dlclose - disable LeakSanitizer for the dmsetup udevcomplete udev rule - hard limit config parser to 128 section nesting - convert recursive config cloning to iteration - fix missing phtread key delete. (1.02.216) - set parent pointers in dm_config_clone_node_with_mem when cloning nodes - fix dm_config_parent_name for root nodes in tree parsed by dm_config_parse Signed-off-by: Thanh Vũ <thanhv@tutamail.com>
175 lines
4.9 KiB
Makefile
175 lines
4.9 KiB
Makefile
#
|
|
# Copyright (C) 2009-2010 Stefan Monnier
|
|
# Copyright (C) 2011-2018 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v3+.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=LVM2
|
|
PKG_VERSION:=2.03.44
|
|
PKG_VERSION_DM:=1.02.218
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
|
|
PKG_SOURCE_URL:=https://sourceware.org/pub/lvm2 \
|
|
https://www.mirrorservice.org/sites/sourceware.org/pub/lvm2
|
|
|
|
PKG_HASH:=42f829927d2d459f5733fcdb38a5bf2455a8b84072193092450a9c69d6596eca
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/lvm2-$(BUILD_VARIANT)/$(PKG_NAME).$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
|
PKG_LICENSE:=GPL-2.0 LGPL-2.1
|
|
PKG_LICENSE_FILES:=COPYING COPYING.lib
|
|
PKG_CPE_ID:=cpe:/a:heinz_mauelshagen:lvm2
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/libdevmapper/Default
|
|
SECTION:=libs
|
|
CATEGORY:=Libraries
|
|
TITLE:=The Linux Kernel Device Mapper userspace library
|
|
URL:=https://sourceware.org/dm/
|
|
VERSION:=$(PKG_VERSION_DM)
|
|
DEPENDS:=+kmod-dm +libpthread +libuuid +librt +libblkid
|
|
endef
|
|
|
|
|
|
define Package/libdevmapper
|
|
$(call Package/libdevmapper/Default)
|
|
VARIANT := normal
|
|
DEFAULT_VARIANT:=1
|
|
CONFLICTS:=libdevmapper-selinux
|
|
endef
|
|
|
|
define Package/libdevmapper-selinux
|
|
$(call Package/libdevmapper/Default)
|
|
VARIANT := selinux
|
|
DEPENDS += +libselinux
|
|
PROVIDES := libdevmapper
|
|
endef
|
|
|
|
define Package/libdevmapper/description
|
|
The device-mapper is a component of the 2.6 linux kernel that supports logical
|
|
volume management. It is required by LVM2 and EVMS.
|
|
endef
|
|
|
|
define Package/libdevmapper-selinux/description
|
|
$(call Package/libdevmapper/description)
|
|
This variant supports SELinux
|
|
|
|
endef
|
|
|
|
define Package/lvm2/default
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
SUBMENU:=Disc
|
|
TITLE:=The Linux Logical Volume Manager
|
|
URL:=https://sourceware.org/lvm2/
|
|
DEPENDS:=+libaio
|
|
endef
|
|
|
|
define Package/lvm2
|
|
$(call Package/lvm2/default)
|
|
VARIANT := normal
|
|
DEPENDS += +libdevmapper
|
|
DEFAULT_VARIANT:=1
|
|
CONFLICTS:=lvm2-selinux
|
|
endef
|
|
|
|
define Package/lvm2-selinux
|
|
$(call Package/lvm2/default)
|
|
VARIANT := selinux
|
|
DEPENDS += +libdevmapper-selinux
|
|
PROVIDES := lvm2
|
|
endef
|
|
|
|
define Package/lvm2/description
|
|
LVM2 refers to a new userspace toolset that provide logical volume management
|
|
facilities on linux. It is reasonably backwards-compatible with the original
|
|
LVM toolset.
|
|
endef
|
|
|
|
define Package/lvm2-selinux/description
|
|
$(call Package/lvm2/description)
|
|
This variant supports SELinux
|
|
|
|
endef
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
|
--disable-o_direct \
|
|
--with-default-pid-dir=/var/run \
|
|
--with-default-dm-run-dir=/var/run \
|
|
--with-default-run-dir=/var/run/lvm \
|
|
--with-default-locking-dir=/var/lock/lvm \
|
|
--without-libnvme \
|
|
--disable-readline \
|
|
--disable-libedit \
|
|
--$(if $(findstring selinux,$(BUILD_VARIANT)),en,dis)able-selinux
|
|
|
|
ifneq ($(shell /bin/sh -c "echo -n 'X'"),X)
|
|
MAKE_SHELL = SHELL=/bin/bash
|
|
endif
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
CC="$(TARGET_CC)" \
|
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
$(MAKE_SHELL) \
|
|
install
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libdevmapper.h $(1)/usr/include
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdevmapper.so* $(1)/usr/lib
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
$(CP) $(PKG_BUILD_DIR)/libdm/libdevmapper.pc $(1)/usr/lib/pkgconfig
|
|
endef
|
|
|
|
define Package/libdevmapper/install
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdevmapper.so.* $(1)/usr/lib
|
|
endef
|
|
|
|
Package/libdevmapper-selinux/install = $(Package/libdevmapper/install)
|
|
|
|
define Package/lvm2/install
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lvm $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dmsetup $(1)/sbin
|
|
$(INSTALL_DIR) $(1)/etc/lvm
|
|
$(SED) '/^[[:space:]]*\(#\|$$$$\)/d; /cache_dir/s@.*@ cache_dir = "/tmp/lvm/cache"@' $(PKG_INSTALL_DIR)/etc/lvm/lvm.conf
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/lvm/lvm.conf $(1)/etc/lvm/
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/lvm/lvmlocal.conf $(1)/etc/lvm/
|
|
$(INSTALL_DIR) $(1)/etc/lvm/profile
|
|
$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/lvm/profile/* $(1)/etc/lvm/profile/
|
|
$(INSTALL_DIR) $(1)/lib/preinit
|
|
$(INSTALL_DATA) ./files/lvm2.preinit $(1)/lib/preinit/80_lvm2
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_BIN) ./files/lvm2.init $(1)/etc/init.d/lvm2
|
|
$(INSTALL_DIR) $(1)/etc/hotplug.d/block
|
|
$(INSTALL_DATA) ./files/lvm2.hotplug $(1)/etc/hotplug.d/block/20-lvm2
|
|
$(FIND) $(PKG_INSTALL_DIR)/usr/sbin/ -type l -print0 | xargs -0 -r $(CP) -a -t $(1)/sbin/
|
|
endef
|
|
|
|
Package/lvm2-selinux/install = $(Package/lvm2/install)
|
|
|
|
define Package/lvm2/conffiles
|
|
/etc/lvm/lvm.conf
|
|
endef
|
|
|
|
Package/lvm2-selinux/conffiles = $(Package/lvm2/conffiles)
|
|
|
|
$(eval $(call BuildPackage,libdevmapper))
|
|
$(eval $(call BuildPackage,libdevmapper-selinux))
|
|
$(eval $(call BuildPackage,lvm2))
|
|
$(eval $(call BuildPackage,lvm2-selinux))
|