Adding upstream version 2.14.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
94a061187a
commit
dbdc28cb89
572 changed files with 4636 additions and 1730 deletions
6
nvme.h
6
nvme.h
|
@ -78,6 +78,8 @@ struct nvme_config {
|
|||
char *output_format;
|
||||
int verbose;
|
||||
__u32 timeout;
|
||||
bool dry_run;
|
||||
unsigned int output_format_ver;
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -90,6 +92,9 @@ struct nvme_config {
|
|||
OPT_FMT("output-format", 'o', &nvme_cfg.output_format, output_format), \
|
||||
##__VA_ARGS__, \
|
||||
OPT_UINT("timeout", 't', &nvme_cfg.timeout, timeout), \
|
||||
OPT_FLAG("dry-run", 0, &nvme_cfg.dry_run, dry_run), \
|
||||
OPT_UINT("output-format-version", 0, &nvme_cfg.output_format_ver, \
|
||||
"output format version: 1|2"), \
|
||||
OPT_END() \
|
||||
}
|
||||
|
||||
|
@ -131,6 +136,7 @@ static inline DEFINE_CLEANUP_FUNC(
|
|||
extern const char *output_format;
|
||||
extern const char *timeout;
|
||||
extern const char *verbose;
|
||||
extern const char *dry_run;
|
||||
extern struct nvme_config nvme_cfg;
|
||||
|
||||
int validate_output_format(const char *format, nvme_print_flags_t *flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue