1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

s4:cifsdd: Use C99 initializers for cifsdd argdef

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
Andreas Schneider 2019-01-08 11:49:28 +01:00 committed by Andreas Schneider
parent 4609e6fb2b
commit 8c774f5a5d

View File

@ -85,20 +85,64 @@ static const char * argtype_str(enum argtype arg_type)
static struct argdef args[] =
{
{ "bs", ARG_SIZE, "force ibs and obs to SIZE bytes" },
{ "ibs", ARG_SIZE, "read SIZE bytes at a time" },
{ "obs", ARG_SIZE, "write SIZE bytes at a time" },
{
.arg_name = "bs",
.arg_type = ARG_SIZE,
.arg_help = "force ibs and obs to SIZE bytes",
},
{
.arg_name = "ibs",
.arg_type = ARG_SIZE,
.arg_help = "read SIZE bytes at a time",
},
{
.arg_name = "obs",
.arg_type = ARG_SIZE,
.arg_help = "write SIZE bytes at a time",
},
{ "count", ARG_NUMERIC, "copy COUNT input blocks" },
{ "seek",ARG_NUMERIC, "skip COUNT blocks at start of output" },
{ "skip",ARG_NUMERIC, "skip COUNT blocks at start of input" },
{
.arg_name = "count",
.arg_type = ARG_NUMERIC,
.arg_help = "copy COUNT input blocks",
},
{
.arg_name = "seek",
.arg_type = ARG_NUMERIC,
.arg_help = "skip COUNT blocks at start of output",
},
{
.arg_name = "skip",
.arg_type = ARG_NUMERIC,
.arg_help = "skip COUNT blocks at start of input",
},
{ "if", ARG_PATHNAME, "read input from FILE" },
{ "of", ARG_PATHNAME, "write output to FILE" },
{
.arg_name = "if",
.arg_type = ARG_PATHNAME,
.arg_help = "read input from FILE",
},
{
.arg_name = "of",
.arg_type = ARG_PATHNAME,
.arg_help = "write output to FILE",
},
{ "direct", ARG_BOOL, "use direct I/O if non-zero" },
{ "sync", ARG_BOOL, "use synchronous writes if non-zero" },
{ "oplock", ARG_BOOL, "take oplocks on the input and output files" },
{
.arg_name = "direct",
.arg_type = ARG_BOOL,
.arg_help = "use direct I/O if non-zero",
},
{
.arg_name = "sync",
.arg_type = ARG_BOOL,
.arg_help = "use synchronous writes if non-zero",
},
{
.arg_name = "oplock",
.arg_type = ARG_BOOL,
.arg_help = "take oplocks on the input and output files",
},
/* FIXME: We should support using iflags and oflags for setting oplock and I/O
* options. This would make us compatible with GNU dd.