summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/libblockdev
Commit message (Collapse)AuthorAgeFilesLines
* libblockdev: upgrade 3.2.0 -> 3.2.1Wang Mingyu2024-11-191-2/+2
| | | | | | | | | | | | | | | | | | | | | Changelog: =========== - crypto: check that IOC_OPAL_GET_STATUS is defined - smart: Clarify use of ID_ATA_SMART_ACCESS udev property - smart: Clarify ID_ATA_SMART_ACCESS udev property values - nvme: Avoid element-type g-i annotations - README: Update supported technologies - dist: Fix source URL in spec - packit: Fix generating spec from template - dist: Sync spec with downstream - misc: Fix installing test dependencies on Debian/Ubuntu - ci: Do not try to install test dependencies for CodeQL analysis - lvm: Clarify the global config functionallity in libblockdev - ci: Install 'python3-libdnf5' for TMT test plans - Makefile: Fix generating RPM log during bumpver Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 3.1.1 -> 3.2.0Yi Zhao2024-10-062-98/+7
| | | | | | | | | | | | | | ChangeLog: https://github.com/storaged-project/libblockdev/releases/tag/3.2.0 * Drop 0001-libext2fs-unused-parameters-fix.patch as the issue has been fixed upstream. * Add PACKAGECONFIG[smart] and PACKAGECONFIG[smartmontools]. * Add libyaml dependency for PACKAGECONFIG[lvm] and PACKAGECONFIG[lvm-dbus]. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Fix build with latest e2fsprogsKhem Raj2024-08-242-0/+93
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Add missing dependency on keyutils to crypto PACKAGECONFIG.Weisser, Pascal2024-06-131-1/+1
| | | | | | | | | Related: https://github.com/openembedded/meta-openembedded/issues/832 Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Add missing dependency on e2fsprogs to fs PACKAGECONFIG.Weisser, Pascal2024-06-131-1/+1
| | | | | | | | | Related: https://github.com/openembedded/meta-openembedded/issues/832 Signed-off-by: Weisser, Pascal <pascal.weisser.ext@karlstorz.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Use PYTHON_SITEPACKAGES_DIR instead of hard-coded site-packages directory pathalperak2024-04-151-1/+1
| | | | | | | | | | | | The following paths have been replaced with PYTHON_SITEPACKAGES_DIR: - "${libdir}/${PYTHON_DIR}/site-packages" - "${libdir}/python${PYTHON_BASEVERSION}/site-packages" - "${libdir}/python*/site-packages" - "${libdir}/python3.*/site-packages" Signed-off-by: alperak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 3.1.0 -> 3.1.1Wang Mingyu2024-04-021-2/+2
| | | | | | | | | | | | | | | | | | | | Changelog: =========== - Use glib2 G_GNUC_UNUSED in place of UNUSED locally defined - Port to G_GNUC_INTERNAL for controlling symbols visibility - Fix some more occurrences of missing port to G_GNUC_UNUSED - dm_logging: Annotate redirect_dm_log() printf format - tests: Add NVMe persistent discovery controller tests - tests: Add NVMe controller type checks - Makefile: Fix bumpver to work with micro versions - tests: Manually remove removed PVs from LVM devices file - tests: Ignore LVM devices file for non-LVM tests - tests: Fix removing custom LVM devices file - nvme: Add bd_nvme_is_tech_avail to the API file - lvm-dbus: Fix passing size for pvresize over DBus Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 3.0.4 -> 3.1.0Wang Mingyu2024-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ============== - tests: Default to /tmp for create_sparse_tempfile() - tests: Avoid setting up intermediary loop device for the nvme target - tests: Remove unreliable nvme attribute checks - lvm-dbus: Fix leaking error - lvm-dbus: Avoid using already-freed memory - utils: Add expected printf string annotation - fs: Report reason for open() and ioctl() failures - ci: Add an action to compile libblockdev with different compilers - Sync spec with downstream - Add BDPluginSpec constructor and use it in plugin_specs_from_names - overrides: Remove unused 'sys' import - ci: Manually prepare spec file for Packit - ci: Remove the custom version command for Packit - swap: Add support for checking label and UUID format - fs: Add a function to check label format for F2FS - fs: Add a generic function to check for fs info availability - fs: Fix allowed UUID for generic mkfs with VFAT - fs: Add support for getting filesystem min size for NTFS and Ext - tests: Remove some obsolete rules to skip tests - Mark NVDIMM plugin as deprecated since 3.1 - part: Fix potential double free when getting parttype - tests: Use BDPluginSpec constructor in LVM DBus plugin tests - python: Add a deepcopy function to our structs - Fix missing progress initialization in bd_crypto_luks_add_key - tests: Skip some checks for btrfs errors with btrfs-progs 6.6.3 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Upgrade 3.0.3 -> 3.0.4Leon Anavi2023-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | Upgrade to 3.0.4: - spec: Obsolete vdo plugin packages - spec: Move obsoleted devel subpackages to libblockdev-devel - ci: Bump actions/checkout from v3 to v4 - part: Do not open disk read-write for read only operations - fs: Disable progress for ntfsresize - packit: Add configuration for downstream builds - logging: Default to DEBUG log level if compiled with --enable-debug - Use log function when calling a plugin function that is not loaded - lvm-dbus: Replace g_critical calls with bd_utils_log_format - tests: Fail early when recompilation fails in library_test - tests: Fix "invalid escape sequence '\#'" warning from Python 3.12 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: fix QA error in case of multilibChen Qi2023-10-082-1/+34
| | | | | | | | | | | | | | | Fix the following QA error. ERROR: QA Issue: libblockdev: Files/directories were installed but not shipped in any package: /usr/lib /usr/lib/python3.11 /usr/lib/python3.11/site-packages /usr/lib/python3.11/site-packages/gi /usr/lib/python3.11/site-packages/gi/overrides /usr/lib/python3.11/site-packages/gi/overrides/BlockDev.py Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Upgrade 2.28 -> 3.03Markus Volk2023-09-241-10/+5
| | | | | | | | - delete removed configure options - add dependency on libnvme Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: clean up DEPENDSRoss Burton2023-05-201-2/+4
| | | | | | | | | | | | If you try to build libblockdev with an empty PACKAGECONFIG then the configure fails. Add autoconf-archive, glib-2.0, and udev; these were implicitly pulled in via other dependencies. Move kmod to DEPENDS as it's a hard requirement. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: add PACKAGECONFIG for toolsRoss Burton2023-05-201-2/+3
| | | | | | | | | Add another PACKAGECONFIG for the tools option. As this builds a binary in what is primarily a library package, also inherit lib_package so the tools are packaged in libblockdev-bin. Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 2.27 -> 2.28wangmy2022-09-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Changelog: ========== Fix typos lvm: Fix bd_lvm_get_supported_pe_sizes in Python on 32bit tests: Create bigger devices for XFS tests tests: Use ext instead of xfs in MountTestCase.test_mount_ro_device mpath: Memory leak fix spec: Require the same version utils from plugins mdraid: Try harder to get container UUID in bd_md_detail Add a test case for DDF arrays/containers mdraid: Do not ignore errors from bd_md_canonicalize_uuid in bd_md_examine mdraid: Try harder to get container UUID in bd_md_examine mdraid: Fix copy-paste error when checking return value tests: Wait for raid and mirrored LVs to be synced before removing tests: Make smaller images for test_lvcreate_type dm: Fix comparing DM RAID member devices UUID mdraid: Fix use after free ci: Add .lgtm.yaml config for LGTM ci: Add GitHub actions for running rpmbuilds and csmock mpath: Fix potential NULL pointer dereference Fix mismatched functions return value type Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 2.26 -> 2.27Wang Mingyu2022-09-052-102/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0001-lvm-Do-not-include-duplicate-entries-in-bd_lvm_lvs-o.patch removed since it's included in 2.27 Changelog: ========= fs: Return BD_FS_ERROR_UNKNOWN_FS on mounting unknown filesystem overrides: Fix translating exceptions in ErrorProxy tests: Do not check that swap flag is not supported on DOS table tests: Lower expected free space on newly created Ext filesystems tests: Remove test for NTFS read-only mounting vdo_stats: Default to 100 % savings for invalid savings values lvm: Fix reading statistics for VDO pools with VDO 8 tests: Fix creating loop device for CryptoTestLuksSectorSize tests: Use losetup to create 4k sector size loop device for testing s390: Remove double fclose in bd_s390_dasd_online (#2045784) lvm-dbus: Add support for changing compression and deduplication tests: Skip test_lvcreate_type on CentOS/RHEL 9 tests: Fix expected extended partition flags with new parted lvm: Do not set global config to and empty string lvm: Do not include duplicate entries in bd_lvm_lvs output lvm: Use correct integer type in for comparison crypto: Remove useless comparison in progress report in luks_format boilerplate_generator: Remove unused variable assignment kbd: Add missing progress reporting to bd_kbd_bcache_create kbd: Fix leaking error in bd_kbd_bcache_detach kbd: Fix potential NULL pointer dereference in bd_kbd_bcache_create crypto: Remove unused and leaking error in write_escrow_data_file Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update LICENSE variable to use SPDX license identifiersKhem Raj2022-03-041-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Do not include duplicate entries in bd_lvm_lvs outputHongxu Jia2021-12-092-1/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We use "-o segtypes" for the "lvs" command which means multisegment LVs will be twice in the output. [1] ... $ lvs --noheadings --nosuffix --nameprefixes --unquoted --units=b -a -o vg_name,lv_name,lv_uuid,lv_size,lv_attr,segtype,origin,pool_lv,data_lv,metadata_lv,role,move_pv,data_percent,metadata_percent,copy_percent,lv_tags OUTPUT: |LVM2_VG_NAME=rootvg LVM2_LV_NAME=RCSMW-ARM_CXP2020233_2_R20A154 LVM2_LV_UUID=TgjM5V-jhXX-tPTf-gPMa-c3w6-QEjo-7qkmVg LVM2_LV_SIZE=71303168 LVM2_LV_ATTR=wi-ao--- LVM2_SEGTYPE=linear LVM2_ORIGIN= LVM2_POOL_LV= LVM2_DATA_LV= LVM2_METADATA_LV= LVM2_LV_ROLE=public LVM2_MOVE_PV= LVM2_DATA_PERCENT= LVM2_METADATA_PERCENT= LVM2_COPY_PERCENT= LVM2_LV_TAGS= |LVM2_VG_NAME=rootvg LVM2_LV_NAME=RCSMW-ARM_CXP2020233_2_R20A154 LVM2_LV_UUID=TgjM5V-jhXX-tPTf-gPMa-c3w6-QEjo-7qkmVg LVM2_LV_SIZE=71303168 LVM2_LV_ATTR=wi-ao--- LVM2_SEGTYPE=linear LVM2_ORIGIN= LVM2_POOL_LV= LVM2_DATA_LV= LVM2_METADATA_LV= LVM2_LV_ROLE=public LVM2_MOVE_PV= LVM2_DATA_PERCENT= LVM2_METADATA_PERCENT= LVM2_COPY_PERCENT= LVM2_LV_TAGS= ... See [2] [1] https://github.com/storaged-project/libblockdev/pull/671 [2] https://github.com/storaged-project/libblockdev/issues/667 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipes: Update SRC_URI branch and protocolsRichard Purdie2021-11-031-1/+1
| | | | | | | | | This patch updates SRC_URIs using git to include branch=master if no branch is set and also to use protocol=https for github urls as generated by the conversion script in OE-Core. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: Inherit pkgconfigKhem Raj2021-09-241-1/+1
| | | | | | | | Fixes | checking for gobject-introspection... ../git/configure: line 13943: syntax error near unexpected token `gobject-introspection-1.0,,' | ../git/configure: line 13943: ` PKG_CHECK_EXISTS(gobject-introspection-1.0,,' Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 2.25 -> 2.26wangmy2021-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New minor release of the libblockdev library with multiple fixes. See below for details. Full list of changes Manuel Wassermann (1): exec: Fix deprecated glib function call Glib will rename "g_spawn_check_exit_status()" to "g_spawn_check_wait_status()" in version 2.69. Tomasz Paweł Gajc (1): remove unused variable and fix build with LLVM/clang Vojtech Trefny (22): NEWS.rts: Fix markup crypto: Fix default key size for non XTS ciphers vdo: Do not use g_memdup in bd_vdo_stats_copy fs: Allow using empty label for vfat with newest dosfstools tests: Call fs_vfat_mkfs with "--mbr=n" extra option in tests kbd: Fix memory leak crypto: Fix memory leak dm: Fix memory leak in the DM plugin and DM logging redirect function fs: Fix memory leak kbd: Fix memory leak lvm-dbus: Fix memory leak mdraid: Fix memory leak swap: Fix memory leak tests: Make sure the test temp mount is always unmounted tests: Do not check that XFS shrink fails with xfsprogs >= 5.12 tests: Temporarily skip test_snapshotcreate_lvorigin_snapshotmerge Fix skipping tests on Debian testing crypto: Let cryptsetup autodect encryption sector size when not specified tests: Do not try to remove VG before removing the VDO pool tests: Force remove LVM VG /dev/ entry not removed by vgremove tests: Tag LvmPVVGLVcachePoolCreateRemoveTestCase as unstable Add missing plugins to the default config Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-1/+1
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* libblockdev: update to 2.25Oleksandr Kravchuk2021-02-041-2/+1
| | | | | Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: upgrade 2.23 -> 2.24Andreas Müller2020-06-081-5/+2
| | | | | | | | Change SRC_URI: all udisks related sources moved to https://github.com/storaged-project Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* liblockdev: Loosen the regexp for py3Khem Raj2019-12-081-1/+1
| | | | | | | | | | | | | Fixes packaging with py 3.8 ERROR: libblockdev-2.23-r0 do_package: QA Issue: libblockdev: Files/directories were installed but not shipped in any package: /usr/lib/python3.8 /usr/lib/python3.8/site-packages /usr/lib/python3.8/site-packages/gi /usr/lib/python3.8/site-packages/gi/overrides /usr/lib/python3.8/site-packages/gi/overrides/BlockDev.py Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: update to 2.23Oleksandr Kravchuk2019-09-161-1/+1
| | | | | Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: fix PACKAGECONFIG regarding pythonQi.Chen@windriver.com2019-08-291-3/+3
| | | | | | | | | | | | | The python2 PACKAGECONFIG was added during an upgrade, defaulting to be disabled. The RDEPENDS part should be 'python' instead 'python2' because there's no python2 recipe. Also, we don't need to inherit some python classes. We just need to specify FILES variable. After this change, the python2 and python3 PACKAGECONFIG items could correctly work. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: 2.20 -> 2.22Hongxu Jia2019-07-101-1/+1
| | | | | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: 2.18 -> 2.20Hongxu Jia2018-11-271-3/+3
| | | | | | | | Add nvdimm support since upstream python3-blivet [20ae5ea Re-add nvdimm plugin Recommends on 3.1+.] Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: correct PACKAGECONFIGHongxu Jia2018-09-271-4/+3
| | | | | | | | | | | | | | | | | | | | | | Since commit `6cc057d libblockdev: make various features optional' applied, it introduced issues: 1. As configure.ac told us, mpath/dm/lvm/lvm-dbus should have the same depends, runtime depends [configure.ac] |AS_IF([test "x$with_dm" != "xno" -o "x$with_lvm" != "xno" -o "x$with_lvm_dbus" != "xno" -o "x$with_mpath" != "xno"], | [LIBBLOCKDEV_PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.93])], | []) [configure.ac] 2. Remove duplicated PACKAGECONFIG tags `lvm-dbus' 3. Remove `lvm-dbus' from PACKAGECONFIG since recipe lvm2 does not support dbus 4. Align with previous configure options, we should add `mpath' Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: make various features optionalMax Kellermann2018-09-241-7/+7
| | | | | Signed-off-by: Max Kellermann <max.kellermann@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: drop obsolete patchHongxu Jia2018-08-152-88/+0
| | | | | | | Since libblockdev is upgraded to 2.18, the local patch is obsolete. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: add PACKAGECONFIG for lvm-dbusHongxu Jia2018-08-081-0/+1
| | | | | | | | Currently, recipe lvm2 does not support dbus very well, so add PACKAGECONFIG lvm-dbus for libblockdev and disable it by default. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: clean up obsolete patchesHongxu Jia2018-08-024-683/+0
| | | | | | | | Since upgrading libblockdev to 2.18, these patches are useless, remove them. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: cleanup/fix PACKAGECONFIG/dependenciesIoan-Adrian Ratiu2018-07-271-8/+3
| | | | | | | | | | It only makes sense to rdepend on lvm2 if lvm is enabled by the configuration and the nss and volume-key dependencies are only needed if --with-escrow is configured. These dependencies are quite big so it's good to have a way to disable them. Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: 2.16 -> 2.18Changqing Li2018-07-202-35/+41
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libblockdev: update 2.10 -> 2.16Andreas Müller2018-04-085-68/+90
| | | | | | | | | | | | | I gave my best to rework patches: * 0005-fix-a-clang-compiling-issue.patch: This was a bit challenging. Because of I do not use clang I cannot test and confirm that no new breakers were introduced. * 0004-fix-compile-failure-against-musl-C-library.patch: Just tested to apply properly. Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* libblockdev: fix a clang compiling issueHongxu Jia2017-08-132-0/+112
| | | | | | | | | | | | | | | | | [snip] ../../../git/src/plugins/fs.c:2617:26: error: missing field 'start' initializer [-Werror,-Wmissing-field-initializers] PedGeometry geom = {0}; ^ ../../../git/src/plugins/fs.c:2618:30: error: missing field 'start' initializer [-Werror,-Wmissing-field-initializers] PedGeometry new_geom = {0}; [snip] Fix typo s/enum libvk_packet_format format/enum libvk_secret secret_type/ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* libblockdev: add recipe 2.10Hongxu Jia2017-08-135-0/+679
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>