Thread (36 messages) flat view 36 messages, 2 authors, 2011-01-06
STALE5703d

[PATCH 11/34] FIX: Arrays cannot be opened exclusively

From: Adam Kwolek <hidden>
Date: 2011-01-04 14:37:05
Subsystem: the rest · Maintainer: Linus Torvalds

During container operation arrays cannot be opened exclusively.
Use open_dev() instead.

Signed-off-by: Adam Kwolek <redacted>
---

 Grow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Grow.c b/Grow.c
index 5d73365..c568a55 100644
--- a/Grow.c
+++ b/Grow.c
@@ -2128,7 +2128,7 @@ int reshape_container(char *container, int cfd, char *devname,
 
 		if (!mdstat)
 			continue;
-		fd = open_dev_excl(mdstat->devnum);
+		fd = open_dev(mdstat->devnum);
 		if (fd < 0)
 			break;
 		adev = map_dev(dev2major(mdstat->devnum),
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help