1
0
Fork 0

Adding upstream version 2.14.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-22 13:00:33 +02:00
parent 94a061187a
commit dbdc28cb89
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
572 changed files with 4636 additions and 1730 deletions

6
nvme.h
View file

@ -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);