Skip to contentSkip to conversation

Enable tgt-admin to bring up Gluster backing stores

PATCH Applied Andy Grover 2 participants 2 messages Apr 4, 2016 – Apr 5, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Enable tgt-admin to bring up Gluster backing stores

As reported in:

https://bugzilla.redhat.com/show_bug.cgi?id=1323356

tgt-admin needs a small change to properly bring up Gluster glfs backing stores, which do not have an associated local block device.

---
 scripts/tgt-admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/tgt-admin +1 -1
index 7130a3d..8f6fb7f 100755
@@ -488,7 +488,7 @@ sub add_backing_direct {
 	}
 
 	if ($can_alloc == 1 &&
-	   ($bstype =~ "rbd" || (-e $backing_store && ! -d $backing_store))) {
+	   ($bstype =~ "glfs" || $bstype =~ "rbd" || (-e $backing_store && ! -d $backing_store))) {
 		my @exec_commands;
 		my $device_type;
 		my $bs_type;
Signature · 1 line
2.5.5
#1 lore raw
Quoted 4 lines · On Mon, 4 Apr 2016 15:32:14 -0700 Andy Grover <[email protected]> wrote:

As reported in:

https://bugzilla.redhat.com/show_bug.cgi?id=1323356

Quoted 8 lines

tgt-admin needs a small change to properly bring up Gluster glfs backing stores, which do not have an associated local block device.

---
 scripts/tgt-admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks!