1
0
Fork 0

Merging upstream version 4.2+20230313.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-14 06:05:07 +01:00
parent 0471dd9ac9
commit b8d8e3b147
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
6 changed files with 437 additions and 176 deletions

View file

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