66 Commits

Author SHA256 Message Date
11b1a23ba3 Accepting request 1303125 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1303125
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=27
2025-09-08 11:05:07 +00:00
81910a1ee1 upgrade to current version
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=62
2025-09-08 06:58:42 +00:00
d9ad7744ca Accepting request 1289821 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1289821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=26
2025-07-03 10:09:44 +00:00
c8daded3b2 Accepting request 1188457 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1188457
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=25
2024-07-19 13:26:09 +00:00
c2406b5eb7 - update to 3.1.1:
* 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

    replaced by LVM VDO)

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=58
2024-07-18 17:21:58 +00:00
2a3b871b34 Accepting request 1146368 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1146368
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=24
2024-02-15 19:59:58 +00:00
c93de21d0f Accepting request 1146122 from home:polslinux:branches:devel:libraries:c_c++
- Update to 3.1.0:
  * Add BDPluginSpec constructor and use it in plugin_specs_from_names
  * overrides: Remove unused 'sys' import
  * 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
  * Mark NVDIMM plugin as deprecated since 3.1
  * part: Fix potential double free when getting parttype
  * Fix missing progress initialization in bd_crypto_luks_add_key
  * 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

OBS-URL: https://build.opensuse.org/request/show/1146122
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=56
2024-02-13 11:02:59 +00:00
b7a77125de Accepting request 1127889 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1127889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=23
2023-11-22 17:54:12 +00:00
ba71f00ba1 Accepting request 1127568 from home:AdaLovelace:branches:openSUSE:Factory:zSystems
- Add %{_libdir}/libbd_s390.so for s390x because missing file identified

OBS-URL: https://build.opensuse.org/request/show/1127568
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=54
2023-11-21 10:53:19 +00:00
a83842e7e2 Accepting request 1117700 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1117700
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=22
2023-10-15 17:25:56 +00:00
f8b4492568 Accepting request 1117603 from home:polslinux:branches:devel:libraries:c_c++
- Update to 3.0.4:
  * plugins: use g_autofree for free'ing g_char's
  * plugins: btrfs: use g_autofree where possible for g_free
  * fs: correct btrfs set label description
  * nvme: Rework memory allocation for device ioctls
  * 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

OBS-URL: https://build.opensuse.org/request/show/1117603
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=52
2023-10-13 17:02:46 +00:00
36371965fb Accepting request 1114648 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1114648
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=21
2023-10-02 18:04:12 +00:00
f92941c39e Accepting request 1114268 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 3.0.3:
  * Always use "--fs ignore" with lvresize
  * nvme:
    - Use interim buffer for nvme_get_log_sanitize()
    - Generate HostID when missing
  * tests:
    - Specificy required versions when importing GLib and BlockDev
      introspection
    - Minor NVMe HostNQN fixes
    - Replace deprecated unittest assert calls
  * fs:
    - Fix leaking directories with temporary mounts
    - Fix memory leak
  * crypto: Correctly convert passphrases from Python to C

OBS-URL: https://build.opensuse.org/request/show/1114268
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=50
2023-10-02 02:58:02 +00:00
6accb1cd20 Accepting request 1108174 from devel:libraries:c_c++
Version update: 2.28 -> 3.0.2

OBS-URL: https://build.opensuse.org/request/show/1108174
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=20
2023-09-25 17:59:46 +00:00
b19b2c8c4e Version update: 3.0.1 -> 3.0.2
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=48
2023-08-24 01:29:17 +00:00
e9cf037192 Update latest changes file entry with the spec file changes not documented in the latest SR
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=47
2023-07-11 01:01:50 +00:00
72660cf952 Accepting request 1097042 from home:polslinux:branches:devel:libraries:c_c++
- Update to 3.0.1:
  * VDO a KBD plugins were removed.
  * New NVMe plugin was added.
  * Runtime dependencies are no longer checked during plugin
    initialization.
  * Part plugin was rewritten to use libfdisk instead of libparted
  * Crypto plugin API went through an extensive rewrite.
  * Support for new technologies was added to the crypto plugin:
    FileVault2 encryption, DM Integrity, LUKS2 tokens.
  * Filesystem plugin adds support for btrfs, F2FS, NILFS2,
    exFAT and UDF.
  * Support for new filesystem operations was added to the plugin:
    setting label and UUID, generic mkfs function and API
    for getting feature support for filesystems.
  * dmraid support was removed from the DM plugin.
  * Python 2 support was dropped.
  * loop: define LOOP_SET_BLOCK_SIZE is not defined
  * crypto: Remove stray struct redefinition
  * fs: Simplify struct BDFSInfo
  * vdo_stats: Remove unused libparted include
  * lvm: Make _vglock_start_stop static
  * fs: Add missing copy and free functions to the header file
- Drop no longer needed libblockdev-fix-libkmod-include.patch

OBS-URL: https://build.opensuse.org/request/show/1097042
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=46
2023-07-07 06:08:35 +00:00
85abcf1e6b Accepting request 1009290 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1009290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=19
2022-10-12 16:23:26 +00:00
6ae0779657 Accepting request 1008766 from home:dirkmueller:Factory
- update to 2.28:
  * 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

OBS-URL: https://build.opensuse.org/request/show/1008766
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=44
2022-10-10 07:54:13 +00:00
a1ea3a56a5 Accepting request 991754 from devel:libraries:c_c++
- Update to version 2.27:
  + Fix for s390x: Remove double fclose in bd_s390_dasd_online
  + fs: Return BD_FS_ERROR_UNKNOWN_FS on mounting unknown
    filesystem
  + overrides: Fix translating exceptions in ErrorProxy
  + vdo_stats: Default to 100 % savings for invalid savings values
  + lvm-dbus: Add support for changing compression and
    deduplication
  + lvm:
    - Fix reading statistics for VDO pools with VDO 8
    - Do not set global config to and empty string
    - Do not include duplicate entries in bd_lvm_lvs output
    - Use correct integer type in for comparison
  + crypto: Remove useless comparison in progress report in
    luks_format

OBS-URL: https://build.opensuse.org/request/show/991754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=18
2022-08-04 11:22:35 +00:00
edf8189ac7 Tweak .changes
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=42
2022-07-29 20:04:36 +00:00
60ecc6c4e2 Accepting request 991523 from home:AdaLovelace:branches:devel:libraries:c_c++
- Update to version 2.27:
  * Fix for s390x: Remove double fclose in bd_s390_dasd_online (#2045784)
  * fs: Return BD_FS_ERROR_UNKNOWN_FS on mounting unknown filesystem
  * overrides: Fix translating exceptions in ErrorProxy
  * vdo_stats: Default to 100 % savings for invalid savings values
  * lvm: Fix reading statistics for VDO pools with VDO 8
  * lvm-dbus: Add support for changing compression and deduplication
  * 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

OBS-URL: https://build.opensuse.org/request/show/991523
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=41
2022-07-29 20:01:47 +00:00
a60610d156 Accepting request 957622 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/957622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=17
2022-02-26 16:01:48 +00:00
2dd3164d3f Accepting request 955892 from home:iznogood:branches:GNOME:Next
Resub with better .changes

OBS-URL: https://build.opensuse.org/request/show/955892
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=40
2022-02-18 18:55:15 +00:00
ad387c7328 Accepting request 947295 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/947295
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=16
2022-01-21 00:25:03 +00:00
b79403d78b Accepting request 947225 from home:favogt:branches:devel:libraries:c_c++
- Remove unnecessary dependency of libbd_part2 on multipath-tools
  (bsc#1194771)

OBS-URL: https://build.opensuse.org/request/show/947225
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=39
2022-01-18 20:29:32 +00:00
efc011e5a2 Accepting request 932759 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/932759
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=15
2021-11-23 21:10:11 +00:00
bb587e5d58 Accepting request 932691 from home:luc14n0:branches:devel:libraries:c_c++
Fix lack of dependency on libblockdev-lvm needed by libblockdev package. The lvm-cache-stats binary needs the logical volume plugin to work (boo#1183948).

OBS-URL: https://build.opensuse.org/request/show/932691
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=38
2021-11-21 10:52:00 +00:00
78fb166bbe Accepting request 932237 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/932237
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=14
2021-11-20 21:47:50 +00:00
91f1584452 Accepting request 932020 from home:luc14n0:branches:devel:libraries:c_c++
Update to 2.26.

OBS-URL: https://build.opensuse.org/request/show/932020
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=37
2021-11-18 11:51:09 +00:00
f13fe892a4 Accepting request 881500 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/881500
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=13
2021-04-12 10:36:03 +00:00
19ab8c2c75 Accepting request 881466 from home:dimstar:Factory
- Add -Wno-deprecated-declarations to cflags: dealing with
  deprecations is upstreams business and should not hinder
  downstream packages from building.

OBS-URL: https://build.opensuse.org/request/show/881466
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=35
2021-03-26 12:07:43 +00:00
0d23fa111e Accepting request 865042 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/865042
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=12
2021-01-22 20:50:01 +00:00
6d5248a139 Accepting request 864582 from home:dirkmueller:branches:devel:libraries:c_c++
- update to 2.25:
  * exec: Fix polling for stdout and stderr
  * exec: Use non-blocking read and process the buffer manually
  * exec: Clarify the BDUtilsProgExtract callback documentation
  * tests: Add bufferbloat exec tests
  * tests: Add null-byte exec tests
  * lvm: Fix bd_lvm_vdopooldata_* symbols
  * exec: Fix setting locale for util calls
  * fs: Do not report error when errors were fixed by e2fsck
  * README: Use CI status image for 2.x-branch on 2.x
  * fs: Fix compile error in ext_repair caused by cherry pick from master
  * Mark all GIR file constants as guint64
  * lvm: Set thin metadata limits to match limits LVM uses in lvcreate
  * lvm: Do not use thin_metadata_size to recommend thin metadata size
  * lvm: Use the UNUSED macro instead of __attribute__((unused))
  * Fix max size limit for LVM thinpool metadata
  * loop: Retry LOOP_SET_STATUS64 on EAGAIN

OBS-URL: https://build.opensuse.org/request/show/864582
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=33
2021-01-20 16:18:19 +00:00
c6dc146cac Accepting request 828318 from devel:libraries:c_c++
- udpate to 2.24:
  * VDO plugin has been deprecated in this release (functionality replaced by LVM VDO) 
  * support for creating and managing LVM VDO volumes added
  * support for unlocking of BitLocker-compatible format BITLK added
  * new functions for (un)freezing filesystems added
  * test suite can now be run against installed version of libblockdev

OBS-URL: https://build.opensuse.org/request/show/828318
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=11
2020-09-01 18:01:00 +00:00
299a9af110 - udpate to 2.24:
* VDO plugin has been deprecated in this release (functionality replaced by LVM VDO) 
  * support for creating and managing LVM VDO volumes added
  * support for unlocking of BitLocker-compatible format BITLK added
  * new functions for (un)freezing filesystems added
  * test suite can now be run against installed version of libblockdev

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=31
2020-08-20 22:15:23 +00:00
db3d59f47b Accepting request 774349 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/774349
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=10
2020-02-19 11:40:02 +00:00
c09e6f4b5a Accepting request 774299 from home:tsaupe:branches:devel:libraries:c_c++
fix files directive for s390 in specfile

OBS-URL: https://build.opensuse.org/request/show/774299
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=29
2020-02-14 11:48:28 +00:00
b416ceb334 Accepting request 731527 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/731527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=9
2019-09-23 11:16:19 +00:00
ea83ddfae0 Accepting request 731502 from home:hmzhao:branches:devel:libraries:c_c++
libblockdev blocks lvm2 upgrading, please see url: https://build.opensuse.org/request/show/730344

- lvm2-clvm doesn't exist in lvm2-2.03, so change SPEC file
  libbd_lvm-dbus requires from lvm2-clvm to lvm2

OBS-URL: https://build.opensuse.org/request/show/731502
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=27
2019-09-17 12:23:25 +00:00
9aa208dd75 Accepting request 710123 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/710123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=8
2019-06-22 09:20:39 +00:00
c0a82899e5 Accepting request 709802 from home:iznogood:branches:devel:libraries:c_c++
- Update to version 2.22:
  + New minor release of the libblockdev library with multiple
    fixes.
  + nvdimm: New function for getting list of supported sector sizes
    for namespaces fixes.
  + Multiple memory leaks fixed.
- Changes from version 2.21:
  + crypto: Default key size for LUKS was changed to 512bit.
  + tools:
    - New simple cli tools that use libblockdev.
    - First tool is lvm-cache-stats for displaying stats for LVM
      cache devices.
    - Use configure option --without-tools to disable building
      these.
- Package new cli tool in main package, should possibly be moved
  into own sub-package in the future.

OBS-URL: https://build.opensuse.org/request/show/709802
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=25
2019-06-15 17:41:37 +00:00
Stephan Kulow
4be1f075f8 Accepting request 674702 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/674702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=7
2019-02-25 16:44:43 +00:00
a8af74a5d4 Accepting request 674688 from home:jengelh:branches:devel:libraries:c_c++
- Explain VDO. Fix grammar mishaps.

OBS-URL: https://build.opensuse.org/request/show/674688
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=23
2019-02-13 18:18:33 +00:00
Stephan Kulow
275e61fe8d Accepting request 670776 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/670776
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=6
2019-02-05 10:17:59 +00:00
ad5fe3b690 Accepting request 670218 from home:iznogood:factory
- Add pkgconfig(yaml-0.1) BuildRequires and pass with-vdo instead
  of without-vdo to configure, build vdo support.
- Following the above, add new sub-packages libbd_vdo2 and
  libbd_vdo-devel, aswell as handle the new library in post(un).

OBS-URL: https://build.opensuse.org/request/show/670218
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=21
2019-02-02 23:09:11 +00:00
84b8bb10f8 Accepting request 664875 from home:iznogood:branches:devel:libraries:c_c++
Add missing BR

OBS-URL: https://build.opensuse.org/request/show/664875
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=20
2019-01-24 10:54:50 +00:00
2ea4b7220d Accepting request 650249 from home:luc14n0:branches:devel:libraries:c_c++
update to version 2.20

OBS-URL: https://build.opensuse.org/request/show/650249
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=19
2018-12-09 23:27:14 +00:00
0d109bc02b Accepting request 619654 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/619654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=5
2018-07-01 19:25:43 +00:00
aa5ed5fe3a Accepting request 619653 from home:luc14n0:branches:devel:libraries:c_c++
Update to 2.18

OBS-URL: https://build.opensuse.org/request/show/619653
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=17
2018-06-29 00:45:37 +00:00
d83657684a Accepting request 604037 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/604037
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=4
2018-05-08 11:32:09 +00:00
a8106be5f7 Accepting request 603861 from home:luc14n0:Factory
Update to version 2.17.

OBS-URL: https://build.opensuse.org/request/show/603861
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=15
2018-05-04 13:13:42 +00:00
e6adaf86b1 Accepting request 596357 from devel:libraries:c_c++
Resplit plugins to avoid pulling clusterlvm support by default into the dependency chain (bsc#1086447).

OBS-URL: https://build.opensuse.org/request/show/596357
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=3
2018-04-22 12:29:36 +00:00
8715cd60b5 Accepting request 593649 from home:luc14n0:Factory
Resplit plugins to avoid pulling clusterlvm support by default into the dependency chain (bsc#1086447).

OBS-URL: https://build.opensuse.org/request/show/593649
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=13
2018-04-05 03:57:30 +00:00
2e62a38914 Accepting request 583156 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/583156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=2
2018-03-06 09:48:35 +00:00
824b6c9a4d Accepting request 583155 from home:luc14n0:Factory
Move all plugins into the shared library subpackage and their respective development files into the devel one. And add '-only' to LGPL License tag to comply with SPDX 3.0.

OBS-URL: https://build.opensuse.org/request/show/583155
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=11
2018-03-06 00:19:26 +00:00
c1433f12dd Accepting request 579622 from devel:libraries:c_c++
udisks2's new dependency.

OBS-URL: https://build.opensuse.org/request/show/579622
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libblockdev?expand=0&rev=1
2018-02-26 22:24:51 +00:00
b3ba6ffe7a Accepting request 579621 from home:luc14n0:Factory
Add SO version to the libbd_lvm-dbus pluing's libbd_utils Requires tag and replace lvm2-dbusd with lvm2-clvm (openSUSE's lvm2 daemon) to make the plugin subpackage installable.

OBS-URL: https://build.opensuse.org/request/show/579621
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=9
2018-02-23 18:19:13 +00:00
adf4e42969 Accepting request 579615 from home:luc14n0:Factory
Add SO version to the libbd_lvm-dbus pluing's libbd_utils Requires tag and replace lvm2-dbusd with lvm2-clvm to turn the plugin subpackage installable.

OBS-URL: https://build.opensuse.org/request/show/579615
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=8
2018-02-23 17:06:11 +00:00
aba389c096 Accepting request 579613 from devel:libraries:c_c++
Update to 2.16 (rev).

OBS-URL: https://build.opensuse.org/request/show/579613
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=7
2018-02-23 16:48:04 +00:00
ffba3ca554 Accepting request 579610 from home:luc14n0:Factory
Add SO version to the libbd_lvm-dbus plugin's libbd_utils Requires tag to turn the plugin subpackage installable.

OBS-URL: https://build.opensuse.org/request/show/579610
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=6
2018-02-23 16:30:37 +00:00
153498ebd4 Accepting request 578850 from home:luc14n0:Factory
Update to version 2.16.

OBS-URL: https://build.opensuse.org/request/show/578850
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=5
2018-02-22 16:44:30 +00:00
8468249805 Accepting request 573169 from devel:libraries:c_c++
- Add missing libblockdev Provides tag so packages can only require
  the versioned library when really needed.
- Remove excess Provides, BuildRequires and %ifs.
- Fix %description line mismatch for s390x parts.

OBS-URL: https://build.opensuse.org/request/show/573169
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=4
2018-02-05 22:28:26 +00:00
d6f05a66bb Accepting request 567832 from home:luc14n0:branches:devel:libraries:c_c++
Add missing libblockdev Provides tag so packages can only require the versioned library when really needed.

OBS-URL: https://build.opensuse.org/request/show/567832
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=3
2018-01-20 02:16:01 +00:00
efcbb7bd66 Accepting request 567528 from home:jengelh:branches:devel:libraries:c_c++
- Remove excess Provides, BuildRequires and %ifs.
- Fix %description line mismatch for s390x parts.

OBS-URL: https://build.opensuse.org/request/show/567528
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=2
2018-01-20 00:26:21 +00:00
cd84df5370 Accepting request 564448 from home:luc14n0:Factory
udisks2's new dependency.

OBS-URL: https://build.opensuse.org/request/show/564448
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libblockdev?expand=0&rev=1
2018-01-18 23:23:24 +00:00
8 changed files with 450 additions and 41 deletions

View File

@@ -1,27 +0,0 @@
From 8e072f794744bd17c57cceabb3884d3f0f6a1602 Mon Sep 17 00:00:00 2001
From: Thomas Blume <Thomas.Blume@suse.com>
Date: Fri, 16 May 2025 14:27:10 +0200
Subject: [PATCH] dont allow suid and dev set on fs resize
---
src/plugins/fs/generic.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/plugins/fs/generic.c b/src/plugins/fs/generic.c
index 69333944..1a6dd960 100644
--- a/src/plugins/fs/generic.c
+++ b/src/plugins/fs/generic.c
@@ -683,7 +683,9 @@ static gchar* fs_mount (const gchar *device, gchar *fstype, gboolean read_only,
"Failed to create temporary directory for mounting '%s'.", device);
return NULL;
}
- ret = bd_fs_mount (device, mountpoint, fstype, read_only ? "ro" : NULL, NULL, &l_error);
+
+ ret = bd_fs_mount (device, mountpoint, fstype, read_only ? "nosuid,nodev,ro" : "nosuid,nodev", NULL, &l_error);
+
if (!ret) {
g_propagate_prefixed_error (error, l_error, "Failed to mount '%s': ", device);
g_rmdir (mountpoint);
--
2.48.1

227
NEWS.rst
View File

@@ -1,3 +1,230 @@
Libblockdev 3.3.1
------------------
New bugfix release of libblockdev library fixing the LPE issue CVE-2025-6019.
**Full list of changes**
Thomas Blume (1):
- Don't allow suid and dev set on fs resize
Libblockdev 3.3.0
------------------
New minor release of the libblockdev library with multiple fixes. See below
for details.
**Full list of changes**
Nikola Forró (1):
- packit: Fix replacement of placeholders in post-upstream-clone
Tomas Bzatek (4):
- tests: Add KINGSTON SA400S37240G SSD skdump
Vojtech Trefny (26):
- tests: Enable LVM VDO tests on Debian
- Skip tests for plugins disabled during compile time
- fs: Add filesystem size limits to BDFSFeatures
- Makefile: Fix generating RPM log during bumpver
- New version - 3.2.1
- tests: Add a simple test case for bd_crypto_device_seems_encrypted
- lvm-dbus: Add support for repairing RAID LVs
- tests: Skip lvm_dbus_tests.LvmTestPartialLVs for now
- tests: Skip escrow tests in FIPS mode
- misc: Separate Ansible tasks into a different file
- misc: Add build and test dependecies for CentOS
- ci: Manually download blivet playbooks for revdeps tests
- ci: Remove amazon-ec2-utils if installed
- ci: Manually download udisks playbooks for revdeps tests
- misc: Do not use "with_items" when installing packages
- lvm: Add support for reading lvm.conf
- lvm: Require higher version of LVM for lvm.conf parsing
- lvm: Fix check for BD_LVM_TECH_CONFIG availability in CLI plugin
Libblockdev 3.2.1
------------------
New bugfix release of the libblockdev library with multiple fixes. See below
for details.
**Full list of changes**
James Hilliard (1):
- crypto: check that IOC_OPAL_GET_STATUS is defined
Tomas Bzatek (3):
- 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
Vojtech Trefny (9):
- 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
Libblockdev 3.2.0
------------------
This release brings new smart plugin with two actual plugin implementations:
libatasmart (default) and smartmontools (experimental). Please check the smart
plugin documentation for specifics and limitations.
Note to distributors: the default smart plugin is based on libatasmart and
requires no extra dependencies. The smartmontools plugin needs a runtime
dependency on 'smartctl' executable besides a json-glib-1.0 build dep.
A path to drivedb.h database can be specified with the --with-drivedb
option. The latter two features are mostly provided for testing.
**Full list of changes**
Giulio Benetti (1):
- Use glib2 G_GNUC_UNUSED in place of UNUSED locally defined
Jelle van der Waa (3):
- tests: split multi device tests into a new testcase class
- tests: introduce setup_test_device helper function
- btrfs: make btrfs subvolume listing consistent
Michal Rostecki (1):
- build: Fix linking with LLD
Stepan Yakimovich (1):
- crypto: Add support for conversion between different LUKS formats
Tomas Bzatek (35):
- 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
- New SMART plugin
- smart: Add bd_smart_set_enabled()
- smart: Add bd_smart_device_self_test()
- tests: Add basic SMART tests
- tests: Add SMART tests over supplied JSON dumps
- tests: Add tests for bd_smart_set_enabled()
- tests: Add tests for bd_smart_device_self_test()
- smart: Add SCSI/SAS status retrieval
- tests: Add SCSI SMART tests
- smart: Remove the ATA low-power mode detection
- smart: Introduce well-known attribute names, validation and pretty values
- smart: Refactor and split into libbd_smartmontools
- smart: Introduce new libatasmart plugin
- smart: Implement bd_smart_ata_get_info_from_data()
- smart: Use smartmontools drivedb.h for libatasmart validation
- build: Install lvm.h when only lvm_dbus enabled
- tests: Add SiliconPower SSD skdump reporting incorrect temp
- smart: Rework libatasmart temperature reporting
- tests: Split libatasmart and smartmontool tests
- utils/exec: Refactor extra args append out
- utils/exec: Add bd_utils_exec_and_capture_output_no_progress()
- tests: Add bd_utils_exec_and_capture_output_no_progress() tests
- smart: Add BDExtraArg arguments
- tests: Adapt smart plugin tests for the added extra arguments
- tests: Fix smartmontools plugin parsing of /dev/random
- tests: Add more libatasmart skdump samples
- nvme: Fix potential memory leak
- smart: Mark drivedb integration as experimental
- smart: Add documentation
- NEWS: add preliminary release notes for the smart plugin
Vojtech Trefny (60):
- Makefile: Do not include release in the tag
- 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
- lvm-dbus: Fix potential segfault in bd_lvm_init
- lvm-dbus: Fix leaking error in bd_lvm_init
- crypto: Fix double free in bd_crypto_luks_remove_key
- utils: Clarify usage of version in bd_utils_check_util_version
- Bump version to 3.1.1
- ci: Set custom release number for Packit
- tests: Fix running tests without ntfsprogs
- ci: Get version for packit from the SPEC file
- ci: Fix bumping release for Packit builds
- tests: Skip filesystem tests if kernel module is not available
- misc: Vagrantfile update
- misc: Remove CentOS 8 Stream from Vagrantfile and test dependencies
- Fix pylint possibly-used-before-assignment warning in BlockDev.py
- utils: Check also for aliases in bd_utils_have_kernel_module
- tests: Skip ExFAT UUID tests with recent exfatprogs
- fs: Ignore unused-parameter warning in the FS plugin
- fs: Ignore shift-count-overflow warning in FS plugin
- fs: Fix ignoring errors from libext2fs
- ci: Use Ubuntu 24.04 in GitHub actions
- misc: Fix enabling source repositories on latest Ubuntu
- ci: Run Blivet reverse dependency tests on pull requests
- ci: Add a simple tmt test and run it via packit
- misc: Add kernel-modules-extra to test dependencies
- ci: Run UDisks reverse dependency tests on pull requests
- tests: Skip exFAT UUID tests also on Fedora 39
- docs: Fix link to Python bindings documentation
- part: Fix copy-paste bug in bd_part_spec_copy
- infra: Add dependabot to automatically update GH actions
- lvm: Check for dm-vdo instead of kvdo module for VDO support
- lvm: Get VDO stats from device mapper instead of /sys/kvdo
- misc: Add vdo to test dependencies on Fedora
- tests: Temporarily skip LVM VDO tests on RHEL/CentOS 10
- crypto: Show error when trying using an invalid DM name
- part: Add human readable partition type to BDPartSpec
- fs: Fix docstring for bd_fs_ext?_get_min_size functions
- tests: No longer need to skip exfat UUID tests on Fedora
- crypto: Add a function to check for OPAL support for a device
- crypto: Add a function to wipe a LUKS HW-OPAL device
- crypto: Add information about HW encryption to BDCryptoLUKSInfo
- crypto: Add support for creating new LUKS HW-OPAL devices
- tests: Add a simple test case for LUKS HW-OPAL support
- crypto: Check for kernel SED OPAL support for OPAL operations
- ci: Remove priority from Testing farm repositories
- crypto: Add a function to run OPAL PSID reset
- tests: Fix skipping VDO tests on Debian and CentOS 10
- crypto: Fix name of bd_crypto_opal_wipe_device in crypto.h
- crypto: Fixing missing quotation marks in some error messages
- docs: Add BDCryptoLUKSHWEncryptionType to libblockdev-sections.txt
- docs: Fix documentation for the SMART plugin
- part: Document type_name in BDPartSpec docstring
- misc: Fix typos
- crypto: Fix GType macro for crypto context
- ci: Add a simple GH action to run spelling tools on our code
Vratislav Podzimek (1):
- Add cache size ratio to the output of lvm-cache-stats
dependabot[bot] (2):
- infra: bump actions/upload-artifact from 3 to 4
- infra: bump github/codeql-action from 2 to 3
guazhang (1):
- fixed md_create issue #1013
Libblockdev 3.1.1 Libblockdev 3.1.1
------------------ ------------------

5
_service Normal file
View File

@@ -0,0 +1,5 @@
<services>
<service name="download_files" mode="localonly">
<param name="enforceupstream">yes</param>
</service>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:41e4af66c9d78e795302d37825dfd88a4970f82da7b4ebe6487feba2afae44fb
size 1054326

BIN
libblockdev-3.1.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
libblockdev-3.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a2e2e448a19d420480b8cce5e0752197482a65cb62a9ed55d88b237da36600d1
size 1160139

View File

@@ -1,3 +1,132 @@
-------------------------------------------------------------------
Thu Sep 4 13:39:04 UTC 2025 - Thomas Blume <Thomas.Blume@suse.com>
- update to 3.3.1
- added smart and smartmontools plugin
- Dropped merged upstream patches:
0001-dont-allow-suid-and-dev-set-on-fs-resize.patch
* Add cache size ratio to the output of lvm-cache-stats
* Don't allow suid and dev set on fs resize
(bsc#1243285)
* Fix pylint possibly-used-before-assignment warning in BlockDev.py
* Makefile: Fix generating RPM log during bumpver
* NEWS: add preliminary release notes for the smart plugin
* New SMART plugin
* README: Update supported technologies
* Skip tests for plugins disabled during compile time
* build: Fix linking with LLD
* build: Install lvm.h when only lvm_dbus enabled
* ci: Add a simple GH action to run spelling tools on our code
* ci: Add a simple tmt test and run it via packit
* ci: Do not try to install test dependencies for CodeQL analysis
* ci: Fix bumping release for Packit builds
* ci: Get version for packit from the SPEC file
* ci: Install 'python3-libdnf5' for TMT test plans
* ci: Manually download blivet playbooks for revdeps tests
* ci: Manually download udisks playbooks for revdeps tests
* ci: Remove amazon-ec2-utils if installed
* ci: Remove priority from Testing farm repositories
* ci: Run Blivet reverse dependency tests on pull requests
* ci: Run UDisks reverse dependency tests on pull requests
* ci: Set custom release number for Packit
* ci: Use Ubuntu 24.04 in GitHub actions
* crypto: Add a function to check for OPAL support for a device
* crypto: Add a function to run OPAL PSID reset
* crypto: Add a function to wipe a LUKS HW-OPAL device
* crypto: Add information about HW encryption to BDCryptoLUKSInfo
* crypto: Add support for creating new LUKS HW-OPAL devices
* crypto: Check for kernel SED OPAL support for OPAL operations
* crypto: Fix GType macro for crypto context
* crypto: Fix double free in bd_crypto_luks_remove_key
* crypto: Fix name of bd_crypto_opal_wipe_device in crypto.h
* crypto: Fixing missing quotation marks in some error messages
* crypto: Show error when trying using an invalid DM name
* crypto: check that IOC_OPAL_GET_STATUS is defined
* dist: Fix source URL in spec
* dist: Sync spec with downstream
* docs: Add BDCryptoLUKSHWEncryptionType to libblockdev-sections.txt
* docs: Fix documentation for the SMART plugin
* docs: Fix link to Python bindings documentation
* fixed md_create issue #1013
* fs: Add filesystem size limits to BDFSFeatures
* fs: Fix docstring for bd_fs_ext?_get_min_size functions
* fs: Fix ignoring errors from libext2fs
* fs: Ignore shift-count-overflow warning in FS plugin
* fs: Ignore unused-parameter warning in the FS plugin
* infra: Add dependabot to automatically update GH actions
* infra: bump actions/upload-artifact from 3 to 4
* lvm-dbus: Add support for repairing RAID LVs
* lvm-dbus: Fix leaking error in bd_lvm_init
* lvm-dbus: Fix potential segfault in bd_lvm_init
* lvm: Add support for reading lvm.conf
* lvm: Check for dm-vdo instead of kvdo module for VDO support
* lvm: Clarify the global config functionallity in libblockdev
* lvm: Fix check for BD_LVM_TECH_CONFIG availability in CLI plugin
* lvm: Get VDO stats from device mapper instead of /sys/kvdo
* lvm: Require higher version of LVM for lvm.conf parsing
* misc: Add build and test dependecies for CentOS
* misc: Add kernel-modules-extra to test dependencies
* misc: Add vdo to test dependencies on Fedora
* misc: Do not use "with_items" when installing packages
* misc: Fix enabling source repositories on latest Ubuntu
* misc: Fix installing test dependencies on Debian/Ubuntu
* misc: Fix typos
* misc: Remove CentOS 8 Stream from Vagrantfile and test dependencies
* misc: Separate Ansible tasks into a different file
* misc: Vagrantfile update
* nvme: Avoid element-type g-i annotations
* nvme: Fix potential memory leak
* packit: Fix generating spec from template
* packit: Fix replacement of placeholders in post-upstream-clone
* part: Add human readable partition type to BDPartSpec
* part: Document type_name in BDPartSpec docstring
* part: Fix copy-paste bug in bd_part_spec_copy
* smart: Add BDExtraArg arguments
* smart: Add SCSI/SAS status retrieval
* smart: Add bd_smart_device_self_test()
* smart: Add bd_smart_set_enabled()
* smart: Add documentation
* smart: Clarify ID_ATA_SMART_ACCESS udev property values
* smart: Clarify use of ID_ATA_SMART_ACCESS udev property
* smart: Implement bd_smart_ata_get_info_from_data()
* smart: Introduce new libatasmart plugin
* smart: Introduce well-known attribute names, validation and pretty values
* smart: Mark drivedb integration as experimental
* smart: Refactor and split into libbd_smartmontools
* smart: Remove the ATA low-power mode detection
* smart: Rework libatasmart temperature reporting
* smart: Use smartmontools drivedb.h for libatasmart validation
* tests: Adapt smart plugin tests for the added extra arguments
* tests: Add KINGSTON SA400S37240G SSD skdump
* tests: Add SCSI SMART tests
* tests: Add SMART tests over supplied JSON dumps
* tests: Add SiliconPower SSD skdump reporting incorrect temp
* tests: Add a simple test case for LUKS HW-OPAL support
* tests: Add a simple test case for bd_crypto_device_seems_encrypted
* tests: Add basic SMART tests
* tests: Add bd_utils_exec_and_capture_output_no_progress() tests
* tests: Add more libatasmart skdump samples
* tests: Add tests for bd_smart_device_self_test()
* tests: Add tests for bd_smart_set_enabled()
* tests: Enable LVM VDO tests on Debian
* tests: Fix running tests without ntfsprogs
* tests: Fix skipping VDO tests on Debian and CentOS 10
* tests: Fix smartmontools plugin parsing of /dev/random
* tests: No longer need to skip exfat UUID tests on Fedora
* tests: Skip ExFAT UUID tests with recent exfatprogs
* tests: Skip escrow tests in FIPS mode
* tests: Skip exFAT UUID tests also on Fedora 39
* tests: Skip filesystem tests if kernel module is not available
* tests: Skip lvm_dbus_tests.LvmTestPartialLVs for now
* tests: Split libatasmart and smartmontool tests
* tests: Temporarily skip LVM VDO tests on RHEL/CentOS 10
* utils/exec: Add bd_utils_exec_and_capture_output_no_progress()
* utils/exec: Refactor extra args append out
* utils: Check also for aliases in bd_utils_have_kernel_module
* utils: Clarify usage of version in bd_utils_check_util_version
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jun 23 13:50:50 UTC 2025 - Thomas Blume <Thomas.Blume@suse.com> Mon Jun 23 13:50:50 UTC 2025 - Thomas Blume <Thomas.Blume@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package libblockdev # spec file for package libblockdev
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2025 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -31,6 +31,8 @@
%bcond_without nvme_plugin %bcond_without nvme_plugin
%bcond_without part_plugin %bcond_without part_plugin
%bcond_without swap_plugin %bcond_without swap_plugin
%bcond_without smart_plugin
%bcond_without smartmontools_plugin
### ###
%bcond_without gi_bindings %bcond_without gi_bindings
%bcond_without gtk_doc %bcond_without gtk_doc
@@ -41,15 +43,14 @@
%define soversion 3 %define soversion 3
Name: libblockdev Name: libblockdev
Version: 3.1.1 Version: 3.3.1
Release: 0 Release: 0
Summary: A library for low-level manipulation with block devices Summary: A library for low-level manipulation with block devices
License: LGPL-2.1-only License: LGPL-2.1-only
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
URL: https://github.com/storaged-project/libblockdev URL: https://github.com/storaged-project/libblockdev
Source0: %{url}/releases/download/%{version}-1/libblockdev-%{version}.tar.gz Source0: %{url}/releases/download/%{version}/libblockdev-%{version}.tar.gz
Source1: %{url}/raw/%{version}-1/NEWS.rst Source1: %{url}/raw/%{version}/NEWS.rst
Patch0: 0001-dont-allow-suid-and-dev-set-on-fs-resize.patch
############################################################################### ###############################################################################
# M A I N P A C K A G E # M A I N P A C K A G E
@@ -605,6 +606,77 @@ with the libbd_part plugin/library.
%dir %{_includedir}/blockdev %dir %{_includedir}/blockdev
%endif %endif
###############################################################################
# S M A R T P L U G I N S
###############################################################################
%if %{with smart_plugin}
%package -n libbd_smart%{soversion}
Summary: The smart plugin for the LibBlockDev library
Group: System/Libraries
Requires: libbd_utils%{soversion} >= %{version}
Requires: util-linux
Provides: libblockdev-smart = %{version}
BuildRequires: libatasmart-devel >= 0.17
%description -n libbd_smart%{soversion}
The libblockdev library plugin (and in the same time a standalone library)
providing S.M.A.R.T. monitoring and testing functionality, based
on libatasmart.
%ldconfig_scriptlets -n libbd_smart%{soversion}
%files -n libbd_smart%{soversion} -f smart-plugin.filelist
%package -n libbd_smart-devel
Summary: Development files for the libblockdev-smart plugin/library
Group: Development/Libraries/C and C++
Requires: glib2-devel
Requires: libbd_smart%{soversion} = %{version}
Requires: libbd_utils-devel >= %{version}
Provides: libblockdev-smart-devel = %{version}
%description -n libbd_smart-devel
This package contains header files and pkg-config files needed for development
with the libblockdev-smart plugin/library.
%files -n libbd_smart-devel -f smart-plugin-devel.filelist
%dir %{_includedir}/blockdev
%endif
%if %{with smartmontools_plugin}
%package -n libbd_smartmontools%{soversion}
Summary: The smartmontools plugin for the libblockdev library
Group: System/Libraries
Requires: libbd_utils%{soversion} >= %{version}
Requires: smartmontools >= 7.0
Provides: libblockdev-smartmontools = %{version}
BuildRequires: json-glib-devel
%description -n libbd_smartmontools%{soversion}
The libblockdev library plugin (and in the same time a standalone library)
providing S.M.A.R.T. monitoring and testing functionality, based
on smartmontools.
%ldconfig_scriptlets -n libbd_smartmontools%{soversion}
%files -n libbd_smartmontools%{soversion} -f smartmontools-plugin.filelist
%package -n libbd_smartmontools-devel
Summary: Development files for the libblockdev-smart plugin/library
Group: Development/Libraries/C and C++
Requires: glib2-devel
Requires: libbd_smartmontools%{soversion} = %{version}
Requires: libbd_utils-devel >= %{version}
Provides: libblockdev-smartmontools-devel = %{version}
%description -n libbd_smartmontools-devel
This package contains header files and pkg-config files needed for development
with the libblockdev-smart plugin/library.
%endif
%files -n libbd_smartmontools-devel -f smartmontools-plugin-devel.filelist
%dir %{_includedir}/blockdev
############################################################################### ###############################################################################
# S W A P P L U G I N # S W A P P L U G I N
############################################################################### ###############################################################################
@@ -709,6 +781,8 @@ fi
--with%{!?with_mpath_plugin:out}-mpath \ --with%{!?with_mpath_plugin:out}-mpath \
--with%{!?with_part_plugin:out}-part \ --with%{!?with_part_plugin:out}-part \
--with%{!?with_swap_plugin:out}-swap \ --with%{!?with_swap_plugin:out}-swap \
--with%{!?with_smart_plugin:out}-smart \
--with%{!?with_smartmontools_plugin:out}-smartmontools \
; ;
%make_build %make_build
@@ -731,6 +805,8 @@ find %{buildroot} -name "*.la" -print -type f -delete
%{?with_mpath_plugin: %global plugins %{?plugins} mpath} %{?with_mpath_plugin: %global plugins %{?plugins} mpath}
%{?with_part_plugin: %global plugins %{?plugins} part} %{?with_part_plugin: %global plugins %{?plugins} part}
%{?with_swap_plugin: %global plugins %{?plugins} swap} %{?with_swap_plugin: %global plugins %{?plugins} swap}
%{?with_smart_plugin: %global plugins %{?plugins} smart}
%{?with_smartmontools_plugin: %global plugins %{?plugins} smartmontools}
%{?with_utils: %global plugins %{?plugins} utils} %{?with_utils: %global plugins %{?plugins} utils}
echo %{?plugins} echo %{?plugins}
@@ -743,13 +819,15 @@ for plugin in %{?plugins}; do
test "${plugin}" = lvm-dbus && continue test "${plugin}" = lvm-dbus && continue
ls -1 %{buildroot}%{_includedir}/blockdev/${plugin}.h \
>> ${plugin}-plugin-devel.filelist
if [ "${plugin}" = fs ]; then if [ "${plugin}" = fs ]; then
ls -1 %{buildroot}%{_includedir}/blockdev/${plugin}/* \ ls -1 %{buildroot}%{_includedir}/blockdev/${plugin}/* \
>> ${plugin}-plugin-devel.filelist >> ${plugin}-plugin-devel.filelist
fi fi
test "${plugin}" = smartmontools && continue
ls -1 %{buildroot}%{_includedir}/blockdev/${plugin}.h \
>> ${plugin}-plugin-devel.filelist
done done
sed -i -r 's,%{buildroot}(.*),\1,' ./*.filelist sed -i -r 's,%{buildroot}(.*),\1,' ./*.filelist