diff options
author | Eric Andersen <andersen@codepoet.org> | 2000-09-19 21:13:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2000-09-19 21:13:55 +0000 |
commit | 56f3e353da3facd5f4a04eadf813312433f5363f (patch) | |
tree | e22660aac1fd00f57b3b5d2d558d9b237bf513cc /util-linux/fsck_minix.c | |
parent | 06f64b23701d1bd3d858f374e66784cb95f04882 (diff) | |
download | busybox-w32-56f3e353da3facd5f4a04eadf813312433f5363f.tar.gz busybox-w32-56f3e353da3facd5f4a04eadf813312433f5363f.tar.bz2 busybox-w32-56f3e353da3facd5f4a04eadf813312433f5363f.zip |
Both of these commands were subtly broken. Fortunately when used together the
damage was only ugly fscks. Reverted to the static inline code so they work
correctly again,
-Erik
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r-- | util-linux/fsck_minix.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index bc92f20b7..04c2b3317 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c | |||
@@ -268,8 +268,12 @@ static void recursive_check(unsigned int ino); | |||
268 | static void recursive_check2(unsigned int ino); | 268 | static void recursive_check2(unsigned int ino); |
269 | #endif | 269 | #endif |
270 | 270 | ||
271 | #define inode_in_use(x) (isset(inode_map,(x))) | 271 | static inline int bit(char * a,unsigned int i) |
272 | #define zone_in_use(x) (isset(zone_map,(x)-FIRSTZONE+1)) | 272 | { |
273 | return (a[i >> 3] & (1<<(i & 7))) != 0; | ||
274 | } | ||
275 | #define inode_in_use(x) (bit(inode_map,(x))) | ||
276 | #define zone_in_use(x) (bit(zone_map,(x)-FIRSTZONE+1)) | ||
273 | 277 | ||
274 | #define mark_inode(x) (setbit(inode_map,(x)),changed=1) | 278 | #define mark_inode(x) (setbit(inode_map,(x)),changed=1) |
275 | #define unmark_inode(x) (clrbit(inode_map,(x)),changed=1) | 279 | #define unmark_inode(x) (clrbit(inode_map,(x)),changed=1) |