1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#include "config.h"
#include <math.h>
#include <sys/time.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <malloc.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <stdint.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <attr/xattr.h>
#include <errno.h>
#include <ext2fs/ext2fs.h>
#include <e2p/e2p.h>
#define BUF_SZ (16*1024*1024)
#define EXT2_DO_MOAN(v,wot,file,function,line) \
if (v) { \
fprintf (stderr, "%s:%s:%d %s failed %d(%s)\n", file,function, line, wot, (v) ,error_message(v)); \
}
#define EXT2_MOAN(v,wot) \
do { \
EXT2_DO_MOAN(v,wot,__FILE__,__FUNCTION__,__LINE__) \
} while (0)
#define EXT2_MOAN_FAIL(v,wot) \
do { \
(v)= wot; \
EXT2_DO_MOAN(v,#wot,__FILE__,__FUNCTION__,__LINE__) \
} while (0)
#include "prototypes.h"
|