[Drbd-dev] [CASE-31] Some CLI outputs are wrong.

Jaeheon Kim jhkim at mantech.co.kr
Mon Apr 11 09:07:18 CEST 2016


Dear Phil.

Please check following CLI stdout outputs.
Something wrong.

1. drbdadm outdate r0 -d
  ==> drbdsetup outdate r0 2


2. drbdadm attach r0 --al-updates=no -d
  ==> drbdmeta 2 v09 j flex-external apply-al --al-updates=no


So, We change you code like this;

1. On drbd-utils/user/v9/drbdadm_main.c file;

#ifdef _WIN32
static struct adm_cmd outdate_cmd = {"outdate", adm_outdate, ACF1_DEFAULT
.backend_res_name = 0};
#else
static struct adm_cmd outdate_cmd = {"outdate", adm_outdate, ACF1_DEFAULT};
#endif


2. On _adm_drbdmeta() function;

#ifdef _WIN32
     if (ctx->cmd->drbdsetup_ctx)
             add_setup_options(argv, &argc);
#else
      add_setup_options(argv, &argc);
#endif


Please check our solution.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-dev/attachments/20160411/6a58cadd/attachment.htm>


More information about the drbd-dev mailing list