On 2/28/18 7:36 PM, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > Enable testing write behaviour with the per-io RWF_DSYNC flag. > > Signed-Off-By: Dave Chinner <dchinner@xxxxxxxxxx> > --- > io/pwrite.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/io/pwrite.c b/io/pwrite.c > index a89edfd0496f..58867b764635 100644 > --- a/io/pwrite.c > +++ b/io/pwrite.c > @@ -56,6 +56,7 @@ pwrite_help(void) > #endif > #ifdef HAVE_PWRITEV2 > " -N -- Perform the pwritev2() with RWF_NOWAIT\n" > +" -D -- Perform the pwritev2() with RWF_DSYNC\n" Needs an xfs_io manpage update and a pwrite_cmd.args (short help) update, please. Thanks, -Eric > #endif > "\n")); > } > @@ -299,7 +300,7 @@ pwrite_f( > init_cvtnum(&fsblocksize, &fssectsize); > bsize = fsblocksize; > > - while ((c = getopt(argc, argv, "b:BCdf:Fi:NqRs:OS:uV:wWZ:")) != EOF) { > + while ((c = getopt(argc, argv, "b:BCdDf:Fi:NqRs:OS:uV:wWZ:")) != EOF) { > switch (c) { > case 'b': > tmp = cvtnum(fsblocksize, fssectsize, optarg); > @@ -335,6 +336,9 @@ pwrite_f( > case 'N': > pwritev2_flags |= RWF_NOWAIT; > break; > + case 'D': > + pwritev2_flags |= RWF_DSYNC; > + break; > #endif > case 's': > skip = cvtnum(fsblocksize, fssectsize, optarg); > -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html