mapping lun and fix portal management

This commit is contained in:
Le Zhang
2016-10-04 13:39:55 +08:00
parent 89382bddb0
commit c9b93c7527
16 changed files with 298 additions and 119 deletions

View File

@@ -67,7 +67,7 @@ type ISCSIRedirectInfo struct {
type ISCSITarget struct {
api.SCSITarget
api.SCSITargetDriverCommon
Portals map[string]struct{}
Sessions []*ISCSISession
SessionParam []ISCSISessionParam
Alias string
@@ -81,6 +81,7 @@ type ISCSITarget struct {
func newISCSITarget(target *api.SCSITarget) *ISCSITarget {
return &ISCSITarget{
SCSITarget: *target,
Portals: make(map[string]struct{}),
}
}