#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"