Skip to content

Commit c5ffe82

Browse files
authored
NVMe self healing bug fix
1 parent 970f72d commit c5ffe82

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

utils/nvme/nvme_linux.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,12 @@ func (nh *NVMeHandler) listSubsystemsFromSysFs(ctx context.Context) (Subsystems,
9595

9696
fileContent := strings.TrimSpace(string(fileBytes))
9797

98-
sub := NVMeSubsystem{NQN: fileContent, Name: subsystemDirPath}
98+
sub := NVMeSubsystem{
99+
NQN: fileContent,
100+
Name: subsystemDirPath,
101+
command: nh.command,
102+
osFs: nh.osFs,
103+
}
99104
paths, err := GetNVMeSubsystemPaths(ctx, nh.osFs, subsystemDirPath)
100105
if err != nil {
101106
return subsystems, err

0 commit comments

Comments
 (0)