Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] btrfs-progs: update to 6.1.
@ 2022-12-27 11:40 motorto
  2022-12-27 17:46 ` [PR REVIEW] " paper42
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: motorto @ 2022-12-27 11:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1114 bytes --]

There is a new pull request by motorto against master on the void-packages repository

https://github.com/motorto/void-packages btrfs-progs-6.1.1
https://github.com/void-linux/void-packages/pull/41317

btrfs-progs: update to 6.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
```
pkg:btrfs-progs host:x86_64 target:x86_64 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:x86_64-musl cross:n result:OK
pkg:btrfs-progs host:i686 target:i686 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64 cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l cross:y result:OK
```

A patch file from https://github.com/void-linux/void-packages/pull/41317.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-btrfs-progs-6.1.1-41317.patch --]
[-- Type: text/x-diff, Size: 1231 bytes --]

From 4f1768e36b2bab7922fc17b6d749fe77d87c0b34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Tue, 27 Dec 2022 11:39:56 +0000
Subject: [PATCH] btrfs-progs: update to 6.1.

---
 srcpkgs/btrfs-progs/template | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/btrfs-progs/template b/srcpkgs/btrfs-progs/template
index 515ac7314582..5002118274bf 100644
--- a/srcpkgs/btrfs-progs/template
+++ b/srcpkgs/btrfs-progs/template
@@ -1,6 +1,6 @@
 # Template file for 'btrfs-progs'
 pkgname=btrfs-progs
-version=5.19.1
+version=6.1
 revision=1
 build_style=gnu-configure
 make_check_target=test
@@ -15,7 +15,7 @@ license="GPL-2.0-only, LGPL-2.1-or-later"
 homepage="https://btrfs.wiki.kernel.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/kdave/btrfs-progs/master/CHANGES"
 distfiles="${KERNEL_SITE}/kernel/people/kdave/${pkgname}/${pkgname}-v${version}.tar.xz"
-checksum=26429e540343ccc7f5d4b3f8f42b916713280e898c5471da705026ef6d2c10a6
+checksum=378bcafabdb64c453ac64fef3d4cf8c8d5e47f310319743f580667f9c1114657
 # Most of the tests depend on `mount` and `fallocate` commands, which are not
 # presented in chroot-util-linux
 make_check=no

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR REVIEW] btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
@ 2022-12-27 17:46 ` paper42
  2022-12-27 19:10 ` [PR PATCH] [Updated] " motorto
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paper42 @ 2022-12-27 17:46 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/41317#discussion_r1057820578

Comment:
```suggestion
distfiles="${KERNEL_SITE}/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"
```

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
  2022-12-27 17:46 ` [PR REVIEW] " paper42
@ 2022-12-27 19:10 ` motorto
  2022-12-29 16:17 ` motorto
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: motorto @ 2022-12-27 19:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

There is an updated pull request by motorto against master on the void-packages repository

https://github.com/motorto/void-packages btrfs-progs-6.1.1
https://github.com/void-linux/void-packages/pull/41317

btrfs-progs: update to 6.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
```
pkg:btrfs-progs host:x86_64 target:x86_64 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:x86_64-musl cross:n result:OK
pkg:btrfs-progs host:i686 target:i686 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64 cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l cross:y result:OK
```

A patch file from https://github.com/void-linux/void-packages/pull/41317.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-btrfs-progs-6.1.1-41317.patch --]
[-- Type: text/x-diff, Size: 1373 bytes --]

From b850f60ad98619d2ec995e7c3bfa18133816dcbc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Tue, 27 Dec 2022 11:39:56 +0000
Subject: [PATCH] btrfs-progs: update to 6.1.

---
 srcpkgs/btrfs-progs/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/btrfs-progs/template b/srcpkgs/btrfs-progs/template
index 515ac7314582..e5a587a27688 100644
--- a/srcpkgs/btrfs-progs/template
+++ b/srcpkgs/btrfs-progs/template
@@ -1,6 +1,6 @@
 # Template file for 'btrfs-progs'
 pkgname=btrfs-progs
-version=5.19.1
+version=6.1
 revision=1
 build_style=gnu-configure
 make_check_target=test
