[PATCH] Enable tgt-admin to bring up Gluster backing stores

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Reported-by: Nathan Coulson <nathan@xxxxxxxxxxxx>
Signed-off-by: Andy Grover <agrover@xxxxxxxxxx>
---
 scripts/tgt-admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tgt-admin b/scripts/tgt-admin
index 7130a3d..8f6fb7f 100755
--- a/scripts/tgt-admin
+++ b/scripts/tgt-admin
@@ -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;
-- 
2.5.5

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux