add the ability to add luns dynamically

This commit is contained in:
chessman
2019-06-11 18:24:18 +03:00
parent d90dab2b1d
commit f11001ec71
4 changed files with 55 additions and 19 deletions

View File

@@ -26,6 +26,7 @@ import (
type SCSITargetDriver interface {
Run() error
NewTarget(string, *config.Config) error
RereadTargetLUNMap()
}
type TargetDriverFunc func(*SCSITargetService) (SCSITargetDriver, error)