init target and luns from config file

This commit is contained in:
Lei Xue
2016-10-01 20:59:30 +08:00
parent 80ff4930e8
commit 3512ab66f5
15 changed files with 1351 additions and 17 deletions

View File

@@ -24,7 +24,8 @@ import (
type SCSITargetService interface {
Run() error
NewTarget(string) (SCSITargetDriver, error)
NewTarget(string, []string) (SCSITargetDriver, error)
AddNewPortal([]string) error
}
type TargetServiceFunc func(*scsi.SCSITargetService) (SCSITargetService, error)