@@ -14,8 +14,8 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-2.0-only, LGPL-2.1-or-later"
 homepage="https://btrfs.wiki.kernel.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/kdave/btrfs-progs/master/CHANGES"
-distfiles="${KERNEL_SITE}/kernel/people/kdave/${pkgname}/${pkgname}-v${version}.tar.xz"
-checksum=26429e540343ccc7f5d4b3f8f42b916713280e898c5471da705026ef6d2c10a6
+distfiles="${KERNEL_SITE}/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"
+checksum=378bcafabdb64c453ac64fef3d4cf8c8d5e47f310319743f580667f9c1114657
 # Most of the tests depend on `mount` and `fallocate` commands, which are not
 # presented in chroot-util-linux
 make_check=no

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
  2022-12-27 17:46 ` [PR REVIEW] " paper42
  2022-12-27 19:10 ` [PR PATCH] [Updated] " motorto
@ 2022-12-29 16:17 ` motorto
  2022-12-31 12:51 ` [PR PATCH] [Updated] " motorto
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: motorto @ 2022-12-29 16:17 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

New comment by motorto on void-packages repository

https://github.com/void-linux/void-packages/pull/41317#issuecomment-1367441026

Comment:
@paper42: dont merge, lets wait for a minor release fix because of this:

> https://bugzilla.redhat.com/show_bug.cgi?id=2156710

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Updated] btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
                   ` (2 preceding siblings ...)
  2022-12-29 16:17 ` motorto
@ 2022-12-31 12:51 ` motorto
  2022-12-31 12:52 ` motorto
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: motorto @ 2022-12-31 12:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

There is an updated pull request by motorto against master on the void-packages repository

https://github.com/motorto/void-packages btrfs-progs-6.1.1
https://github.com/void-linux/void-packages/pull/41317

btrfs-progs: update to 6.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
```
pkg:btrfs-progs host:x86_64 target:x86_64 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:x86_64-musl cross:n result:OK
pkg:btrfs-progs host:i686 target:i686 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64 cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l cross:y result:OK
```

A patch file from https://github.com/void-linux/void-packages/pull/41317.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-btrfs-progs-6.1.1-41317.patch --]
[-- Type: text/x-diff, Size: 13012 bytes --]

From 2e48bca6a5c2e334d2ef2fb36e10052e38be970a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Cerqueira?= <acerqueira021@gmail.com>
Date: Tue, 27 Dec 2022 11:39:56 +0000
Subject: [PATCH] btrfs-progs: update to 6.1.

---
 ...id-report-in-btrfs-subvolume-list--u.patch | 264 ++++++++++++++++++
 srcpkgs/btrfs-progs/template                  |   6 +-
 2 files changed, 267 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/btrfs-progs/patches/fix-the-uuid-report-in-btrfs-subvolume-list--u.patch

