Skip to content
Snippets Groups Projects
Commit c0488a02 authored by Steven Murray's avatar Steven Murray
Browse files

Improved the VID searches of rmcd's mount and dismount

parent c9285511
No related branches found
No related tags found
No related merge requests found
......@@ -741,7 +741,8 @@ int smc_dismount (
/* check that the vid is in a slot before returning */
while (1) {
struct smc_element_info vol_element_info;
if (0 > smc_find_cartridge (fd, loader, drive_element_info.name, 0, 0, 1, &vol_element_info)) {
const int elementType = 2; // Storage element
if (0 > smc_find_cartridge (fd, loader, drive_element_info.name, elementType, 0, 1, &vol_element_info)) {
const int smc_error = smc_lasterror (&smc_status, &msgaddr);
rmc_usrmsg ( rpfd, func, SR017, "find_cartridge", drive_element_info.name, msgaddr);
return (smc_error);
......@@ -930,7 +931,8 @@ int smc_mount (
strncpy (func, "smc_mount", sizeof(func));
func[sizeof(func) - 1] = '\0';
if ((c = smc_find_cartridge (fd, loader, vid, 0, 0, 1, &element_info)) < 0) {
const int elementType = 2; // Storage element
if ((c = smc_find_cartridge (fd, loader, vid, elementType, 0, 1, &element_info)) < 0) {
c = smc_lasterror (&smc_status, &msgaddr);
rmc_usrmsg ( rpfd, func, SR017, "find_cartridge", vid, msgaddr);
return (c);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment