btrfs-progs: update to 4.3.1.
This commit is contained in:
parent
e7de09101d
commit
31db7d2062
|
@ -0,0 +1,11 @@
|
|||
--- chunk-recover.c.orig
|
||||
+++ chunk-recover.c
|
||||
@@ -883,7 +883,7 @@
|
||||
for (i = 0; i < devidx; i++) {
|
||||
if (dev_scans[i].bytenr == -1)
|
||||
continue;
|
||||
- ret = pthread_tryjoin_np(t_scans[i],
|
||||
+ ret = pthread_join(t_scans[i],
|
||||
(void **)&t_rets[i]);
|
||||
if (ret == EBUSY) {
|
||||
all_done = 0;
|
|
@ -1,6 +1,6 @@
|
|||
--- utils.c
|
||||
+++ utils.c
|
||||
@@ -833,13 +833,19 @@
|
||||
--- utils.c 2015-11-20 01:15:32.227019383 +0100
|
||||
+++ utils.c 2015-11-20 01:16:59.419971215 +0100
|
||||
@@ -1208,13 +1208,19 @@ static int resolve_loop_device(const cha
|
||||
{
|
||||
int ret;
|
||||
FILE *f;
|
||||
|
@ -12,12 +12,12 @@
|
|||
if (!realpath(loop_dev, real_loop_dev))
|
||||
return -errno;
|
||||
- snprintf(p, PATH_MAX, "/sys/block/%s/loop/backing_file", strrchr(real_loop_dev, '/'));
|
||||
+
|
||||
+ if (stat(real_loop_dev, &stat_buf) || !S_ISBLK(stat_buf.st_mode))
|
||||
+ return -errno;
|
||||
+
|
||||
+ snprintf(p, PATH_MAX, "/sys/dev/block/%d:%d/loop/backing_file",
|
||||
+ major(stat_buf.st_rdev), minor(stat_buf.st_rdev));
|
||||
if (!(f = fopen(p, "r")))
|
||||
return -errno;
|
||||
|
||||
+ if (stat(real_loop_dev, &stat_buf) || !S_ISBLK(stat_buf.st_mode))
|
||||
+ return -errno;
|
||||
+
|
||||
+ snprintf(p, PATH_MAX, "/sys/dev/block/%d:%d/loop/backing_file",
|
||||
+ major(stat_buf.st_rdev), minor(stat_buf.st_rdev));
|
||||
if (!(f = fopen(p, "r"))) {
|
||||
if (errno == ENOENT)
|
||||
/*
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
# Template file for 'btrfs-progs'
|
||||
pkgname=btrfs-progs
|
||||
reverts=20141006.4.0.1_1
|
||||
version=4.1.2
|
||||
revision=2
|
||||
version=4.3.1
|
||||
revision=1
|
||||
wrksrc=${pkgname}-v${version}
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-backtrace"
|
||||
|
@ -13,7 +12,7 @@ maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|||
license="GPL-2"
|
||||
homepage="http://btrfs.wiki.kernel.org/"
|
||||
distfiles="${KERNEL_SITE}/kernel/people/kdave/${pkgname}/${pkgname}-v${version}.tar.xz"
|
||||
checksum=62db60c6a0868afb6302112cea54c756873bc30b826696b167ec03ecd61b2f12
|
||||
checksum=0cb5ff15deed01cdf5a77f3f61b7dc9d2cd6787bcf6b6b7dcef424d16e8afd3a
|
||||
|
||||
pre_configure() {
|
||||
NOCONFIGURE=1 ./autogen.sh
|
||||
|
|
Loading…
Reference in New Issue