diff --git a/srcpkgs/btrfs-progs/patches/fix-the-uuid-report-in-btrfs-subvolume-list--u.patch b/srcpkgs/btrfs-progs/patches/fix-the-uuid-report-in-btrfs-subvolume-list--u.patch
new file mode 100644
index 000000000000..ee1a11f2c3b6
--- /dev/null
+++ b/srcpkgs/btrfs-progs/patches/fix-the-uuid-report-in-btrfs-subvolume-list--u.patch
@@ -0,0 +1,264 @@
+From patchwork Tue Dec 27 05:55:07 2022
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Qu Wenruo <wqu@suse.com>
+X-Patchwork-Id: 13082066
+Return-Path: <linux-btrfs-owner@vger.kernel.org>
+X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
+	aws-us-west-2-korg-lkml-1.web.codeaurora.org
+Received: from vger.kernel.org (vger.kernel.org [23.128.96.18])
+	by smtp.lore.kernel.org (Postfix) with ESMTP id 8911CC46467
+	for <linux-btrfs@archiver.kernel.org>; Tue, 27 Dec 2022 05:55:38 +0000 (UTC)
+Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
+        id S229701AbiL0Fzg (ORCPT <rfc822;linux-btrfs@archiver.kernel.org>);
+        Tue, 27 Dec 2022 00:55:36 -0500
+Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57878 "EHLO
+        lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
+        with ESMTP id S229714AbiL0Fz3 (ORCPT
+        <rfc822;linux-btrfs@vger.kernel.org>);
+        Tue, 27 Dec 2022 00:55:29 -0500
+Received: from smtp-out1.suse.de (smtp-out1.suse.de
+ [IPv6:2001:67c:2178:6::1c])
+        by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E7E721BD
+        for <linux-btrfs@vger.kernel.org>;
+ Mon, 26 Dec 2022 21:55:28 -0800 (PST)
+Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
+ [192.168.254.74])
+        (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+         key-exchange X25519 server-signature ECDSA (P-521) server-digest
+ SHA512)
+        (No client certificate requested)
+        by smtp-out1.suse.de (Postfix) with ESMTPS id 45C6921A5C
+        for <linux-btrfs@vger.kernel.org>;
+ Tue, 27 Dec 2022 05:55:27 +0000 (UTC)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1;
+        t=1672120527;
+ h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:
+         mime-version:mime-version:
+         content-transfer-encoding:content-transfer-encoding:
+         in-reply-to:in-reply-to:references:references;
+        bh=W+yG1hLkX0HTroE6JXqPksnhlQIJ9YKQGLBuZJfgc30=;
+        b=Kg/GuSk+LeFw8BPNKp+N4MKZJ68a/I2jA0xTGBldQpjMFUgu25Pv9+JhZ0vv+OL1eGJBPP
+        ZaB0/Pgl8pTvg3crpX2+ey7F1GYSJuzpF1kGNBjhrsTUT+ZMjgMZyFYR3E3nIWg6fL/Wwn
+        gzYuY194OxIuVaQoQgclh3Cd+B3fwuQ=
+Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
+ [192.168.254.74])
+        (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+         key-exchange X25519 server-signature ECDSA (P-521) server-digest
+ SHA512)
+        (No client certificate requested)
+        by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 979EB133F5
+        for <linux-btrfs@vger.kernel.org>;
+ Tue, 27 Dec 2022 05:55:26 +0000 (UTC)
+Received: from dovecot-director2.suse.de ([192.168.254.65])
+        by imap2.suse-dmz.suse.de with ESMTPSA
+        id mB1aGM6IqmMBRgAAMHmgww
+        (envelope-from <wqu@suse.com>)
+        for <linux-btrfs@vger.kernel.org>; Tue, 27 Dec 2022 05:55:26 +0000
+From: Qu Wenruo <wqu@suse.com>
+To: linux-btrfs@vger.kernel.org
+Subject: [PATCH 1/2] btrfs-progs: fix the wrong timestamp and UUID check for
+ root items
+Date: Tue, 27 Dec 2022 13:55:07 +0800
+Message-Id: 
+ <fd138f8678808717635a145832c1b13320ce6cd2.1672120480.git.wqu@suse.com>
+X-Mailer: git-send-email 2.39.0
+In-Reply-To: <cover.1672120480.git.wqu@suse.com>
+References: <cover.1672120480.git.wqu@suse.com>
+MIME-Version: 1.0
+Precedence: bulk
+List-ID: <linux-btrfs.vger.kernel.org>
+X-Mailing-List: linux-btrfs@vger.kernel.org
+
+[BUG]
+Since commit d729048be6ef ("btrfs-progs: stop using
+btrfs_root_item_v0"), "btrfs subvolume list" not longer correctly report
+UUID nor timestamp, while older (btrfs-progs v6.0.2) still works
+correct:
+
+ v6.0.2:
+ # btrfs subv list -u  /mnt/btrfs/
+ ID 256 gen 12 top level 5 uuid ed4af580-d512-2644-b392-2a71aaeeb99e path subv1
+ ID 257 gen 13 top level 5 uuid a22ccba7-0a0a-a94f-af4b-5116ab58bb61 path subv2
+
+ v6.1:
+ # ./btrfs subv list -u /mnt/btrfs/
+ ID 256 gen 12 top level 5 uuid -                                    path subv1
+ ID 257 gen 13 top level 5 uuid -                                    path subv2
+
+[CAUSE]
+Commit d729048be6ef ("btrfs-progs: stop using btrfs_root_item_v0")
+removed old btrfs_root_item_v0, but incorrectly changed the check for
+v0 root item.
+
+Now we will treat v0 root items as latest root items, causing possible
+out-of-bound access. while treat current root items as older v0 root
+items, ignoring the UUID nor timestamp.
+
+[FIX]
+Fix the bug by using correct checks, and add extra comments on the
+branches.
+
+Issue: #562
+Fixes: d729048be6ef ("btrfs-progs: stop using btrfs_root_item_v0")
+Signed-off-by: Qu Wenruo <wqu@suse.com>
+Reviewed-by: Neal Gompa <neal@gompa.dev>
+---
+ cmds/subvolume-list.c | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/cmds/subvolume-list.c b/cmds/subvolume-list.c
+index 6d5ef509ae67..7cdb0402b8e5 100644
+--- a/cmds/subvolume-list.c
++++ b/cmds/subvolume-list.c
+@@ -870,14 +870,21 @@ static int list_subvol_search(int fd, struct rb_root *root_lookup)
+ 				ri = (struct btrfs_root_item *)(args.buf + off);
+ 				gen = btrfs_root_generation(ri);
+ 				flags = btrfs_root_flags(ri);
+-				if(sh.len <
+-				   sizeof(struct btrfs_root_item)) {
++				if(sh.len >= sizeof(struct btrfs_root_item)) {
++					/*
++					 * The new full btrfs_root_item with
++					 * timestamp and UUID.
++					 */
+ 					otime = btrfs_stack_timespec_sec(&ri->otime);
+ 					ogen = btrfs_root_otransid(ri);
+ 					memcpy(uuid, ri->uuid, BTRFS_UUID_SIZE);
+ 					memcpy(puuid, ri->parent_uuid, BTRFS_UUID_SIZE);
+ 					memcpy(ruuid, ri->received_uuid, BTRFS_UUID_SIZE);
+ 				} else {
++					/*
++					 * The old v0 root item, which doesn't
++					 * has timestamp nor UUID.
++					 */
+ 					otime = 0;
+ 					ogen = 0;
+ 					memset(uuid, 0, BTRFS_UUID_SIZE);
+
+From patchwork Tue Dec 27 05:55:08 2022
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Qu Wenruo <wqu@suse.com>
+X-Patchwork-Id: 13082065
+Return-Path: <linux-btrfs-owner@vger.kernel.org>
+X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on
+	aws-us-west-2-korg-lkml-1.web.codeaurora.org
+Received: from vger.kernel.org (vger.kernel.org [23.128.96.18])
+	by smtp.lore.kernel.org (Postfix) with ESMTP id 66D93C10F1B
+	for <linux-btrfs@archiver.kernel.org>; Tue, 27 Dec 2022 05:55:37 +0000 (UTC)
+Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
+        id S229683AbiL0Fzg (ORCPT <rfc822;linux-btrfs@archiver.kernel.org>);
+        Tue, 27 Dec 2022 00:55:36 -0500
+Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57884 "EHLO
+        lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
+        with ESMTP id S229719AbiL0Fza (ORCPT
+        <rfc822;linux-btrfs@vger.kernel.org>);
+        Tue, 27 Dec 2022 00:55:30 -0500
+Received: from smtp-out2.suse.de (smtp-out2.suse.de
+ [IPv6:2001:67c:2178:6::1d])
+        by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6FED5FCB
+        for <linux-btrfs@vger.kernel.org>;
+ Mon, 26 Dec 2022 21:55:29 -0800 (PST)
+Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
+ [192.168.254.74])
+        (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+         key-exchange X25519 server-signature ECDSA (P-521) server-digest
+ SHA512)
+        (No client certificate requested)
+        by smtp-out2.suse.de (Postfix) with ESMTPS id 523105FE4D
+        for <linux-btrfs@vger.kernel.org>;
+ Tue, 27 Dec 2022 05:55:28 +0000 (UTC)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1;
+        t=1672120528;
+ h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:
+         mime-version:mime-version:
+         content-transfer-encoding:content-transfer-encoding:
+         in-reply-to:in-reply-to:references:references;
+        bh=2gNyMjFYBxP2ubq4bugStueaD9klIpECbWiDJBw6lSo=;
+        b=GXtDFnlrJed2boT5ndRx17OF5an5YXUma/0eZnrkDiDdHBwunCDXHyM0g5knvu4TQLxD1G
+        OFzV/pP5MfDZ00PL8qPbWBgnTQtaFW+xXnpVK+0q1e0Lqi03F6l84VjcZX593WEfqq9Ece
+        njWGIwC2yADcBBSsXoe0EnPAYh6KbMA=
+Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de
+ [192.168.254.74])
+        (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
+         key-exchange X25519 server-signature ECDSA (P-521) server-digest
+ SHA512)
+        (No client certificate requested)
+        by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A6A2E133F5
+        for <linux-btrfs@vger.kernel.org>;
+ Tue, 27 Dec 2022 05:55:27 +0000 (UTC)
+Received: from dovecot-director2.suse.de ([192.168.254.65])
+        by imap2.suse-dmz.suse.de with ESMTPSA
+        id qEYYHM+IqmMBRgAAMHmgww
+        (envelope-from <wqu@suse.com>)
+        for <linux-btrfs@vger.kernel.org>; Tue, 27 Dec 2022 05:55:27 +0000
+From: Qu Wenruo <wqu@suse.com>
+To: linux-btrfs@vger.kernel.org
+Subject: [PATCH 2/2] btrfs-progs: misc-tests: add a test case to make sure
+ uuid is correctly  reported
+Date: Tue, 27 Dec 2022 13:55:08 +0800
+Message-Id: 
+ <6b439939b69d08debf357e7b9d7a5b3ef8ae6b4b.1672120480.git.wqu@suse.com>
+X-Mailer: git-send-email 2.39.0
+In-Reply-To: <cover.1672120480.git.wqu@suse.com>
+References: <cover.1672120480.git.wqu@suse.com>
+MIME-Version: 1.0
+Precedence: bulk
+List-ID: <linux-btrfs.vger.kernel.org>
+X-Mailing-List: linux-btrfs@vger.kernel.org
+
+The new test case will execute "btrfs subvolume list -u" on the newly
+create btrfs.
+
+Since the v0 root item is already deprecated for a long time, newly
+created btrfs should be already using the new root item, thus "btrfs
+subvolume list -u" should always report the correct uuid.
+
+The test case relies on external program "uuidparse" which should be
+provided by util-linux.
+
+Signed-off-by: Qu Wenruo <wqu@suse.com>
+Reviewed-by: Neal Gompa <neal@gompa.dev>
+---
+ .../056-subvolume-list-uuid/test.sh           | 28 +++++++++++++++++++
+ 1 file changed, 28 insertions(+)
+ create mode 100755 tests/misc-tests/056-subvolume-list-uuid/test.sh
+
+diff --git a/tests/misc-tests/056-subvolume-list-uuid/test.sh b/tests/misc-tests/056-subvolume-list-uuid/test.sh
+new file mode 100755
+index 000000000000..45f4f956c25f
+--- /dev/null
++++ b/tests/misc-tests/056-subvolume-list-uuid/test.sh
+@@ -0,0 +1,28 @@
++#!/bin/bash
++#
++# Make sure "btrfs subvolume list -u" shows uuid correctly
++
++source "$TEST_TOP/common"
++
++check_prereq mkfs.btrfs
++check_prereq btrfs
++check_global_prereq uuidparse
++
++setup_root_helper
++prepare_test_dev
++
++tmp=$(_mktemp_dir list_uuid)
++
++run_check_mkfs_test_dev
++run_check_mount_test_dev
++run_check $SUDO_HELPER "$TOP/btrfs" subvolume create "$TEST_MNT/subv1"
++run_check_stdout $SUDO_HELPER "$TOP/btrfs" subvolume list -u "$TEST_MNT" |\
++	cut -d\  -f9 > "$tmp/output"
++
++result=$(cat "$tmp/output" | uuidparse -o TYPE -n)
++rm -rf -- "$tmp"
++
++if [ "$result" == "invalid" ]; then
++	_fail "subvolume list failed to report uuid"
++fi
++run_check_umount_test_dev
+
diff --git a/srcpkgs/btrfs-progs/template b/srcpkgs/btrfs-progs/template
index 515ac7314582..e5a587a27688 100644
--- a/srcpkgs/btrfs-progs/template
+++ b/srcpkgs/btrfs-progs/template
@@ -1,6 +1,6 @@
 # Template file for 'btrfs-progs'
 pkgname=btrfs-progs
-version=5.19.1
+version=6.1
 revision=1
 build_style=gnu-configure
 make_check_target=test
@@ -14,8 +14,8 @@ maintainer="Enno Boland <gottox@voidlinux.org>"
 license="GPL-2.0-only, LGPL-2.1-or-later"
 homepage="https://btrfs.wiki.kernel.org/index.php/Main_Page"
 changelog="https://raw.githubusercontent.com/kdave/btrfs-progs/master/CHANGES"
-distfiles="${KERNEL_SITE}/kernel/people/kdave/${pkgname}/${pkgname}-v${version}.tar.xz"
-checksum=26429e540343ccc7f5d4b3f8f42b916713280e898c5471da705026ef6d2c10a6
+distfiles="${KERNEL_SITE}/kernel/people/kdave/btrfs-progs/btrfs-progs-v${version}.tar.xz"
+checksum=378bcafabdb64c453ac64fef3d4cf8c8d5e47f310319743f580667f9c1114657
 # Most of the tests depend on `mount` and `fallocate` commands, which are not
 # presented in chroot-util-linux
 make_check=no

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
                   ` (3 preceding siblings ...)
  2022-12-31 12:51 ` [PR PATCH] [Updated] " motorto
@ 2022-12-31 12:52 ` motorto
  2022-12-31 17:22 ` [PR PATCH] [Merged]: " paper42
  2023-01-04  0:52 ` sgn
  6 siblings, 0 replies; 8+ messages in thread
From: motorto @ 2022-12-31 12:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

New comment by motorto on void-packages repository

https://github.com/void-linux/void-packages/pull/41317#issuecomment-1367441026

Comment:
@paper42: ~dont merge, lets wait for a minor release fix because of this:~

Was being dumb there is no point in waiting simply added the patch. 

> https://bugzilla.redhat.com/show_bug.cgi?id=2156710

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PR PATCH] [Merged]: btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
                   ` (4 preceding siblings ...)
  2022-12-31 12:52 ` motorto
@ 2022-12-31 17:22 ` paper42
  2023-01-04  0:52 ` sgn
  6 siblings, 0 replies; 8+ messages in thread
From: paper42 @ 2022-12-31 17:22 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

There's a merged pull request on the void-packages repository

btrfs-progs: update to 6.1.
https://github.com/void-linux/void-packages/pull/41317

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
```
pkg:btrfs-progs host:x86_64 target:x86_64 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:x86_64-musl cross:n result:OK
pkg:btrfs-progs host:i686 target:i686 cross:n result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:aarch64 cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv7l cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l-musl cross:y result:OK
pkg:btrfs-progs host:x86_64-musl target:armv6l cross:y result:OK
```

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: btrfs-progs: update to 6.1.
  2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
                   ` (5 preceding siblings ...)
  2022-12-31 17:22 ` [PR PATCH] [Merged]: " paper42
@ 2023-01-04  0:52 ` sgn
  6 siblings, 0 replies; 8+ messages in thread
From: sgn @ 2023-01-04  0:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 193 bytes --]

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/41317#issuecomment-1370373093

Comment:
This breaks other applications, I'm updating to `6.1.1`

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-04  0:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 11:40 [PR PATCH] btrfs-progs: update to 6.1 motorto
2022-12-27 17:46 ` [PR REVIEW] " paper42
2022-12-27 19:10 ` [PR PATCH] [Updated] " motorto
2022-12-29 16:17 ` motorto
2022-12-31 12:51 ` [PR PATCH] [Updated] " motorto
2022-12-31 12:52 ` motorto
2022-12-31 17:22 ` [PR PATCH] [Merged]: " paper42
2023-01-04  0:52 ` sgn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).