final String resource,
final String volume,
final ExecCallback execCallback,
final Application.RunMode runMode) {
final String command = host.getDistCommand("DRBD.adjust.apply", getResVolReplaceHash(host, resource, volume));
final SshOutput ret = execCommand(host, command, execCallback, false, runMode);
final Pattern p = Pattern.compile(".*Failure: \\((\\d+)\\).*", Pattern.DOTALL);
final Matcher m = p.matcher(ret.getOutput());
if (m.matches()) {
return Integer.parseInt(m.group(1));
}
return ret.getExitCode();
}