bcachefs-tools: update to 1.3.6.
This commit is contained in:
parent
ce249f254e
commit
850d4097df
2 changed files with 3 additions and 88 deletions
|
@ -1,85 +0,0 @@
|
|||
From f2b987745d46e763c63f47ae843d28684041fa48 Mon Sep 17 00:00:00 2001
|
||||
From: Nicholas Sielicki <linux@opensource.nslick.com>
|
||||
Date: Wed, 18 Oct 2023 00:59:02 -0500
|
||||
Subject: [PATCH 1/2] rust: mount: use libc::c_ulong for flags
|
||||
|
||||
libc proper treats mount flags as an unsigned long, which is usually u64,
|
||||
except when it isn't. When preparing mount flags, use the libc::c_ulong type
|
||||
instead of u64 to allow for this.
|
||||
|
||||
This fixes compiling this file under armv7l.
|
||||
|
||||
Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>
|
||||
---
|
||||
rust-src/src/cmd_mount.rs | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/rust-src/src/cmd_mount.rs b/rust-src/src/cmd_mount.rs
|
||||
index bb23c1a1..f7c6d920 100644
|
||||
--- a/rust-src/src/cmd_mount.rs
|
||||
+++ b/rust-src/src/cmd_mount.rs
|
||||
@@ -14,7 +14,7 @@ fn mount_inner(
|
||||
src: String,
|
||||
target: impl AsRef<std::path::Path>,
|
||||
fstype: &str,
|
||||
- mountflags: u64,
|
||||
+ mountflags: libc::c_ulong,
|
||||
data: Option<String>,
|
||||
) -> anyhow::Result<()> {
|
||||
|
||||
@@ -45,7 +45,7 @@ fn mount_inner(
|
||||
|
||||
/// Parse a comma-separated mount options and split out mountflags and filesystem
|
||||
/// specific options.
|
||||
-fn parse_mount_options(options: impl AsRef<str>) -> (Option<String>, u64) {
|
||||
+fn parse_mount_options(options: impl AsRef<str>) -> (Option<String>, libc::c_ulong) {
|
||||
use either::Either::*;
|
||||
debug!("parsing mount options: {}", options.as_ref());
|
||||
let (opts, flags) = options
|
||||
|
||||
From 8369be0fcdfb796ec63cd91f03103b35f168d2eb Mon Sep 17 00:00:00 2001
|
||||
From: Nicholas Sielicki <linux@opensource.nslick.com>
|
||||
Date: Wed, 18 Oct 2023 23:39:04 -0500
|
||||
Subject: [PATCH 2/2] btree_write_buffer: ensure atomic64_sub_return_release
|
||||
availability
|
||||
|
||||
prior to this patch, on certain platforms (ie: armv7l), compilation fails due
|
||||
to atomic64_sub_return_release not being defined here. Ensure that the atomics
|
||||
header is pulled in, and ensure that it is available in all cases, regardless
|
||||
of whether ATOMIC64_SPINLOCK is defined.
|
||||
|
||||
Signed-off-by: Nicholas Sielicki <linux@opensource.nslick.com>
|
||||
---
|
||||
include/linux/atomic.h | 6 ++++++
|
||||
libbcachefs/btree_write_buffer.c | 1 +
|
||||
2 files changed, 7 insertions(+)
|
||||
|
||||
diff --git a/include/linux/atomic.h b/include/linux/atomic.h
|
||||
index f4d047c1..dfaa3711 100644
|
||||
--- a/include/linux/atomic.h
|
||||
+++ b/include/linux/atomic.h
|
||||
@@ -318,6 +318,12 @@ static inline s64 atomic64_cmpxchg_acquire(atomic64_t *v, s64 old, s64 new)
|
||||
return atomic64_cmpxchg(v, old, new);
|
||||
}
|
||||
|
||||
+static inline s64 atomic64_sub_return_release(s64 i, atomic64_t *v)
|
||||
+{
|
||||
+ smp_mb__before_atomic();
|
||||
+ return atomic64_sub_return(i, v);
|
||||
+}
|
||||
+
|
||||
#endif
|
||||
|
||||
#endif /* __TOOLS_LINUX_ATOMIC_H */
|
||||
diff --git a/libbcachefs/btree_write_buffer.c b/libbcachefs/btree_write_buffer.c
|
||||
index 4e6241db..76b6f2dc 100644
|
||||
--- a/libbcachefs/btree_write_buffer.c
|
||||
+++ b/libbcachefs/btree_write_buffer.c
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "journal.h"
|
||||
#include "journal_reclaim.h"
|
||||
|
||||
+#include <linux/atomic.h>
|
||||
#include <linux/sort.h>
|
||||
|
||||
static int btree_write_buffered_key_cmp(const void *_l, const void *_r)
|
|
@ -1,8 +1,8 @@
|
|||
# Template file for 'bcachefs-tools'
|
||||
pkgname=bcachefs-tools
|
||||
reverts="24_1"
|
||||
version=1.3.3
|
||||
revision=2
|
||||
version=1.3.6
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_install_args="ROOT_SBINDIR=/usr/bin"
|
||||
make_use_env=yes
|
||||
|
@ -15,7 +15,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|||
license="GPL-2.0-only"
|
||||
homepage="https://bcachefs.org/"
|
||||
distfiles="https://github.com/koverstreet/bcachefs-tools/archive/refs/tags/v${version}.tar.gz"
|
||||
checksum=8561fc1b736e1fc8057c65e330e4c22f1b5642ebfba6b170dc49204eee496e23
|
||||
checksum=9349dc42f1bdedbcacca5b91889a71a25d198947e22619681cb8eb6ca11f5a89
|
||||
|
||||
export VERSION=v${version}
|
||||
export RUST_TARGET
|
||||
|
|
Loading…
Add table
Reference in a new issue