Skip to content

Commit

Permalink
[iec][fuji] unmount host.
Browse files Browse the repository at this point in the history
  • Loading branch information
tschak909 committed Jul 1, 2023
1 parent daffdd4 commit 09d7e96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/device/iec/fuji.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void iecFuji::unmount_host()
std::vector<std::string> t = util_tokenize(payload, ':');
if (t.size() < 2) // send error.
{
response_queue.push("error: invalid # of parameters\r");
response = "invalid # of parameters";
return;
}

Expand All @@ -264,13 +264,13 @@ void iecFuji::unmount_host()

if (!_validate_device_slot(hs, "unmount_host"))
{
response_queue.push("error: invalid device slot\r");
response = "invalid device slot";
return; // send error.
}

if (!_fnHosts[hs].umount())
{
response_queue.push("error: unable to mount host slot\r");
response = "unable to unmount host slot";
return; // send error;
}

Expand Down

0 comments on commit 09d7e96

Please sign in to comment.