Merging upstream version 4.2+20230313.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
0471dd9ac9
commit
b8d8e3b147
6 changed files with 437 additions and 176 deletions
7
mdadm.h
7
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue