Calling the following command from popen gives the error:

"Failed to open read pipe"

iscsiadm --mode discoverydb --type sendtargets --portal 192.168.1.1 --op=new

Other iscsiadm ops such as update works without any issues.

This is with the latest iscsiadm compiled from git.

C program:

FILE *out = popen("src/open-iscsi/usr/iscsiadm --mode discoverydb "
"--type sendtargets --portal 192.168.1.1 --op=new", "r");

if (out == NULL)
{       
 int err = errno;
 LOG_ERROR("main: Failed to open read pipe, err= %d - '%s'",
            err, strerror(err));
}

pclose(out);


-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at http://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to