21 Commits

Author SHA1 Message Date
Hongxu Jia 4fe6bf337a thin-provisioning-tools: fix compile failure on 32bit BSPs
$ echo 'MACHINE = "qemux86"' >> conf/local.conf
$ bitbake thin-provisioning-tools
```
error[E0080]: index out of bounds: the length is 1 but the index is 4
--> tmp/work/core2-32-wrs-linux/thin-provisioning-tools/1.3.1/build/target/release/build/devicemapper-sys-f88f57f28cd965d2/out/dm-bindings.rs:3:8718
|
3 | ...usize] ; ["Alignment of dm_ioctl"] [:: std :: mem :: align_of :: < dm_ioctl > () - 4usize] ; ["Offset of field: dm_ioctl::version"...
|             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ evaluation of `_` failed here
```

Inherit siteinfo to use SITEINFO_BITS replace TUNE_FEATURES
to test 32bit BSPs

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-05-13 00:21:39 -07:00
Jörg Sommer b6777aa320 thin-provisioning-tools: SRC_URI update + Update 1.1.0 -> 1.3.1
* https://github.com/jthornber/thin-provisioning-tools#project-hosting says:

  The upstream repository has been moved to device-mapper-utils[1], an
  organization established to collect utilities for various device mapper
  targets. While the original repository remains mirrored, we recommend
  cloning from the new location[2] for better long-term maintenance.

  [1]: https://github.com/device-mapper-utils/
  [2]: https://github.com/device-mapper-utils/thin-provisioning-tools

* 0001-Define-more-ioctl-codes-on-riscv32gc-unknown-linux-g.patch got merged
  upstream in rust-lang/libc.

* dependency rio got dropped in 1.3.0

* The new patch disable-cargo-metadata enables the feature of devicemapper,
  because the build fails otherwise.

* On 32 bit architectures, the new patch dms-no-layout-check disables checks
  from bindgen they always fail.

From thin-provisioning-tools-1.3.1/CHANGES:

v1.3.1
======

- Improve thin_ls performance using the optimized approach from thin_check

v1.3.0
======

- Improve thin_check performance with an optimized I/O strategy and more
  memory-efficient data structures.
- Rewrite AsyncIoEngine using tokio IoUring, removing the rio dependency
- Enhance thin_check with edge-case fixes, including space map boundary checks
- Update thin_explore to use ratatui, replacing the archived tui crate

v1.2.2
=======

- Fix command line parsing for era_invalidate --metadata-snapshot

v1.2.1
=======

- Fix incorrect number of data blocks in thin_shrink's output superblock

v1.2.0
=======

- Remove atty and safemem dependencies due to security concerns
- Remove unused threaded btree walk code
- Change BTreeWalker constructor to take IoEngine by reference for simplicity
  (breaking change)
- Update fixedbitset and few other dependencies with required code changes

Cc: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-03-21 14:23:46 -07:00
Khem Raj 13e814bb88 thin-provisioning-tools: Move out of clang dynamic layer to meta-oe
clang is now in oe-core so it can live in its original place

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-08-01 17:23:41 -07:00
Robert Yang e19b4c9755 thin-provisioning-tools: 1.0.13 -> 1.0.14
* License-Update: Update links in GPLv3 (http -> https)

* It need depend on pkg-config, udev and clang-native to build

* Move it to dynamic-layers since now it depends on meta-clang.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-24 21:31:38 -08:00
Wang Mingyu 5c016c4c5b thin-provisioning-tools: upgrade 1.0.12 -> 1.0.13
Changelog:
==========
- Extend cache_check --clear-needs-check-flag to fix leaked blocks
- Suppress error messages from cache/era_dump on broken pipe error
- Add BTreeIterator
- Support listing the highest mapped block in thin_ls
- Support repairing device details tree from thin_repair
- Support vectored write in SyncIoEngine
- Fix missing version option in thin_explore
- Fix subcommand parsing in dev-tools

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-15 16:36:15 -07:00
Libo Chen fa6831f0a8 thin-provisioning-tools: install missed thin_shrink and era_repair
Install missed thin_shrink and era_repair for thin provisioning

Signed-off-by: Libo Chen <libo.chen.cn@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-03 08:46:30 -07:00
Kai Kang 063cde6040 thin-provisioning-tools: install binary to ${sbindir}
The binaries of thin-provisioning-tools 0.9.0 are installed to
${sbindir}. And it also set BINDIR in the Makefile in the git repo:

BINDIR:=$(DESTDIR)$(PREFIX)/sbin

Tweak to install binary to ${sbindir} and create link files there.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-27 07:57:30 -07:00
Robert Yang 2da0ae3cb2 thin-provisioning-tools: 1.0.9 -> 1.0.12
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-09 10:55:23 -08:00
Alex Kiernan b5343d2f38 thin-provisioning-tools: Drop musl fixes (fixed upstream)
Upstream has resolved musl builds differently.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-01-12 08:51:11 -08:00
Alex Kiernan b7d5acb352 thin-provisioning-tools: Upgrade 1.0.4 -> 1.0.9
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-21 08:00:44 -08:00
Khem Raj b79b2514b3 thin-provisioning-tools: Fix build on musl.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 14:35:29 -07:00
Khem Raj f2cecc26c9 thin-provisioning-tools: Upgrade to 1.0.4
This version is written in rust, therefore re-write the recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 14:35:29 -07:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
wangmy 91a9a908af thin-provisioning-tools: upgrade 0.8.5 -> 0.9.0
Changelog is as follows:
======
- New support tools: thin_metadata_{pack,unpack}.
- thin_check can now check metadata snapshots.
- some metadata space map bug fixes.
- thin_check --auto-repair
- Stop thin_dump --repair/thin_repair ignoring under populated nodes.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-22 10:15:01 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
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>
2021-11-03 06:57:49 -07:00
changqing.li@windriver.com 260809cffd thin-provisioning-tools: switch branch from master to main
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:51 -08:00
Hongxu Jia 455bf87980 thin-provisioning-tools: 0.7.6 -> 0.8.5
- Rebase use-sh-on-path.patch
- Drop 0001-fix-compile-failed-with-libc-musl.patch which
  upstream has merged it

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-10 09:24:32 -07:00
Slater, Joseph 882d907f77 thin-provisioning tools: use sh on path for txt2man
txt2man will use /bin/sh and may try to invoke ksh if it
does not like /bin/sh.  Use "our" version of sh.

Signed-off-by: Joe Slater <joe.slater@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-11-29 18:55:52 -08:00
Hongxu Jia 0d4aa6076c thin-provisioning-tools: 0.6.3 -> 0.7.6
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-02 11:23:03 -07:00
Yi Zhao da28163466 thin-provisioning-tools: add UPSTREAM_CHECK_GITTAGREGEX
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-05-29 12:56:19 -07:00
Hongxu Jia 038a6e7847 thin-provisioning-tools: add version 0.6.3
It is required by lvm2, since lvm2 could find modprobe correctly
------
|lvm lvchange -a y --config  devices { preferred_names=["^/dev/mapper/",
"^/dev/md/", "^/dev/sd"] }  wrl/pool00
|/usr/sbin/thin_check: execvp failed: No such file or directory
| Check of pool wrl/pool00 failed (status:2). Manual repair required!
------

The thin-provisioning-tools provides /usr/sbin/thin_check.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-05 13:30:53 +02:00