From 3f93672fea235de9cdedbf1cc440f09b3cfab3e8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 13 Mar 2023 17:55:38 +0100 Subject: Adding upstream version 4.2+20230313. Signed-off-by: Daniel Baumann --- mdadm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mdadm.h') diff --git a/mdadm.h b/mdadm.h index 1674ce1..b9127f9 100644 --- a/mdadm.h +++ b/mdadm.h @@ -275,6 +275,9 @@ static inline void __put_unaligned32(__u32 val, void *p) #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) +#define KIB_TO_BYTES(x) ((x) << 10) +#define SEC_TO_BYTES(x) ((x) << 9) + extern const char Name[]; struct md_bb_entry { @@ -435,6 +438,7 @@ extern char Version[], Usage[], Help[], OptionHelp[], */ enum special_options { AssumeClean = 300, + WriteZeroes, BitmapChunk, WriteBehind, ReAdd, @@ -640,6 +644,7 @@ struct shape { int bitmap_chunk; char *bitmap_file; int assume_clean; + bool write_zeroes; int write_behind; unsigned long long size; unsigned long long data_offset; @@ -1854,6 +1859,8 @@ static inline int xasprintf(char **strp, const char *fmt, ...) { #endif #define cont_err(fmt ...) fprintf(stderr, " " fmt) +#define pr_info(fmt, args...) printf("%s: "fmt, Name, ##args) + void *xmalloc(size_t len); void *xrealloc(void *ptr, size_t len); void *xcalloc(size_t num, size_t size); -- cgit v1.2.3