From unknown Sat Sep 13 17:18:34 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#42329] [PATCH] gnu: Add thin-provisioning-tools. Resent-From: Michael Rohleder Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Jul 2020 22:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42329 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42329@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159450734519358 (code B ref -1); Sat, 11 Jul 2020 22:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Jul 2020 22:42:25 +0000 Received: from localhost ([127.0.0.1]:45030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juOCP-00052A-1O for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:42:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:58988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juOCK-000520-Ts for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:42:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juOCK-0004yl-MM for guix-patches@gnu.org; Sat, 11 Jul 2020 18:42:20 -0400 Received: from wp224.webpack.hosteurope.de ([2a01:488:42:1000:50ed:84e7::]:33980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juOCI-0001JB-E8 for guix-patches@gnu.org; Sat, 11 Jul 2020 18:42:20 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1juOCE-0003wC-3Z; Sun, 12 Jul 2020 00:42:14 +0200 Received: from [192.168.1.3] (helo=micha) by www.rohleder.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1juOCA-000732-H1 for guix-patches@gnu.org; Sun, 12 Jul 2020 00:42:13 +0200 From: Michael Rohleder X-PGP-Fingerprint: 755E 2DE5 D0D5 85C5 2E78 2830 7C7A FFBE FEF2 CB25 X-PGP-Key: https://www.rohleder.de/~mike/pgpkey.asc Date: Sun, 12 Jul 2020 00:42:06 +0200 Message-ID: <87r1thsmgx.fsf@rohleder.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1594507336;f958e4c4; X-HE-SMSGID: 1juOCE-0003wC-3Z Received-SPF: permerror client-ip=2a01:488:42:1000:50ed:84e7::; envelope-from=mike@rohleder.de; helo=wp224.webpack.hosteurope.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/11 18:42:14 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain I use lvmcache (on ssd) for / (on spinning rust) which works fine. But it writes the cache to the harddrive on every boot. In order to debug (and maybe fix it), I think these tools (esp. cache_check) might be useful... --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-thin-provisioning-tools.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] gnu: Add thin-provisioning-tools. From=200307f8f0e8f4abb3506ae7f05c84bfe79b50518d Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Sun, 12 Jul 2020 00:25:13 +0200 Subject: [PATCH] gnu: Add thin-provisioning-tools. * gnu/packages/linux.scm (thin-provisioning-tools): New variable. =2D-- gnu/packages/linux.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index bd7cbf183f..c010b3178b 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -46,6 +46,7 @@ ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 Morgan Smith ;;; Copyright =C2=A9 2020 John Soo +;;; Copyright =C2=A9 2020 Michael Rohleder ;;; ;;; This file is part of GNU Guix. ;;; @@ -73,6 +74,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages boost) #:use-module (gnu packages calendar) #:use-module (gnu packages check) #:use-module (gnu packages cpio) @@ -3403,6 +3405,36 @@ mapper. Kernel components are part of Linux-libre.") #t)))))) (synopsis "Logical volume management for Linux (statically linked)"))) =20 +(define-public thin-provisioning-tools + (package + (name "thin-provisioning-tools") + (version "0.8.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jthornber/thin-provisioning-tools.gi= t") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01wl8c0cjbx1smbhj8dx6av5bnw5775m58gasc3vqwvsj0s9hq19")))) + (build-system gnu-build-system) + (arguments + ;; doesnt build with --enable-testing + `(#:tests? #f)) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf))) + (inputs + `(("boost" ,boost) + ("expat" ,expat) + ("libaio" ,libaio))) + (synopsis "Tools for manipulating the metadata of device-mapper target= s") + (description "A suite of tools for manipulating the metadata of the +dm-thin, dm-cache and dm-era device-mapper targets.") + (home-page "https://github.com/jthornber/thin-provisioning-tools") + (license license:gpl3+))) + (define-public wireless-tools (package (name "wireless-tools") =2D-=20 2.27.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl8KQD4ACgkQfHr/vv7y yyVn6gf/clI0GJVsNwFs4Ykb+5iXAtBDAdTsLkPTbW0QFtbKucKYBs1R81Md3SbG D0MFB49tTLRP9MM/JkbxghE5pIIJYNLepH2PNlzw2bI1kIYGXOTzzDEQlile/xBZ aUcjVXmqFTWWQIbvb0ITujL+9zB7NvhBw2jlcuO9y9wzYdiE133eBOkfwCSawrQ4 4uKu1xAIqd6CYWBiOw4YoA0tt2OvC8aLma5/cxsVBmp9B3gvhfj7RWbnoE93yCjE UVgXkmLXanBllD9DSf/Rc1JrDJ0f/fU+uqcPuDaCzOox40jU8ENYowcFTiQWrnUH lAvmH+gjLX0pMtUBYezRy1/rNyP5vg== =uJJ9 -----END PGP SIGNATURE----- --==-=-=-- From unknown Sat Sep 13 17:18:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Michael Rohleder Subject: bug#42329: closed (Re: [PATCH] gnu: Add thin-provisioning-tools.) Message-ID: References: <20200712180041.hrjfi5pqso2d2s4c@gravity> <87r1thsmgx.fsf@rohleder.de> X-Gnu-PR-Message: they-closed 42329 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 42329@debbugs.gnu.org Date: Sun, 12 Jul 2020 18:01:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1594576862-21452-1" This is a multi-part message in MIME format... ------------=_1594576862-21452-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42329: [PATCH] gnu: Add thin-provisioning-tools. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42329@debbugs.gnu.org. --=20 42329: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42329 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1594576862-21452-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42329-done) by debbugs.gnu.org; 12 Jul 2020 18:00:48 +0000 Received: from localhost ([127.0.0.1]:46690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jugHQ-0005ZT-Lb for submit@debbugs.gnu.org; Sun, 12 Jul 2020 14:00:48 -0400 Received: from pat.zlotemysli.pl ([37.59.186.212]:54538) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jugHN-0005ZJ-1T for 42329-done@debbugs.gnu.org; Sun, 12 Jul 2020 14:00:47 -0400 Received: (qmail 32581 invoked by uid 1009); 12 Jul 2020 20:00:43 +0200 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25870. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.038786 secs); 12 Jul 2020 18:00:43 -0000 Received: from unknown (HELO gravity) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 12 Jul 2020 20:00:42 +0200 Date: Sun, 12 Jul 2020 20:00:41 +0200 From: Jakub =?utf-8?B?S8SFZHppb8WCa2E=?= To: Michael Rohleder Subject: Re: [PATCH] gnu: Add thin-provisioning-tools. Message-ID: <20200712180041.hrjfi5pqso2d2s4c@gravity> References: <87r1thsmgx.fsf@rohleder.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hy44br63aflwguaa" Content-Disposition: inline In-Reply-To: <87r1thsmgx.fsf@rohleder.de> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 42329-done Cc: 42329-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --hy44br63aflwguaa Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 12, 2020 at 12:42:06AM +0200, Michael Rohleder wrote: > I use lvmcache (on ssd) for / (on spinning rust) which works fine. > But it writes the cache to the harddrive on every boot. In order to > debug (and maybe fix it), I think these tools (esp. cache_check) might > be useful... >=20 Thanks for the patch! I decided to expand the comment a bit: ;; Doesn't build with --enable-testing due to a function name collision ;; with glibc. Fixed upstream. TODO: Enable tests when 0.9.0 is released. Apart from that, LGTM, so I pushed your patch as commit a68430712fe623a61ba5eecfb8aa4547079a96c2. Regards, Jakub K=C4=85dzio=C5=82ka --hy44br63aflwguaa Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl8LT8gACgkQ4xWnWEYT FWTXHxAAvDxIl+NBMaVHU/8OcP052SvDfnmO/Iqh5tWAViT924blntCjw3o+3AF2 5K68Vcao9E6Gb7HSIlt1P54mayLNb688WTU2qJfZ54ow6oqO7FnjtHcl4AFKGs3u iLvicWJ8vdx5U80qRZbf3dUhwVGm/G2wcQ+eA4u2uxndZuLipc8Sk64reH9uQ/Nv bgUncBlo/zc4ySXdHBAnmdIqZOYBp7DFjCTajoIm02HvkzWUkKwIiqrSTTA7YTF/ FzvZzbhLR7wTohgW9JGJQG0eNbMw0MQIl6JYZAGghLJn5m58sVQ8t+Q4oZ6E+SAo p8IiKx676lwL7F8brXANDW2SWfyCQ1xCLNwbeTO4SjIiPxhVWTiraqkf5T+F7MF3 VYDbyRlOiI2mHt6mD6agoajAdzH+2tL33InsO3USq2AFsESXrrZGbq2i+cjMCUL/ unqODqudlI7BGWCMyzH3nGEZgIiPwxWcPONyRLppgc0j/xWFCJjedxC+XG6XWtpv pmqzIinFbaEqpRtPiJUa6JuqrQo19+ulSUxeGitPyrICDm8Or2tPvSyomWRvyqgE k9C0t8tkexZwTg0l5UVxlaYCg1Xk75uzmQGvPqKR5andiTttzx1JUucQRcSeEgdT 4mPY8HXZlrIgEJAMtqB07ej0Sx17A+aVw+pgYyWluPHpsd0Q9hg= =QVuj -----END PGP SIGNATURE----- --hy44br63aflwguaa-- ------------=_1594576862-21452-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Jul 2020 22:42:25 +0000 Received: from localhost ([127.0.0.1]:45030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juOCP-00052A-1O for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:42:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:58988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1juOCK-000520-Ts for submit@debbugs.gnu.org; Sat, 11 Jul 2020 18:42:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juOCK-0004yl-MM for guix-patches@gnu.org; Sat, 11 Jul 2020 18:42:20 -0400 Received: from wp224.webpack.hosteurope.de ([2a01:488:42:1000:50ed:84e7::]:33980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1juOCI-0001JB-E8 for guix-patches@gnu.org; Sat, 11 Jul 2020 18:42:20 -0400 Received: from www.rohleder.de ([37.61.204.227]); authenticated by wp224.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) id 1juOCE-0003wC-3Z; Sun, 12 Jul 2020 00:42:14 +0200 Received: from [192.168.1.3] (helo=micha) by www.rohleder.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1juOCA-000732-H1 for guix-patches@gnu.org; Sun, 12 Jul 2020 00:42:13 +0200 From: Michael Rohleder To: guix-patches@gnu.org Subject: [PATCH] gnu: Add thin-provisioning-tools. X-PGP-Fingerprint: 755E 2DE5 D0D5 85C5 2E78 2830 7C7A FFBE FEF2 CB25 X-PGP-Key: https://www.rohleder.de/~mike/pgpkey.asc Date: Sun, 12 Jul 2020 00:42:06 +0200 Message-ID: <87r1thsmgx.fsf@rohleder.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-bounce-key: webpack.hosteurope.de;mike@rohleder.de;1594507336;f958e4c4; X-HE-SMSGID: 1juOCE-0003wC-3Z Received-SPF: permerror client-ip=2a01:488:42:1000:50ed:84e7::; envelope-from=mike@rohleder.de; helo=wp224.webpack.hosteurope.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/11 18:42:14 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain I use lvmcache (on ssd) for / (on spinning rust) which works fine. But it writes the cache to the harddrive on every boot. In order to debug (and maybe fix it), I think these tools (esp. cache_check) might be useful... --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-thin-provisioning-tools.patch Content-Transfer-Encoding: quoted-printable Content-Description: [PATCH] gnu: Add thin-provisioning-tools. From=200307f8f0e8f4abb3506ae7f05c84bfe79b50518d Mon Sep 17 00:00:00 2001 From: Michael Rohleder Date: Sun, 12 Jul 2020 00:25:13 +0200 Subject: [PATCH] gnu: Add thin-provisioning-tools. * gnu/packages/linux.scm (thin-provisioning-tools): New variable. =2D-- gnu/packages/linux.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index bd7cbf183f..c010b3178b 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -46,6 +46,7 @@ ;;; Copyright =C2=A9 2020 Brice Waegeneire ;;; Copyright =C2=A9 2020 Morgan Smith ;;; Copyright =C2=A9 2020 John Soo +;;; Copyright =C2=A9 2020 Michael Rohleder ;;; ;;; This file is part of GNU Guix. ;;; @@ -73,6 +74,7 @@ #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages bison) + #:use-module (gnu packages boost) #:use-module (gnu packages calendar) #:use-module (gnu packages check) #:use-module (gnu packages cpio) @@ -3403,6 +3405,36 @@ mapper. Kernel components are part of Linux-libre.") #t)))))) (synopsis "Logical volume management for Linux (statically linked)"))) =20 +(define-public thin-provisioning-tools + (package + (name "thin-provisioning-tools") + (version "0.8.5") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jthornber/thin-provisioning-tools.gi= t") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01wl8c0cjbx1smbhj8dx6av5bnw5775m58gasc3vqwvsj0s9hq19")))) + (build-system gnu-build-system) + (arguments + ;; doesnt build with --enable-testing + `(#:tests? #f)) + (native-inputs + `(("automake" ,automake) + ("autoreconf" ,autoconf))) + (inputs + `(("boost" ,boost) + ("expat" ,expat) + ("libaio" ,libaio))) + (synopsis "Tools for manipulating the metadata of device-mapper target= s") + (description "A suite of tools for manipulating the metadata of the +dm-thin, dm-cache and dm-era device-mapper targets.") + (home-page "https://github.com/jthornber/thin-provisioning-tools") + (license license:gpl3+))) + (define-public wireless-tools (package (name "wireless-tools") =2D-=20 2.27.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEdV4t5dDVhcUueCgwfHr/vv7yyyUFAl8KQD4ACgkQfHr/vv7y yyVn6gf/clI0GJVsNwFs4Ykb+5iXAtBDAdTsLkPTbW0QFtbKucKYBs1R81Md3SbG D0MFB49tTLRP9MM/JkbxghE5pIIJYNLepH2PNlzw2bI1kIYGXOTzzDEQlile/xBZ aUcjVXmqFTWWQIbvb0ITujL+9zB7NvhBw2jlcuO9y9wzYdiE133eBOkfwCSawrQ4 4uKu1xAIqd6CYWBiOw4YoA0tt2OvC8aLma5/cxsVBmp9B3gvhfj7RWbnoE93yCjE UVgXkmLXanBllD9DSf/Rc1JrDJ0f/fU+uqcPuDaCzOox40jU8ENYowcFTiQWrnUH lAvmH+gjLX0pMtUBYezRy1/rNyP5vg== =uJJ9 -----END PGP SIGNATURE----- --==-=-=-- ------------=_1594576862-21452-1--