1 Star 0 Fork 15

吴磊磊/targetcli

forked from src-openEuler/targetcli 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
MappedLuns-and-Luns-max-number-is-not-the-same-anymore.patch 1015 Bytes
一键复制 编辑 原始数据 按行查看 历史
wang_yue111 提交于 2020-07-15 19:26 +08:00 . Fix unexpected error raised when adding luns
From 598f988cb90e318a62a164cadb2045f4e6778bda Mon Sep 17 00:00:00 2001
From: Pavel Zakharov <pavel.zakharov@delphix.com>
Date: Tue, 20 Feb 2018 17:53:20 -0500
Subject: [PATCH] MappedLuns and Luns max number is not the same anymore
---
targetcli/ui_target.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/targetcli/ui_target.py b/targetcli/ui_target.py
index 87c5a2a..6895b38 100644
--- a/targetcli/ui_target.py
+++ b/targetcli/ui_target.py
@@ -1141,7 +1141,7 @@ def ui_command_create(self, storage_object, lun=None,
existing_mluns = [mlun.mapped_lun for mlun in acl.mapped_luns]
if mapped_lun in existing_mluns:
mapped_lun = None
- for possible_mlun in six.moves.range(LUN.MAX_LUN):
+ for possible_mlun in six.moves.range(MappedLUN.MAX_LUN):
if possible_mlun not in existing_mluns:
mapped_lun = possible_mlun
break
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wu-leilei/targetcli.git
git@gitee.com:wu-leilei/targetcli.git
wu-leilei
targetcli
targetcli
master

搜索帮助