[ENBD] Re: enbd + x86_64

Peter T. Breuer ptb at inv.it.uc3m.es
Mon Jan 29 09:14:29 MST 2007


"Also sprach Peter T. Breuer:"
> "Also sprach Peter T. Breuer:"
> > > >>/root/enbd-2.4.33/nbd/enbd-maketest: line 348:  4208 Segmentation 
> > > >>fault      nice -19 $ENBD_CLIENT $OPTCLI
> > 
> 
> It appears to be caused by the "-d 1" flag (debug level 1) that the
> script uses by default.
> 
>    OPTCLI="$SERVER:$PORT $OPTSOCK $OPTBLK $OPTSIG $OPTTIME $OPTMD5SUM $OPTCLISSL $OPT_REQ_TIMEO $OPTJRNL $OPTASYNC -d 1 $DEVICE"
> 
> Remove it and do without while I investigate.

Yessss .. simple error. Should have shown up on all platforms (if I
ever ran with debugging on in any of them, that is!).  gdb shows the
failure point at once.

In enbd-client.c, around line 870, do:

  static int
  do_set_debug (struct nbd_client_session *session, char *arg)
  {
-     return really_do_optarg (session, 'd', NULL);
+     return really_do_optarg (session, 'd', arg);
  }

Bad copy and paste in the coding. Apologies for the carelessness.

With that change I can certainly run on ia64 amd. At least make test
runs.

Peter


More information about the ENBD mailing list