commit b1336ade4b83da0c7feb300bf54b56bfd42257f3d03cba52bea49581d340ac44 Author: Jan Engelhardt Date: Sat Jul 13 00:17:08 2024 +0000 Accepting request 1187233 from home:ddiss:bcachefs_upstream_vendor - Update to release v1.9.3 * Fix 32-bit builds further - Update to release v1.9.2 * Fix fsck: Revert OPT_MOUNT change for read_only and make it OPT_HIDDEN - Remove upstreamed patch * 0001-key-use-c_long-type-for-keyctl_search-helper-fn.patch - Update to release v1.9.1 * disk_accounting_v2: report on compression type/ratio, btree usage, and pending rebalance work. - Fix 32-bit builds * add 0001-key-use-c_long-type-for-keyctl_search-helper-fn.patch OBS-URL: https://build.opensuse.org/request/show/1187233 OBS-URL: https://build.opensuse.org/package/show/filesystems/bcachefs-tools?expand=0&rev=29 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..6b42c7d --- /dev/null +++ b/_service @@ -0,0 +1,3 @@ + + + diff --git a/bcachefs-tools-vendored-1.9.1.tar.sign b/bcachefs-tools-vendored-1.9.1.tar.sign new file mode 100644 index 0000000..d47e1ca --- /dev/null +++ b/bcachefs-tools-vendored-1.9.1.tar.sign @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEKnAFLkS8Qha+jvQrE6szbY3KbnYFAmZzKC8ACgkQE6szbY3K +bnbwXRAAhBHcaAKb0euVKPfc9zc09ejmiENoEbhztYtewuvocVCw0j9mSJwlWC9B +TCTDyx8CktAc4L4oVto+Dfp5kNyg6kkYVwlmPi0UbqPj5t8twK9ps0aSA1jLkRjk +lzvKdG2suuXCW51Z2825JqSAD3rRXaawXDy170OK98fnKfadHlctC09wDZ03Ejxq +l94j9o4ssPzcTYxd2JPT3vaPnHP5/N0AuYOH0iWvLH4Lv4EfYlq0ikSTYLRLwC+m +dyBFxTUHCMgBAmJkeyan5RjztT5SbdrRks4HXmUFWQpBlrlMRi9nwmDpa9j27t9L +B4lsQzW6rhr783ZL2TDw1KIvfVnO9DTS6uMdlCUiLUGtv6t4dK5iyeLQbcuPdKUI +JM8ehPagmYL5Qrew1XxywuqWogw5Jl4u1b1bN6gqjz/mFC71/CR1YtiX4CKVK4yD +V/Bk2otU9YLKqg3YAPjrhCeLl4EUfh2EukHXH3xg9vnnaHoEc44HdM/WxVF1Wmqy +Ir7V43vQZVFI8XxOCAzks26/EEO1VE7OiB+52B4IXY0eMp3Z81q5UYaFl0C6KTWe +p4ctgUyEapMme9+Y3jbZuE1tEI3unsqB0J8qplUb0iwBQQSzwfT0ogRiAoXG8IUh +9xZqnS7heIPLynOSlShc4gz4Bve9TkqGyf7qM1M3J4al5MR3HFw= +=GZbq +-----END PGP SIGNATURE----- diff --git a/bcachefs-tools-vendored-1.9.1.tar.zst b/bcachefs-tools-vendored-1.9.1.tar.zst new file mode 100644 index 0000000..388c6b0 --- /dev/null +++ b/bcachefs-tools-vendored-1.9.1.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f58dee82d00d9512dc1a9aa8b864a32988efeeaba89d3222f14dea3132505ea1 +size 28644483 diff --git a/bcachefs-tools-vendored-1.9.3.tar.sign b/bcachefs-tools-vendored-1.9.3.tar.sign new file mode 100644 index 0000000..0f04b89 --- /dev/null +++ b/bcachefs-tools-vendored-1.9.3.tar.sign @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCgAdFiEEKnAFLkS8Qha+jvQrE6szbY3KbnYFAmaRehMACgkQE6szbY3K +bnbc4g//WBwobSYxVMmDAZgzx/EFgDqW05BI3m5F9+0r4qd2qE0gKVDSVvWjSE88 +DLy7gQMKk+BkbZ4MiV084vtddqLhiFuNsKo0l0UPqul9qmaoP+oOr+DV1EsOOOAV +prXHjjCLDmrfy4C7P4NdqFKshyQPWLZ26yEkbfKKvi8Yqjy49D0kfEMGfU8ydynD +FBePnBQ7br6USGFo9kpRS2olWVSfxPgp1MtbbAkQrJS7u21tBVZWgFAJvC5y9AlD +fuTlHwtK530J5Ho277w0IoicFv6GjViX2Kjby2SSO/t61d9Nk3/B9YVwgbRkNrma +DLCSTbqOHgt4E9lOa9uUyD3qy+ojxCVHxI27mDag0x8fpHqJKgSeP4qkYJbHs3Kg +35rwpOTO0wc4afyJr7Q1rKTFes+ZJNf8hbYpMZrgs8HB9WPdOJWIDwSZXEK/NtmY +iFoNzU7G7PRYkJkAeijBl3A8IqHtrHnEo82aqNTniKhH93kU2VZ+RH90yKrz1Ihg +4t/QQ5oi1q9UtUg/7KcNmp1852S+TMsw5lo0osUHVS+NPpdygwTFlnHqFlotvVeV +Tpeohq2k7yEVNd89aT+ny72GZmEJrN9RSX6F3+6kc2gEOLKoTm/0I3X6VSFdgOks +C+3jUe7nQJWVhaMKthoNVKS2kWvHnZHwbdf+ZBx5LLGeRK88iMQ= +=TR6s +-----END PGP SIGNATURE----- diff --git a/bcachefs-tools-vendored-1.9.3.tar.zst b/bcachefs-tools-vendored-1.9.3.tar.zst new file mode 100644 index 0000000..31b32df --- /dev/null +++ b/bcachefs-tools-vendored-1.9.3.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:786e1f70ad333ed0f688a6816baf5a6aa92599f112b3e48c7989c6c81fda46ee +size 28689168 diff --git a/bcachefs-tools.changes b/bcachefs-tools.changes new file mode 100644 index 0000000..58f1c84 --- /dev/null +++ b/bcachefs-tools.changes @@ -0,0 +1,137 @@ +------------------------------------------------------------------- +Fri Jul 12 19:00:39 UTC 2024 - David Disseldorp + +- Update to release v1.9.3 + * Fix 32-bit builds further + +------------------------------------------------------------------- +Tue Jul 2 11:11:19 UTC 2024 - David Disseldorp + +- Update to release v1.9.2 + * Fix fsck: Revert OPT_MOUNT change for read_only and make it OPT_HIDDEN +- Remove upstreamed patch + * 0001-key-use-c_long-type-for-keyctl_search-helper-fn.patch + +------------------------------------------------------------------- +Thu Jun 20 00:45:20 UTC 2024 - David Disseldorp + +- Update to release v1.9.1 + * disk_accounting_v2: report on compression type/ratio, btree usage, + and pending rebalance work. +- Fix 32-bit builds + * add 0001-key-use-c_long-type-for-keyctl_search-helper-fn.patch + +------------------------------------------------------------------- +Wed Jun 19 19:55:02 UTC 2024 - Joshua Smith + +- Update to release v1.9.1: + * improve editorconfig to include sh scripts + * fix: remove newlines from passphrase + * fix: search for key in all keyrings +- Updates from release v1.9.0: + * add BCACHEFS_BLOCK_SCAN environment variable for users that + * add BCACHEFS_KERNEL_ONLY environment variable for test + bcachefs, utilize it. Otherwise, resort to traversing block + devices and checking for bcachefs super blocks. + environments + * Handle mount with FS with 1 device + have a broken blkid which renders the udev db as incomplete + * manpage: incorrect "delete" to "snapshot" + * mount: If the udev database contains information about + * mount: Make udev_bcachefs_info more idiomatic + * fix typo that causes encrypted drives to become stuck in a + busy loop + * check_for_key before ask_for_passphrase -- check if there is + already a key in the keyring available before trying to get the + key from some more involved means + +------------------------------------------------------------------- +Thu Apr 18 00:07:11 UTC 2024 - David Disseldorp + +- Update to release v1.7.0 + * New on disk forat feature - per member 64-bit bitmap of regions + with btree nodes, to accelerate recovering by scanning for + btree nodes. + * mount: canonicalize device path for single device node + * Topology repair now uses nodes found by scanning to fill holes + * mount: Handle multi-device with 1 device node + +------------------------------------------------------------------- +Mon Mar 4 01:54:50 UTC 2024 - David Disseldorp + +- Update to release v1.6.4 + * fix build on powerpc + * drop upstream rust-use-libc-Ioctl-type-for-ioctl-request-argument.patch + +------------------------------------------------------------------- +Thu Feb 22 06:23:25 UTC 2024 - David Disseldorp + +- Fix 32-bit builds [boo#1220175] + * add rust-use-libc-Ioctl-type-for-ioctl-request-argument.patch + +------------------------------------------------------------------- +Wed Feb 21 04:55:00 UTC 2024 - David Disseldorp + +- Update to release v1.6.3 + * use the kernel fsck implementation if the kernel version is a better + match for the filesystem on disk than the -tools version + * fix building with old gcc + * fix big endian build + * collect kernel fsck return code + * various other fixes + +------------------------------------------------------------------- +Mon Jan 29 06:55:58 UTC 2024 - David Disseldorp + +- Build with rust functionality enabled [boo#1219158] + * Switch to upstream vendored source tarball + * Validate upstream source signature + +------------------------------------------------------------------- +Sat Jan 27 09:49:49 UTC 2024 - Jan Engelhardt + +- Rectify paths in systemd unit files [boo#1218808] + +------------------------------------------------------------------- +Fri Jan 19 01:54:34 UTC 2024 - Joshua Smith + +- Delete use_libexec_not_lib.patch (merged) +- Update to release v1.4.1 + * fix cmd_fsck, "bad mount option read-only" + * now open block devices with O_EXCL + +------------------------------------------------------------------- +Tue Jan 9 03:46:53 UTC 2024 - Joshua Smith + +- Add use_libexec_not_lib.patch +- Update to v1.4.0: + * bugfix release + * Split brain detection + * BCH_IOCTL_OFFLINE_FSCK, and numerous other features and + bugfixes. + +------------------------------------------------------------------- +Sun Dec 3 02:10:44 UTC 2023 - Joshua Smith + +- Update to v1.3.5: + * Update from latest kernel bcachefs sources, pulling in fixes + for deleted_inodes btree in particular + * cmd_version now works properly + * fixes for cmd_format, pick the same bucket size for all devices + for the sake of erasure coding + * rebalance_work point release + * Fix race in closure_sync() + * Updated bcachefs sources because + bcachefs_metadata_version_deleted_inodes + * Snapshot depth, skiplist fields + * Updated bcachefs sources because + bcachefs_metadata_version_major_minor + * Fix quotas + snapshots + * Rip out code for storing backpointers in alloc keys + * Fragmentation LRU + * Rework LRU btree + +------------------------------------------------------------------- +Tue May 30 08:19:24 UTC 2023 - Jan Engelhardt + +- Initial package (version 24) for build.opensuse.org diff --git a/bcachefs-tools.keyring b/bcachefs-tools.keyring new file mode 100644 index 0000000..a2a6ad5 --- /dev/null +++ b/bcachefs-tools.keyring @@ -0,0 +1,99 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGT9G+8BEADAwe+tPxGgq2tlJMSOzihaN69nEb+PQ3vwZYG+kBc0/MH5E0QC +FWY6VE9En4FRV9kH/zb+Fy1yAyBkg5jEeMu9jGqGM52Og+zOg/Pto/buiDrSrpfX +FrK6DBuoMa8oA28oo18qhAF7IU4qRFnTLLL1DO+z78xm9QgK8qEJLnn2KYbZsvYy +71avuRtqiJxaQoaY1fvVUUqnORwk/0ob6he7NYPI96Gc+YGuYJ7LOJcCrw7FKfvK +Vgz6WYxB96GEF+dB4Tw3GYZ8XlDWxffuxtC2GiczjSuS+ltrOZmx8n1JNZJpzoje +Dujr4BiIK5YVMPfNXiVkPEpMlTx7jW1O+XqDze/18e6R3pAzV3QRVcZyGoNilOlP +fAy1BoZk9KXy/E3ilVZYxWwhzQHaM+EtysMnKZQfs3sgD746LVuJdpPTAwycUNS/ +/zbA6xuyQpfl8wqlN3pgMzC+X5N8lhAMA2+qiKHYGReeFgKkau1KjWsc0/Vq4UQN +R6PZp4lzYpZcSRwDLWymXuZ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kFlSncds8kmlb+zbsYv1TIGDJ6pEZ6HydbNK1gsr3WLmEjA3dL5LB0i35+ +WkTbFnRrYBB4ZVlsmUWhoOSUSa/Ua69yfSREO6WvHvrYgWpPNQ8SdD9tD4QMAu4m +nVRlTJohLopgGWQmwFzAMzgFVoJiu7MyCY9nXCJf31MRSQ2gxSAqf4+Q6YL3ckbh +O15cDOJNTGiEsF40ii8eijfO2tFG49DZ00j2 +=9ATa +-----END PGP PUBLIC KEY BLOCK----- diff --git a/bcachefs-tools.spec b/bcachefs-tools.spec new file mode 100644 index 0000000..ab1371e --- /dev/null +++ b/bcachefs-tools.spec @@ -0,0 +1,99 @@ +# +# spec file for package bcachefs-tools +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: bcachefs-tools +Version: 1.9.3 +Release: 0 +Summary: Configuration utilities for bcachefs +License: GPL-2.0-or-later +Group: System/Filesystems +URL: https://bcachefs.org/ +Source0: https://evilpiepirate.org/%name/%name-vendored-%version.tar.zst +Source1: https://evilpiepirate.org/%name/%name-vendored-%version.tar.sign +Source2: %{name}.keyring +BuildRequires: cargo +BuildRequires: clang-devel +BuildRequires: libaio-devel >= 0.3.111 +BuildRequires: pkg-config +BuildRequires: zstd +BuildRequires: pkgconfig(blkid) +BuildRequires: pkgconfig(libkeyutils) +BuildRequires: pkgconfig(liblz4) +BuildRequires: pkgconfig(libsodium) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(liburcu) +BuildRequires: pkgconfig(libzstd) +BuildRequires: pkgconfig(udev) +BuildRequires: pkgconfig(uuid) +BuildRequires: pkgconfig(zlib) + +%description +Bcachefs is a filesystem for Linux, with an emphasis on reliability +and robustness. + +* Copy on write (COW) like zfs or btrfs +* Full data and metadata checksumming +* Multiple devices +* Replication +* Erasure coding +* Caching +* Compression +* Encryption +* Snapshots + +This package contains utilities for creating and mounting bcachefs. + +%prep +%autosetup -p1 + +%build +# gh/koverstreet/bcachefs-tools#237 +# bcachefs-tools uses malloc_usable_size, which is incompatible +# with fortification level 3 +export CFLAGS="${RPM_OPT_FLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" +export CXXFLAGS="${RPM_OPT_FLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" +%make_build PREFIX="%_prefix" ROOT_SBINDIR="%_sbindir" + +%install +%make_install PREFIX="%_prefix" ROOT_SBINDIR="%_sbindir" +# this ain't no debian +rm -Rf "%buildroot/etc/initramfs-tools" "%buildroot/%_datadir/initramfs-tools" + +%pre +%service_add_pre bcachefsck_all.service bcachefsck_all_fail.service + +%post +%service_add_post bcachefsck_all.service bcachefsck_all_fail.service + +%preun +%service_del_preun bcachefsck_all.service bcachefsck_all_fail.service + +%postun +%service_del_postun bcachefsck_all.service bcachefsck_all_fail.service + +%files +%_sbindir/*bcache* +%_unitdir/bcachefsck* +%_unitdir/system-bcachefsck* +%_libexecdir/bcachefsck* +%_udevrulesdir/64-bcachefs.rules +%_mandir/man8/*.8* +%license COPYING +%doc doc/bcachefs-principles-of-operation.tex + +%changelog