Compare commits
90 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
e61a0b7443 | ||
|
b557c8beb8 | ||
|
ae500ad192 | ||
|
17c685dc70 | ||
|
b5de6e391d | ||
|
b4034dc428 | ||
|
0211491f0e | ||
|
370dc5be90 | ||
|
9cef146124 | ||
|
c5958f7403 | ||
|
51469ed8c6 | ||
|
877fbd4ee5 | ||
|
38744e8d9c | ||
|
2c5723788c | ||
|
92b35f27e4 | ||
|
7db4900d26 | ||
|
e352342bc0 | ||
|
7094c22bad | ||
|
df2a0bb91a | ||
|
f70dbb9d0a | ||
|
266946abde | ||
|
85251bda22 | ||
|
e6ede9b559 | ||
|
702cca0513 | ||
|
0596ba3a82 | ||
|
4ecc82bfb6 | ||
|
97d104b09f | ||
|
0fb674969c | ||
|
c5f66d7f9e | ||
|
1d54e5887f | ||
|
7e46c69bb4 | ||
|
e45a18c0f7 | ||
|
e43515cec7 | ||
|
4fe8652bb4 | ||
|
e401367d8a | ||
|
181481fba7 | ||
|
6802313d4a | ||
|
d51e482144 | ||
|
0cca1b99f8 | ||
|
9124cddba3 | ||
|
acc45c97a9 | ||
|
7bb64d409a | ||
|
b991c736e2 | ||
|
9107d39acb | ||
|
e4a3d39e87 | ||
|
cec386dcf9 | ||
|
c14c9fc1a7 | ||
|
b3fb47ab6c | ||
|
692e6a6368 | ||
|
09c1c6f239 | ||
|
39a07b27d4 | ||
|
e4cebf1d58 | ||
|
184cf684a9 | ||
|
d42bd7ff93 | ||
|
7d12fecf1a | ||
|
1492e52bf2 | ||
|
2d33c1051a | ||
|
facf7308e0 | ||
|
ee2286396a | ||
|
fbd3b40c3a | ||
|
c58571b023 | ||
|
982d47618f | ||
|
28e0f3f409 | ||
|
6954617e33 | ||
|
8456aa11e4 | ||
|
b66d516934 | ||
|
a613436840 | ||
|
e2508d7c46 | ||
|
afba20088e | ||
|
b1fb30924c | ||
|
dd6c959483 | ||
|
7b15baa71c | ||
|
ab70d8062c | ||
|
9ddd9f04c4 | ||
|
6c68657a18 | ||
|
1e6193fab7 | ||
|
46121663e8 | ||
|
260196ebd3 | ||
|
c21023c5cb | ||
|
fc3f989e75 | ||
|
622fd51ff2 | ||
|
55538f82fe | ||
|
0899b1cd25 | ||
|
799854e605 | ||
|
3d881517c1 | ||
|
f3304e8b2c | ||
|
2f38b92b2d | ||
|
a521cfa68b | ||
|
6ac8c1f80a | ||
|
51c8b5092d |
80
.gitignore
vendored
80
.gitignore
vendored
@ -42,3 +42,83 @@
|
|||||||
/btrfs-progs-4.9-1.fc26.src.rpm
|
/btrfs-progs-4.9-1.fc26.src.rpm
|
||||||
/btrfs-progs-v4.9.tar.xz
|
/btrfs-progs-v4.9.tar.xz
|
||||||
/btrfs-progs-v4.9.1.tar.xz
|
/btrfs-progs-v4.9.1.tar.xz
|
||||||
|
/btrfs-progs-v4.10.tar.xz
|
||||||
|
/btrfs-progs-v4.10.1.tar.xz
|
||||||
|
/btrfs-progs-v4.10.2.tar.xz
|
||||||
|
/btrfs-progs-v4.11.tar.xz
|
||||||
|
/btrfs-progs-v4.11.1.tar.xz
|
||||||
|
/btrfs-progs-v4.12.tar.xz
|
||||||
|
/btrfs-progs-v4.12.1.tar.xz
|
||||||
|
/btrfs-progs-v4.13.tar.xz
|
||||||
|
/btrfs-progs-v4.13.1.tar.xz
|
||||||
|
/btrfs-progs-v4.13.2.tar.xz
|
||||||
|
/btrfs-progs-v4.13.3.tar.xz
|
||||||
|
/btrfs-progs-v4.14.1.tar.xz
|
||||||
|
/btrfs-progs-v4.15.1.tar.xz
|
||||||
|
/btrfs-progs-v4.16.tar.xz
|
||||||
|
/btrfs-progs-v4.17.tar.xz
|
||||||
|
/btrfs-progs-v4.17.1.tar.xz
|
||||||
|
/btrfs-progs-v4.19.tar.xz
|
||||||
|
/btrfs-progs-v4.19.1.tar.xz
|
||||||
|
/btrfs-progs-v4.20.2.tar.xz
|
||||||
|
/btrfs-progs-v5.1.tar.xz
|
||||||
|
/btrfs-progs-v5.2.1.tar.xz
|
||||||
|
/btrfs-progs-v5.4.tar.xz
|
||||||
|
/btrfs-progs-v5.6.tar.xz
|
||||||
|
/btrfs-progs-v5.6.1.tar.xz
|
||||||
|
/btrfs-progs-v5.7-rc1.tar.xz
|
||||||
|
/btrfs-progs-v5.7.tar.xz
|
||||||
|
/btrfs-progs-v5.9.tar.xz
|
||||||
|
/btrfs-progs-v5.10-rc1.tar.xz
|
||||||
|
/btrfs-progs-v5.10.tar.xz
|
||||||
|
/btrfs-progs-v5.11.tar.xz
|
||||||
|
/btrfs-progs-v5.11.1.tar.sign
|
||||||
|
/btrfs-progs-v5.11.1.tar.xz
|
||||||
|
/btrfs-progs-v5.12.tar.sign
|
||||||
|
/btrfs-progs-v5.12.tar.xz
|
||||||
|
/btrfs-progs-v5.12.1.tar.sign
|
||||||
|
/btrfs-progs-v5.12.1.tar.xz
|
||||||
|
/btrfs-progs-v5.13.tar.sign
|
||||||
|
/btrfs-progs-v5.13.tar.xz
|
||||||
|
/btrfs-progs-v5.13.1.tar.sign
|
||||||
|
/btrfs-progs-v5.13.1.tar.xz
|
||||||
|
/btrfs-progs-v5.14.tar.sign
|
||||||
|
/btrfs-progs-v5.14.tar.xz
|
||||||
|
/btrfs-progs-v5.14.1.tar.sign
|
||||||
|
/btrfs-progs-v5.14.1.tar.xz
|
||||||
|
/btrfs-progs-v5.14.2.tar.sign
|
||||||
|
/btrfs-progs-v5.14.2.tar.xz
|
||||||
|
/btrfs-progs-v5.14.91.tar.sign
|
||||||
|
/btrfs-progs-v5.14.91.tar.xz
|
||||||
|
/btrfs-progs-v5.15.tar.sign
|
||||||
|
/btrfs-progs-v5.15.tar.xz
|
||||||
|
/btrfs-progs-v5.15.1.tar.sign
|
||||||
|
/btrfs-progs-v5.15.1.tar.xz
|
||||||
|
/btrfs-progs-v5.16.tar.sign
|
||||||
|
/btrfs-progs-v5.16.tar.xz
|
||||||
|
/btrfs-progs-v5.16.1.tar.sign
|
||||||
|
/btrfs-progs-v5.16.1.tar.xz
|
||||||
|
/btrfs-progs-v5.16.2.tar.sign
|
||||||
|
/btrfs-progs-v5.16.2.tar.xz
|
||||||
|
/btrfs-progs-v5.18.tar.sign
|
||||||
|
/btrfs-progs-v5.18.tar.xz
|
||||||
|
/btrfs-progs-v5.19.1.tar.sign
|
||||||
|
/btrfs-progs-v5.19.1.tar.xz
|
||||||
|
/btrfs-progs-v6.0.tar.sign
|
||||||
|
/btrfs-progs-v6.0.tar.xz
|
||||||
|
/btrfs-progs-v6.0.1.tar.sign
|
||||||
|
/btrfs-progs-v6.0.1.tar.xz
|
||||||
|
/btrfs-progs-v6.0.2.tar.sign
|
||||||
|
/btrfs-progs-v6.0.2.tar.xz
|
||||||
|
/btrfs-progs-v6.1.tar.sign
|
||||||
|
/btrfs-progs-v6.1.tar.xz
|
||||||
|
/btrfs-progs-v6.1.1.tar.sign
|
||||||
|
/btrfs-progs-v6.1.1.tar.xz
|
||||||
|
/btrfs-progs-v6.1.2.tar.sign
|
||||||
|
/btrfs-progs-v6.1.2.tar.xz
|
||||||
|
/btrfs-progs-v6.1.3.tar.sign
|
||||||
|
/btrfs-progs-v6.1.3.tar.xz
|
||||||
|
/btrfs-progs-v6.2.1.tar.sign
|
||||||
|
/btrfs-progs-v6.2.1.tar.xz
|
||||||
|
/btrfs-progs-v6.2.2.tar.sign
|
||||||
|
/btrfs-progs-v6.2.2.tar.xz
|
||||||
|
91
0001-btrfs-progs-mkfs-Enforce-4k-sectorsize-by-default.patch
Normal file
91
0001-btrfs-progs-mkfs-Enforce-4k-sectorsize-by-default.patch
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
From: Neal Gompa <neal@gompa.dev>
|
||||||
|
Subject: [PATCH 1/1] btrfs-progs: mkfs: Enforce 4k sectorsize by default
|
||||||
|
Date: Wed, 22 Mar 2023 18:17:14 -0400
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
We have had working subpage support in Btrfs for many cycles now.
|
||||||
|
Generally, we do not want people creating filesystems by default
|
||||||
|
with non-4k sectorsizes since it creates portability problems.
|
||||||
|
|
||||||
|
Signed-off-by: Neal Gompa <neal@gompa.dev>
|
||||||
|
|
||||||
|
Reviewed-by: Anand Jain <anand.jain@oracle.com>
|
||||||
|
Reviewed-by: Qu Wenruo <wqu@suse.com>
|
||||||
|
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
|
||||||
|
|
||||||
|
---
|
||||||
|
Documentation/Subpage.rst | 15 ++++++++-------
|
||||||
|
Documentation/mkfs.btrfs.rst | 13 +++++++++----
|
||||||
|
mkfs/main.c | 2 +-
|
||||||
|
3 files changed, 18 insertions(+), 12 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Documentation/Subpage.rst b/Documentation/Subpage.rst
|
||||||
|
index 21a495d5..39ef7d6d 100644
|
||||||
|
--- a/Documentation/Subpage.rst
|
||||||
|
+++ b/Documentation/Subpage.rst
|
||||||
|
@@ -9,17 +9,18 @@ to the exactly same size of the block and page. On x86_64 this is typically
|
||||||
|
pages, like 64KiB on 64bit ARM or PowerPC. This means filesystems created
|
||||||
|
with 64KiB sector size cannot be mounted on a system with 4KiB page size.
|
||||||
|
|
||||||
|
-While with subpage support, systems with 64KiB page size can create (still needs
|
||||||
|
-"-s 4k" option for mkfs.btrfs) and mount filesystems with 4KiB sectorsize,
|
||||||
|
-allowing us to push 4KiB sectorsize as default sectorsize for all platforms in the
|
||||||
|
-near future.
|
||||||
|
+Since v6.3, filesystems are created with a 4KiB sectorsize by default,
|
||||||
|
+though it remains possible to create filesystems with other page sizes
|
||||||
|
+(such as 64KiB with the "-s 64k" option for mkfs.btrfs). This ensures that
|
||||||
|
+new filesystems are compatible across other architecture variants using
|
||||||
|
+larger page sizes.
|
||||||
|
|
||||||
|
Requirements, limitations
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
-The initial subpage support has been added in v5.15, although it's still
|
||||||
|
-considered as experimental at the time of writing (v5.18), most features are
|
||||||
|
-already working without problems.
|
||||||
|
+The initial subpage support has been added in v5.15. Most features are
|
||||||
|
+already working without problems. Subpage support is used by default
|
||||||
|
+for systems with a non-4KiB page size since v6.3.
|
||||||
|
|
||||||
|
End users can mount filesystems with 4KiB sectorsize and do their usual
|
||||||
|
workload, while should not notice any obvious change, as long as the initial
|
||||||
|
diff --git a/Documentation/mkfs.btrfs.rst b/Documentation/mkfs.btrfs.rst
|
||||||
|
index ba7227b3..16abf0ca 100644
|
||||||
|
--- a/Documentation/mkfs.btrfs.rst
|
||||||
|
+++ b/Documentation/mkfs.btrfs.rst
|
||||||
|
@@ -116,10 +116,15 @@ OPTIONS
|
||||||
|
-s|--sectorsize <size>
|
||||||
|
Specify the sectorsize, the minimum data block allocation unit.
|
||||||
|
|
||||||
|
- The default value is the page size and is autodetected. If the sectorsize
|
||||||
|
- differs from the page size, the created filesystem may not be mountable by the
|
||||||
|
- running kernel. Therefore it is not recommended to use this option unless you
|
||||||
|
- are going to mount it on a system with the appropriate page size.
|
||||||
|
+ By default, the value is 4KiB, but it can be manually set to match the
|
||||||
|
+ system page size. However, if the sector size is different from the page
|
||||||
|
+ size, the resulting filesystem may not be mountable by the current
|
||||||
|
+ kernel, apart from the default 4KiB. Hence, using this option is not
|
||||||
|
+ advised unless you intend to mount it on a system with the suitable
|
||||||
|
+ page size.
|
||||||
|
+
|
||||||
|
+ .. note::
|
||||||
|
+ Versions prior to 6.3 set the sectorsize matching to the page size.
|
||||||
|
|
||||||
|
-L|--label <string>
|
||||||
|
Specify a label for the filesystem. The *string* should be less than 256
|
||||||
|
diff --git a/mkfs/main.c b/mkfs/main.c
|
||||||
|
index f5e34cbd..5e1834d7 100644
|
||||||
|
--- a/mkfs/main.c
|
||||||
|
+++ b/mkfs/main.c
|
||||||
|
@@ -1207,7 +1207,7 @@ int BOX_MAIN(mkfs)(int argc, char **argv)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!sectorsize)
|
||||||
|
- sectorsize = (u32)sysconf(_SC_PAGESIZE);
|
||||||
|
+ sectorsize = (u32)SZ_4K;
|
||||||
|
if (btrfs_check_sectorsize(sectorsize))
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
--
|
||||||
|
2.39.2
|
||||||
|
|
@ -0,0 +1,52 @@
|
|||||||
|
From 56ea5a3eba4f2048d3e6297a7ab7eb5ef19e2177 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Neal Gompa <ngompa@fedoraproject.org>
|
||||||
|
Date: Tue, 21 Mar 2023 15:40:15 -0400
|
||||||
|
Subject: [PATCH 2/2] btrfs-progs: mkfs: doc: Drop version change for 4k
|
||||||
|
sectorsize
|
||||||
|
|
||||||
|
This is not yet upstream so we don't know what version this change
|
||||||
|
has landed in.
|
||||||
|
---
|
||||||
|
Documentation/Subpage.rst | 4 ++--
|
||||||
|
Documentation/mkfs.btrfs.rst | 3 ---
|
||||||
|
2 files changed, 2 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Documentation/Subpage.rst b/Documentation/Subpage.rst
|
||||||
|
index 39ef7d6d..a128db95 100644
|
||||||
|
--- a/Documentation/Subpage.rst
|
||||||
|
+++ b/Documentation/Subpage.rst
|
||||||
|
@@ -9,7 +9,7 @@ to the exactly same size of the block and page. On x86_64 this is typically
|
||||||
|
pages, like 64KiB on 64bit ARM or PowerPC. This means filesystems created
|
||||||
|
with 64KiB sector size cannot be mounted on a system with 4KiB page size.
|
||||||
|
|
||||||
|
-Since v6.3, filesystems are created with a 4KiB sectorsize by default,
|
||||||
|
+Filesystems are created with a 4KiB sectorsize by default,
|
||||||
|
though it remains possible to create filesystems with other page sizes
|
||||||
|
(such as 64KiB with the "-s 64k" option for mkfs.btrfs). This ensures that
|
||||||
|
new filesystems are compatible across other architecture variants using
|
||||||
|
@@ -20,7 +20,7 @@ Requirements, limitations
|
||||||
|
|
||||||
|
The initial subpage support has been added in v5.15. Most features are
|
||||||
|
already working without problems. Subpage support is used by default
|
||||||
|
-for systems with a non-4KiB page size since v6.3.
|
||||||
|
+for systems with a non-4KiB page size.
|
||||||
|
|
||||||
|
End users can mount filesystems with 4KiB sectorsize and do their usual
|
||||||
|
workload, while should not notice any obvious change, as long as the initial
|
||||||
|
diff --git a/Documentation/mkfs.btrfs.rst b/Documentation/mkfs.btrfs.rst
|
||||||
|
index 50d9921a..0f6056a4 100644
|
||||||
|
--- a/Documentation/mkfs.btrfs.rst
|
||||||
|
+++ b/Documentation/mkfs.btrfs.rst
|
||||||
|
@@ -123,9 +123,6 @@ OPTIONS
|
||||||
|
advised unless you intend to mount it on a system with the suitable
|
||||||
|
page size.
|
||||||
|
|
||||||
|
- .. note::
|
||||||
|
- Versions prior to 6.3 set the sectorsize matching to the page size.
|
||||||
|
-
|
||||||
|
-L|--label <string>
|
||||||
|
Specify a label for the filesystem. The *string* should be less than 256
|
||||||
|
bytes and must not contain newline characters.
|
||||||
|
--
|
||||||
|
2.39.2
|
||||||
|
|
387
btrfs-progs.spec
387
btrfs-progs.spec
@ -1,80 +1,403 @@
|
|||||||
Name: btrfs-progs
|
# Local definition of version_no_tilde when it doesn't exist
|
||||||
Version: 4.9.1
|
%{!?version_no_tilde: %define version_no_tilde %{shrink:%(echo '%{version}' | tr '~' '-')}}
|
||||||
Release: 2%{?dist}
|
|
||||||
Summary: Userspace programs for btrfs
|
|
||||||
|
|
||||||
Group: System Environment/Base
|
Name: btrfs-progs
|
||||||
License: GPLv2
|
Version: 6.2.2
|
||||||
URL: http://btrfs.wiki.kernel.org/index.php/Main_Page
|
Release: 1%{?dist}
|
||||||
Source0: https://www.kernel.org/pub/linux/kernel/people/kdave/%{name}/%{name}-v%{version}.tar.xz
|
Summary: Userspace programs for btrfs
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
License: GPL-2.0-only
|
||||||
|
URL: https://btrfs.wiki.kernel.org/index.php/Main_Page
|
||||||
|
Source0: https://www.kernel.org/pub/linux/kernel/people/kdave/%{name}/%{name}-v%{version_no_tilde}.tar.xz
|
||||||
|
Source1: https://www.kernel.org/pub/linux/kernel/people/kdave/%{name}/%{name}-v%{version_no_tilde}.tar.sign
|
||||||
|
Source2: gpgkey-F2B41200C54EFB30380C1756C565D5F9D76D583B.gpg
|
||||||
|
|
||||||
BuildRequires: autoconf, automake
|
# Upstreamable changes
|
||||||
BuildRequires: e2fsprogs-devel, libuuid-devel, zlib-devel
|
## From: https://lore.kernel.org/linux-btrfs/20230322221714.2702819-1-neal@gompa.dev/T/#t
|
||||||
BuildRequires: libacl-devel, libblkid-devel, lzo-devel
|
Patch0101: 0001-btrfs-progs-mkfs-Enforce-4k-sectorsize-by-default.patch
|
||||||
BuildRequires: asciidoc, xmlto
|
## Fedora specific doc change stacked on top
|
||||||
|
Patch0102: 0002-btrfs-progs-mkfs-doc-Drop-version-change-for-4k-sect.patch
|
||||||
|
|
||||||
%define _root_sbindir /sbin
|
|
||||||
|
BuildRequires: gnupg2
|
||||||
|
BuildRequires: gcc, autoconf, automake, make
|
||||||
|
BuildRequires: git-core
|
||||||
|
BuildRequires: e2fsprogs-devel
|
||||||
|
BuildRequires: libacl-devel, lzo-devel
|
||||||
|
BuildRequires: pkgconfig(blkid)
|
||||||
|
BuildRequires: pkgconfig(uuid)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
BuildRequires: pkgconfig(libgcrypt) >= 1.8.0
|
||||||
|
BuildRequires: pkgconfig(libudev)
|
||||||
|
BuildRequires: pkgconfig(libzstd) >= 1.0.0
|
||||||
|
BuildRequires: python3-sphinx
|
||||||
|
BuildRequires: systemd
|
||||||
|
BuildRequires: python3-devel >= 3.4
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The btrfs-progs package provides all the userspace programs needed to create,
|
The btrfs-progs package provides all the userspace programs needed to create,
|
||||||
check, modify and correct any inconsistencies in the btrfs filesystem.
|
check, modify and correct any inconsistencies in the btrfs filesystem.
|
||||||
|
|
||||||
|
%package -n libbtrfs
|
||||||
|
Summary: btrfs filesystem-specific runtime libraries
|
||||||
|
License: GPL-2.0-only
|
||||||
|
# Upstream deprecated this library
|
||||||
|
Provides: deprecated()
|
||||||
|
# This was not properly split out before
|
||||||
|
Conflicts: %{name} < 4.20.2
|
||||||
|
|
||||||
|
%description -n libbtrfs
|
||||||
|
libbtrfs contains the main library used by btrfs
|
||||||
|
filesystem-specific programs.
|
||||||
|
|
||||||
|
%package -n libbtrfsutil
|
||||||
|
Summary: btrfs filesystem-specific runtime utility libraries
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
# This was not properly split out before
|
||||||
|
Conflicts: %{name}-devel < 4.20.2
|
||||||
|
|
||||||
|
%description -n libbtrfsutil
|
||||||
|
libbtrfsutil contains an alternative utility library used by btrfs
|
||||||
|
filesystem-specific programs.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: btrfs filesystem-specific libraries and headers
|
Summary: btrfs filesystem-specific libraries and headers
|
||||||
Group: Development/Libraries
|
# libbtrfsutil is LGPLv2+
|
||||||
Requires: btrfs-progs = %{version}-%{release}
|
License: GPL-2.0-only and LGPL-2.1-or-later
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
Requires: libbtrfs%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: libbtrfsutil%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
btrfs-progs-devel contains the libraries and header files needed to
|
btrfs-progs-devel contains the libraries and header files needed to
|
||||||
develop btrfs filesystem-specific programs.
|
develop btrfs filesystem-specific programs.
|
||||||
|
|
||||||
|
It includes development files for two libraries:
|
||||||
|
- libbtrfs (GPLv2)
|
||||||
|
- libbtrfsutil (LGPLv2+)
|
||||||
|
|
||||||
You should install btrfs-progs-devel if you want to develop
|
You should install btrfs-progs-devel if you want to develop
|
||||||
btrfs filesystem-specific programs.
|
btrfs filesystem-specific programs.
|
||||||
|
|
||||||
|
%package -n python3-btrfsutil
|
||||||
|
Summary: Python 3 bindings for libbtrfsutil
|
||||||
|
License: LGPL-2.1-or-later
|
||||||
|
Requires: libbtrfsutil%{?_isa} = %{version}-%{release}
|
||||||
|
%{?python_provide:%python_provide python3-btrfsutil}
|
||||||
|
|
||||||
|
%description -n python3-btrfsutil
|
||||||
|
python3-btrfsutil contains Python 3 bindings to the libbtrfsutil library,
|
||||||
|
which can be used for btrfs filesystem-specific programs in Python.
|
||||||
|
|
||||||
|
You should install python3-btrfsutil if you want to use or develop
|
||||||
|
btrfs filesystem-specific programs in Python.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-v%{version}
|
xzcat '%{SOURCE0}' | %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data=-
|
||||||
|
%autosetup -n %{name}-v%{version_no_tilde} -S git_am
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
%configure CFLAGS="%{optflags} -fno-strict-aliasing" --with-crypto=libgcrypt --disable-python
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
|
pushd libbtrfsutil/python
|
||||||
|
%py3_build
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%make_install mandir=%{_mandir} bindir=%{_sbindir} libdir=%{_libdir} incdir=%{_includedir}
|
||||||
make mandir=%{_mandir} bindir=%{_sbindir} libdir=%{_libdir} incdir=%{_includedir}/btrfs install DESTDIR=$RPM_BUILD_ROOT
|
install -Dpm0644 btrfs-completion %{buildroot}%{_datadir}/bash-completion/completions/btrfs
|
||||||
# Nuke the static lib
|
# Nuke the static lib
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
rm -v %{buildroot}%{_libdir}/*.a
|
||||||
|
|
||||||
%clean
|
pushd libbtrfsutil/python
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%py3_install
|
||||||
|
popd
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%license COPYING
|
||||||
%doc COPYING
|
|
||||||
%{_libdir}/libbtrfs.so.0*
|
|
||||||
%{_sbindir}/btrfsck
|
%{_sbindir}/btrfsck
|
||||||
%{_sbindir}/fsck.btrfs
|
%{_sbindir}/fsck.btrfs
|
||||||
%{_sbindir}/mkfs.btrfs
|
%{_sbindir}/mkfs.btrfs
|
||||||
%{_sbindir}/btrfs-debug-tree
|
|
||||||
%{_sbindir}/btrfs-image
|
%{_sbindir}/btrfs-image
|
||||||
%{_sbindir}/btrfs-convert
|
%{_sbindir}/btrfs-convert
|
||||||
%{_sbindir}/btrfs-select-super
|
%{_sbindir}/btrfs-select-super
|
||||||
%{_sbindir}/btrfstune
|
%{_sbindir}/btrfstune
|
||||||
%{_sbindir}/btrfs
|
%{_sbindir}/btrfs
|
||||||
%{_sbindir}/btrfs-map-logical
|
%{_sbindir}/btrfs-map-logical
|
||||||
%{_sbindir}/btrfs-zero-log
|
|
||||||
%{_sbindir}/btrfs-find-root
|
%{_sbindir}/btrfs-find-root
|
||||||
%{_mandir}/man5/*.gz
|
%{_mandir}/man5/*
|
||||||
%{_mandir}/man8/*.gz
|
%{_mandir}/man8/*
|
||||||
%{_udevrulesdir}/64-btrfs-dm.rules
|
%{_udevrulesdir}/64-btrfs-dm.rules
|
||||||
|
%{_udevrulesdir}/64-btrfs-zoned.rules
|
||||||
|
%{_datadir}/bash-completion/completions/btrfs
|
||||||
|
|
||||||
|
%files -n libbtrfs
|
||||||
|
%license COPYING
|
||||||
|
%{_libdir}/libbtrfs.so.0*
|
||||||
|
|
||||||
|
%files -n libbtrfsutil
|
||||||
|
%license libbtrfsutil/COPYING
|
||||||
|
%{_libdir}/libbtrfsutil.so.1*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/libbtrfs.so
|
%{_libdir}/libbtrfs.so
|
||||||
|
%{_libdir}/libbtrfsutil.so
|
||||||
|
%{_libdir}/pkgconfig/libbtrfsutil.pc
|
||||||
|
|
||||||
|
%files -n python3-btrfsutil
|
||||||
|
%license libbtrfsutil/COPYING
|
||||||
|
%{python3_sitearch}/btrfsutil.*.so
|
||||||
|
%{python3_sitearch}/btrfsutil-*.egg-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Mar 26 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.2.2-1
|
||||||
|
- Update to 6.2.2
|
||||||
|
|
||||||
|
* Wed Mar 22 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.2.1-2
|
||||||
|
- Add patch to force default sectorsize to 4k
|
||||||
|
|
||||||
|
* Mon Mar 06 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.2.1-1
|
||||||
|
- Update to 6.2.1
|
||||||
|
|
||||||
|
* Wed Jan 25 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.1.3-1
|
||||||
|
- Update to 6.1.3
|
||||||
|
- Switch to SPDX license identifiers
|
||||||
|
|
||||||
|
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 6.1.2-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 05 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.1.2-1
|
||||||
|
- Update to 6.1.2
|
||||||
|
|
||||||
|
* Tue Jan 03 2023 Neal Gompa <ngompa@fedoraproject.org> - 6.1.1-1
|
||||||
|
- Update to 6.1.1
|
||||||
|
|
||||||
|
* Fri Dec 30 2022 Neal Gompa <ngompa@fedoraproject.org> - 6.1-2
|
||||||
|
- Add fix to show UUID with "btrfs subvolume list -u"
|
||||||
|
|
||||||
|
* Fri Dec 23 2022 Neal Gompa <ngompa@fedoraproject.org> - 6.1-1
|
||||||
|
- Update to 6.1
|
||||||
|
- Use libgcrypt for cryptographic hash functions
|
||||||
|
|
||||||
|
* Fri Nov 25 2022 Neal Gompa <ngompa@fedoraproject.org> - 6.0.2-1
|
||||||
|
- Update to 6.0.2
|
||||||
|
|
||||||
|
* Fri Nov 04 2022 Igor Raits <ignatenkobrain@fedoraproject.org> - 6.0.1-1
|
||||||
|
- Update to 6.0.1
|
||||||
|
|
||||||
|
* Thu Oct 13 2022 Neal Gompa <ngompa@fedoraproject.org> - 6.0-1
|
||||||
|
- Update to 6.0
|
||||||
|
|
||||||
|
* Thu Oct 13 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.19.1-1
|
||||||
|
- Update to 5.19.1
|
||||||
|
|
||||||
|
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.18-3
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 5.18-2
|
||||||
|
- Rebuilt for Python 3.11
|
||||||
|
|
||||||
|
* Wed May 25 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.18-1
|
||||||
|
- Update to 5.18
|
||||||
|
|
||||||
|
* Wed Feb 16 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.16.2-1
|
||||||
|
- Update to 5.16.2
|
||||||
|
|
||||||
|
* Sat Feb 05 2022 Igor Raits <igor.raits@gmail.com> - 5.16.1-1
|
||||||
|
- Update to 5.16.1
|
||||||
|
|
||||||
|
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.16-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jan 17 2022 Neal Gompa <ngompa@fedoraproject.org> - 5.16-1
|
||||||
|
- Update to 5.16
|
||||||
|
|
||||||
|
* Mon Nov 22 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.15.1-1
|
||||||
|
- Update to 5.15.1
|
||||||
|
|
||||||
|
* Fri Nov 05 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.15-1
|
||||||
|
- Update to 5.15
|
||||||
|
|
||||||
|
* Sat Oct 30 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.14.91-1
|
||||||
|
- Update to 5.14.91 (5.15~rc1)
|
||||||
|
|
||||||
|
* Sat Oct 09 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.14.2-1
|
||||||
|
- Update to 5.14.2
|
||||||
|
|
||||||
|
* Mon Sep 20 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.14.1-1
|
||||||
|
- Update to 5.14.1
|
||||||
|
|
||||||
|
* Fri Sep 10 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.14-2
|
||||||
|
- Mark libbtrfs as deprecated, per upstream release notes
|
||||||
|
|
||||||
|
* Fri Sep 10 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.14-1
|
||||||
|
- Update to 5.14
|
||||||
|
|
||||||
|
* Fri Jul 30 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.13.1-1
|
||||||
|
- Update to 5.13.1
|
||||||
|
|
||||||
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.13-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jul 13 2021 Neal Gompa <ngompa@fedoraproject.org> - 5.13-1
|
||||||
|
- Update to 5.13
|
||||||
|
|
||||||
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 5.12.1-2
|
||||||
|
- Rebuilt for Python 3.10
|
||||||
|
|
||||||
|
* Thu May 13 2021 Neal Gompa <ngompa13@gmail.com> - 5.12.1-1
|
||||||
|
- Update to 5.12.1
|
||||||
|
|
||||||
|
* Mon May 10 2021 Neal Gompa <ngompa13@gmail.com> - 5.12-1
|
||||||
|
- Update to 5.12
|
||||||
|
|
||||||
|
* Sun Mar 28 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.11.1-1
|
||||||
|
- Update to 5.11.1
|
||||||
|
|
||||||
|
* Fri Mar 05 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.11-1
|
||||||
|
- Update to 5.11
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.10-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jan 19 2021 Neal Gompa <ngompa13@gmail.com> - 5.10-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Fri Jan 15 2021 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.10~rc1-1
|
||||||
|
- Update to 5.10-rc1
|
||||||
|
|
||||||
|
* Fri Oct 23 2020 Neal Gompa <ngompa13@gmail.com> - 5.9-1
|
||||||
|
- New upstream release
|
||||||
|
- Build Python bindings
|
||||||
|
- Drop patches incorporated into this release
|
||||||
|
|
||||||
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.7-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 24 2020 Neal Gompa <ngompa13@gmail.com> - 5.7-4
|
||||||
|
- Backport fix for converting 64-bit ext4 filesystems (#1851674)
|
||||||
|
|
||||||
|
* Tue Jul 21 2020 Neal Gompa <ngompa13@gmail.com> - 5.7-3
|
||||||
|
- Backport fix to not use raid0 by default for mkfs multi-disk (#1855174)
|
||||||
|
|
||||||
|
* Wed Jul 08 2020 Carl George <carl@george.computer> - 5.7-2
|
||||||
|
- Include bash completion
|
||||||
|
|
||||||
|
* Thu Jul 02 2020 Neal Gompa <ngompa13@gmail.com> - 5.7-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Tue Jun 30 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.7~rc1-1
|
||||||
|
- Update to 5.7-rc1
|
||||||
|
|
||||||
|
* Mon Jun 15 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.6.1-2
|
||||||
|
- Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 08 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 5.6.1-1
|
||||||
|
- Update to 5.6.1
|
||||||
|
|
||||||
|
* Sun Apr 05 2020 Neal Gompa <ngompa13@gmail.com> - 5.6-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.4-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Dec 06 2019 Neal Gompa <ngompa13@gmail.com> - 5.4-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Sat Aug 24 2019 Neal Gompa <ngompa13@gmail.com> - 5.2.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 30 2019 Neal Gompa <ngompa13@gmail.com> - 5.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Sun Mar 10 2019 Neal Gompa <ngompa13@gmail.com> - 4.20.2-1
|
||||||
|
- New upstream release
|
||||||
|
- Properly split out libraries into libs subpackages
|
||||||
|
- Slightly modernize the spec
|
||||||
|
|
||||||
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.19.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Dec 05 2018 Eric Sandeen <sandeen@redhat.com> 4.19.-1
|
||||||
|
- New usptream release
|
||||||
|
|
||||||
|
* Mon Aug 06 2018 Eric Sandeen <sandeen@redhat.com> 4.17.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Mon Jul 23 2018 Eric Sandeen <sandeen@redhat.com> 4.17-1
|
||||||
|
- New upstream release
|
||||||
|
- Removes deprecated btrfs-debug-tree, btrfs-zero-log
|
||||||
|
|
||||||
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.16-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 4.16-3
|
||||||
|
- Rebuilt for Python 3.7
|
||||||
|
|
||||||
|
* Sun Apr 08 2018 Eric Sandeen <sandeen@redhat.com> 4.16-2
|
||||||
|
- Fix up header install paths in devel package (#1564881)
|
||||||
|
|
||||||
|
* Fri Apr 06 2018 Eric Sandeen <sandeen@redhat.com> 4.16-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Mon Feb 26 2018 Eric Sandeen <sandeen@redhat.com> 4.15.1-2
|
||||||
|
- BuildRequires: gcc
|
||||||
|
|
||||||
|
* Fri Feb 16 2018 Eric Sandeen <sandeen@redhat.com> 4.15.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.14.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 05 2018 Eric Sandeen <sandeen@redhat.com> 4.14.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Tue Oct 17 2017 Eric Sandeen <sandeen@redhat.com> 4.13.3-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Fri Oct 06 2017 Eric Sandeen <sandeen@redhat.com> 4.13.2-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Tue Sep 26 2017 Eric Sandeen <sandeen@redhat.com> 4.13.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Fri Sep 08 2017 Eric Sandeen <sandeen@redhat.com> 4.13-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Mon Aug 28 2017 Eric Sandeen <sandeen@redhat.com> 4.12.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Mon Jul 31 2017 Eric Sandeen <sandeen@redhat.com> 4.12-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Mon Jul 31 2017 Igor Gnatenko <ignatenko@redhat.com> - 4.11.1-3
|
||||||
|
- Add missing BuildRequires: systemd
|
||||||
|
|
||||||
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.11.1-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jul 03 2017 Eric Sandeen <sandeen@redhat.com> 4.11.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Thu May 18 2017 Eric Sandeen <sandeen@redhat.com> 4.11-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Wed May 03 2017 Eric Sandeen <sandeen@redhat.com> 4.10.2-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Fri Mar 17 2017 Eric Sandeen <sandeen@redhat.com> 4.10.1-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
|
* Wed Mar 8 2017 Eric Sandeen <sandeen@redhat.com> 4.10-1
|
||||||
|
- New upstream release
|
||||||
|
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.1-2
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.9.1-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
BIN
gpgkey-F2B41200C54EFB30380C1756C565D5F9D76D583B.gpg
Normal file
BIN
gpgkey-F2B41200C54EFB30380C1756C565D5F9D76D583B.gpg
Normal file
Binary file not shown.
3
sources
3
sources
@ -1 +1,2 @@
|
|||||||
SHA512 (btrfs-progs-v4.9.1.tar.xz) = 143f5c8863f3b9eff2e4ca2c750bb80ffe62f66d0c15d23e6f5bf75dab0133dcd3ff4d4c722360560de24b73e3da1222f265230d18de06d7bccd85ad2cb9a6a5
|
SHA512 (btrfs-progs-v6.2.2.tar.sign) = cd05827dfd66de7eefb0dc9534baacffe7b115fa1f3b2c0d0e7bb280ff47ed9c6308684db2284f65750fb883bbcc2fecb36c09b597f11b07e29d8864b032af33
|
||||||
|
SHA512 (btrfs-progs-v6.2.2.tar.xz) = 967e1c1a6b956a4e11a794aad090d1cf370fd98e4186525ccfbbbc9ae3f2bb66ace1d684730f93c558403b7ac1c991aec3d04d07548b19ee1516352a069431db
|
||||||
|
Loading…
Reference in New Issue
Block a user