Re: [Qemu-devel] [PATCH 2/7] qemu-img: add iflag and oflag options to dd

2016-08-22 Thread Stefan Hajnoczi
On Mon, Aug 22, 2016 at 09:55:12AM +0200, Reda Sallahi wrote: > +static int img_dd_oflag(const char *arg, > +struct DdIo *in, struct DdIo *out, > +struct DdInfo *dd) > +{ > +const char *tok; > +char *str, *tmp; > +int ret = 0; > +const

[Qemu-devel] [PATCH 2/7] qemu-img: add iflag and oflag options to dd

2016-08-22 Thread Reda Sallahi
This adds the iflag and oflag options which defines the list of flags used for reading and writing respectively. The list is comma-separated. The iflag option supports direct, dsync, sync, count_bytes and skip_bytes and oflag supports direct, dsync, sync and seek_bytes. They are similar to their c