]>
Commit | Line | Data |
---|---|---|
3a58d298 JR |
1 | --- defrag-0.73/e2dump.c~ Tue Aug 12 21:32:05 1997 |
2 | +++ defrag-0.73/e2dump.c Tue Dec 26 02:01:27 2000 | |
3 | @@ -22,6 +22,7 @@ | |
4 | #include <fcntl.h> | |
5 | #include <time.h> | |
6 | #include <linux/ext2_fs.h> | |
7 | +#include <linux/version.h> | |
8 | #include "types.h" | |
9 | #include "ext2.h" | |
10 | #include "display.h" | |
11 | @@ -444,7 +444,11 @@ | |
12 | /* in 512 byte blocks for some unknown reason */ | |
13 | printf("512-Blocks count: %lu\n", (unsigned long) n.i_blocks); | |
14 | if (n.i_flags !=0) printf ("Flags 0x%lX\n", (unsigned long) n.i_flags); | |
15 | +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,0) | |
16 | + printf("Version: %lu\n", (unsigned long) n.i_generation); | |
17 | +#else | |
18 | printf("Version: %lu\n", (unsigned long) n.i_version); | |
19 | +#endif | |
20 | ||
21 | if (n.i_file_acl!=0 || n.i_dir_acl!=0) { | |
22 | printf("File ACL: %lu ", (unsigned long) n.i_file_acl); |