Calling the following command from popen gives the error:

"Failed to open read pipe"

iscsiadm --mode discoverydb --type sendtargets --portal --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 --op=new", "r");

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


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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to