aboutsummaryrefslogtreecommitdiff
path: root/util-linux/fsck_minix.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-01-14 15:57:44 +0100
commit60cb48ca50fcff24aa6c3927f51e4a508fa118f4 (patch)
tree493e30821f3d484b7395ce9d9e4be39ec9a43126 /util-linux/fsck_minix.c
parentb8173b603f57dcf918a67f1ec00763ab5f4e1cf8 (diff)
downloadbusybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.gz
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.tar.bz2
busybox-w32-60cb48ca50fcff24aa6c3927f51e4a508fa118f4.zip
whitespace cleanup. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/fsck_minix.c')
-rw-r--r--util-linux/fsck_minix.c67
1 files changed, 33 insertions, 34 deletions
diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c
index 1508ecb03..c1d1b2cc3 100644
--- a/util-linux/fsck_minix.c
+++ b/util-linux/fsck_minix.c
@@ -13,7 +13,7 @@
13 * 10.11.91 - updated, does checking, no repairs yet. 13 * 10.11.91 - updated, does checking, no repairs yet.
14 * Sent out to the mailing-list for testing. 14 * Sent out to the mailing-list for testing.
15 * 15 *
16 * 14.11.91 - Testing seems to have gone well. Added some 16 * 14.11.91 - Testing seems to have gone well. Added some
17 * correction-code, and changed some functions. 17 * correction-code, and changed some functions.
18 * 18 *
19 * 15.11.91 - More correction code. Hopefully it notices most 19 * 15.11.91 - More correction code. Hopefully it notices most
@@ -22,11 +22,10 @@
22 * 16.11.91 - More corrections (thanks to Mika Jalava). Most 22 * 16.11.91 - More corrections (thanks to Mika Jalava). Most
23 * things seem to work now. Yeah, sure. 23 * things seem to work now. Yeah, sure.
24 * 24 *
25 * 25 * 19.04.92 - Had to start over again from this old version, as a
26 * 19.04.92 - Had to start over again from this old version, as a
27 * kernel bug ate my enhanced fsck in february. 26 * kernel bug ate my enhanced fsck in february.
28 * 27 *
29 * 28.02.93 - added support for different directory entry sizes.. 28 * 28.02.93 - added support for different directory entry sizes..
30 * 29 *
31 * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with 30 * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with
32 * superblock information 31 * superblock information
@@ -35,31 +34,31 @@
35 * to that required by fsutil 34 * to that required by fsutil
36 * 35 *
37 * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu) 36 * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu)
38 * Added support for file system valid flag. Also 37 * Added support for file system valid flag. Also
39 * added program_version variable and output of 38 * added program_version variable and output of
40 * program name and version number when program 39 * program name and version number when program
41 * is executed. 40 * is executed.
42 * 41 *
43 * 30.10.94 - added support for v2 filesystem 42 * 30.10.94 - added support for v2 filesystem
44 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de) 43 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de)
45 * 44 *
46 * 10.12.94 - added test to prevent checking of mounted fs adapted 45 * 10.12.94 - added test to prevent checking of mounted fs adapted
47 * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck 46 * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck
48 * program. (Daniel Quinlan, quinlan@yggdrasil.com) 47 * program. (Daniel Quinlan, quinlan@yggdrasil.com)
49 * 48 *
50 * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such 49 * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such
51 * for modern libcs (janl@math.uio.no, Nicolai Langfeldt) 50 * for modern libcs (janl@math.uio.no, Nicolai Langfeldt)
52 * 51 *
53 * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk 52 * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk
54 * (Russell King). He made them for ARM. It would seem 53 * (Russell King). He made them for ARM. It would seem
55 * that the ARM is powerful enough to do this in C whereas 54 * that the ARM is powerful enough to do this in C whereas
56 * i386 and m64k must use assembly to get it fast >:-) 55 * i386 and m64k must use assembly to get it fast >:-)
57 * This should make minix fsck system-independent. 56 * This should make minix fsck system-independent.
58 * (janl@math.uio.no, Nicolai Langfeldt) 57 * (janl@math.uio.no, Nicolai Langfeldt)
59 * 58 *
60 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler 59 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler
61 * warnings. Added mc68k bitops from 60 * warnings. Added mc68k bitops from
62 * Joerg Dorchain <dorchain@mpi-sb.mpg.de>. 61 * Joerg Dorchain <dorchain@mpi-sb.mpg.de>.
63 * 62 *
64 * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by 63 * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by
65 * Andreas Schwab. 64 * Andreas Schwab.
@@ -1131,7 +1130,7 @@ static void check_counts(void)
1131 continue; 1130 continue;
1132 } 1131 }
1133 printf("Zone %d: %sin use, counted=%d\n", 1132 printf("Zone %d: %sin use, counted=%d\n",
1134 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1133 i, zone_in_use(i) ? "" : "not ", zone_count[i]);
1135 } 1134 }
1136} 1135}
1137 1136
@@ -1183,7 +1182,7 @@ static void check_counts2(void)
1183 continue; 1182 continue;
1184 } 1183 }
1185 printf("Zone %d: %sin use, counted=%d\n", 1184 printf("Zone %d: %sin use, counted=%d\n",
1186 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1185 i, zone_in_use(i) ? "" : "not ", zone_count[i]);
1187 } 1186 }
1188} 1187}
1189#endif 1188#endif
@@ -1253,7 +1252,7 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv)
1253 printf("Forcing filesystem check on %s\n", device_name); 1252 printf("Forcing filesystem check on %s\n", device_name);
1254 else if (OPT_repair) 1253 else if (OPT_repair)
1255 printf("Filesystem on %s is dirty, needs checking\n", 1254 printf("Filesystem on %s is dirty, needs checking\n",
1256 device_name); 1255 device_name);
1257 1256
1258 read_tables(); 1257 read_tables();
1259 1258
@@ -1280,23 +1279,23 @@ int fsck_minix_main(int argc UNUSED_PARAM, char **argv)
1280 if (!inode_in_use(i)) 1279 if (!inode_in_use(i))
1281 free_cnt++; 1280 free_cnt++;
1282 printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt), 1281 printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt),
1283 100 * (INODES - free_cnt) / INODES); 1282 100 * (INODES - free_cnt) / INODES);
1284 for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) 1283 for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++)
1285 if (!zone_in_use(i)) 1284 if (!zone_in_use(i))
1286 free_cnt++; 1285 free_cnt++;
1287 printf("%6u zones used (%u%%)\n\n" 1286 printf("%6u zones used (%u%%)\n\n"
1288 "%6u regular files\n" 1287 "%6u regular files\n"
1289 "%6u directories\n" 1288 "%6u directories\n"
1290 "%6u character device files\n" 1289 "%6u character device files\n"
1291 "%6u block device files\n" 1290 "%6u block device files\n"
1292 "%6u links\n" 1291 "%6u links\n"
1293 "%6u symbolic links\n" 1292 "%6u symbolic links\n"
1294 "------\n" 1293 "------\n"
1295 "%6u files\n", 1294 "%6u files\n",
1296 (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES, 1295 (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES,
1297 regular, directory, chardev, blockdev, 1296 regular, directory, chardev, blockdev,
1298 links - 2 * directory + 1, symlinks, 1297 links - 2 * directory + 1, symlinks,
1299 total - 2 * directory + 1); 1298 total - 2 * directory + 1);
1300 } 1299 }
1301 if (changed) { 1300 if (changed) {
1302 write_tables(); 1301 write_tables();