diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-09 00:13:40 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-09 00:13:40 +0200 |
commit | 6774386d95cec54258f23f69bc287c99e205ebdf (patch) | |
tree | 51a81051eb233a15e6107579c8573ecec5b09726 /util-linux/mkfs_ext2.c | |
parent | 19afe848eca8d3baf149cd7ed715489403360287 (diff) | |
download | busybox-w32-6774386d95cec54258f23f69bc287c99e205ebdf.tar.gz busybox-w32-6774386d95cec54258f23f69bc287c99e205ebdf.tar.bz2 busybox-w32-6774386d95cec54258f23f69bc287c99e205ebdf.zip |
tune2fs: move to e2fsprogs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/mkfs_ext2.c')
-rw-r--r-- | util-linux/mkfs_ext2.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index cf40c20eb..fd54734fc 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c | |||
@@ -10,7 +10,6 @@ | |||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | #include <linux/fs.h> | 11 | #include <linux/fs.h> |
12 | #include <linux/ext2_fs.h> | 12 | #include <linux/ext2_fs.h> |
13 | #include "volume_id/volume_id_internal.h" | ||
14 | 13 | ||
15 | #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 | 14 | #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 |
16 | #define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1 | 15 | #define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1 |
@@ -29,9 +28,9 @@ char BUG_wrong_field_size(void); | |||
29 | #define STORE_LE(field, value) \ | 28 | #define STORE_LE(field, value) \ |
30 | do { \ | 29 | do { \ |
31 | if (sizeof(field) == 4) \ | 30 | if (sizeof(field) == 4) \ |
32 | field = cpu_to_le32(value); \ | 31 | field = SWAP_LE32(value); \ |
33 | else if (sizeof(field) == 2) \ | 32 | else if (sizeof(field) == 2) \ |
34 | field = cpu_to_le16(value); \ | 33 | field = SWAP_LE16(value); \ |
35 | else if (sizeof(field) == 1) \ | 34 | else if (sizeof(field) == 1) \ |
36 | field = (value); \ | 35 | field = (value); \ |
37 | else \ | 36 | else \ |
@@ -39,7 +38,7 @@ do { \ | |||
39 | } while (0) | 38 | } while (0) |
40 | 39 | ||
41 | #define FETCH_LE32(field) \ | 40 | #define FETCH_LE32(field) \ |
42 | (sizeof(field) == 4 ? cpu_to_le32(field) : BUG_wrong_field_size()) | 41 | (sizeof(field) == 4 ? SWAP_LE32(field) : BUG_wrong_field_size()) |
43 | 42 | ||
44 | // All fields are little-endian | 43 | // All fields are little-endian |
45 | struct ext2_dir { | 44 | struct ext2_dir { |