1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-21 16:18:39 +02:00
openwrt-packages/utils/lvm2/patches/004-device-include-goto-lable-as-well.patch
Rosen Penev 78360ebdda
lvm2: update to 2.03.08
Add PKG_BUILD_PARALLEL for faster compilation.

Replace '  ' with TAB for consistency between packages.

Refresh patches and remove outdated ones.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-04 20:21:30 -08:00

27 lines
839 B
Diff

From a887fe76be459d32a638d0abde96cc715632c8d5 Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Fri, 20 May 2016 06:31:15 +0200
Subject: [PATCH] device: include goto lable as well
To: lvm-devel@redhat.com
commit b5314c2a6ae5fe4f802e82a4f31cf2fad398ded9
device: Retry open without O_NOATIME if it fails.
makes use of goto lable 'opened:' but that might not be defined, e.g.
on standard C libraries without O_DIRECT_SUPPORT.
---
lib/device/dev-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/lib/device/dev-io.c
+++ b/lib/device/dev-io.c
@@ -374,7 +374,7 @@ int dev_open_flags(struct device *dev, int flags, int direct, int quiet)
return 0;
}
-#ifdef O_DIRECT_SUPPORT
+#if defined(O_DIRECT_SUPPORT) || defined(O_NOATIME)
opened:
if (direct)
dev->flags |= DEV_O_DIRECT_TESTED;