Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/util-linux/fsck_minix.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/util-linux/fsck_minix.c
r2725 r3232 14 14 * Sent out to the mailing-list for testing. 15 15 * 16 * 14.11.91 - 16 * 14.11.91 - Testing seems to have gone well. Added some 17 17 * correction-code, and changed some functions. 18 18 * … … 23 23 * things seem to work now. Yeah, sure. 24 24 * 25 * 26 * 19.04.92 - Had to start over again from this old version, as a 25 * 19.04.92 - Had to start over again from this old version, as a 27 26 * kernel bug ate my enhanced fsck in february. 28 27 * 29 * 28.02.93 - 28 * 28.02.93 - added support for different directory entry sizes.. 30 29 * 31 30 * Sat Mar 6 18:59:42 1993, faith@cs.unc.edu: Output namelen with … … 36 35 * 37 36 * Mon Jan 3 11:06:52 1994 - Dr. Wettstein (greg%wind.uucp@plains.nodak.edu) 38 * 39 * 40 * 41 * 42 * 43 * 30.10.94 - added support for v2 filesystem44 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de)45 * 46 * 10.12.94 - 47 * 48 * 37 * Added support for file system valid flag. Also 38 * added program_version variable and output of 39 * program name and version number when program 40 * is executed. 41 * 42 * 30.10.94 - added support for v2 filesystem 43 * (Andreas Schwab, schwab@issan.informatik.uni-dortmund.de) 44 * 45 * 10.12.94 - added test to prevent checking of mounted fs adapted 46 * from Theodore Ts'o's (tytso@athena.mit.edu) e2fsck 47 * program. (Daniel Quinlan, quinlan@yggdrasil.com) 49 48 * 50 49 * 01.07.96 - Fixed the v2 fs stuff to use the right #defines and such 51 * 50 * for modern libcs (janl@math.uio.no, Nicolai Langfeldt) 52 51 * 53 52 * 02.07.96 - Added C bit fiddling routines from rmk@ecs.soton.ac.uk 54 53 * (Russell King). He made them for ARM. It would seem 55 * 54 * that the ARM is powerful enough to do this in C whereas 56 55 * i386 and m64k must use assembly to get it fast >:-) 57 * 58 * 56 * This should make minix fsck system-independent. 57 * (janl@math.uio.no, Nicolai Langfeldt) 59 58 * 60 59 * 04.11.96 - Added minor fixes from Andreas Schwab to avoid compiler 61 60 * warnings. Added mc68k bitops from 62 * 61 * Joerg Dorchain <dorchain@mpi-sb.mpg.de>. 63 62 * 64 63 * 06.11.96 - Added v2 code submitted by Joerg Dorchain, but written by … … 87 86 * enforced (but it's not much fun on a character device :-). 88 87 */ 88 89 //usage:#define fsck_minix_trivial_usage 90 //usage: "[-larvsmf] BLOCKDEV" 91 //usage:#define fsck_minix_full_usage "\n\n" 92 //usage: "Check MINIX filesystem\n" 93 //usage: "\n -l List all filenames" 94 //usage: "\n -r Perform interactive repairs" 95 //usage: "\n -a Perform automatic repairs" 96 //usage: "\n -v Verbose" 97 //usage: "\n -s Output superblock information" 98 //usage: "\n -m Show \"mode not cleared\" warnings" 99 //usage: "\n -f Force file system check" 89 100 90 101 #include <mntent.h> … … 1120 1131 } 1121 1132 printf("Zone %d: %sin use, counted=%d\n", 1122 1133 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1123 1134 } 1124 1135 } … … 1172 1183 } 1173 1184 printf("Zone %d: %sin use, counted=%d\n", 1174 1185 i, zone_in_use(i) ? "" : "not ", zone_count[i]); 1175 1186 } 1176 1187 } … … 1242 1253 else if (OPT_repair) 1243 1254 printf("Filesystem on %s is dirty, needs checking\n", 1244 1255 device_name); 1245 1256 1246 1257 read_tables(); … … 1269 1280 free_cnt++; 1270 1281 printf("\n%6u inodes used (%u%%)\n", (INODES - free_cnt), 1271 1282 100 * (INODES - free_cnt) / INODES); 1272 1283 for (i = FIRSTZONE, free_cnt = 0; i < ZONES; i++) 1273 1284 if (!zone_in_use(i)) 1274 1285 free_cnt++; 1275 1286 printf("%6u zones used (%u%%)\n\n" 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1287 "%6u regular files\n" 1288 "%6u directories\n" 1289 "%6u character device files\n" 1290 "%6u block device files\n" 1291 "%6u links\n" 1292 "%6u symbolic links\n" 1293 "------\n" 1294 "%6u files\n", 1295 (ZONES - free_cnt), 100 * (ZONES - free_cnt) / ZONES, 1296 regular, directory, chardev, blockdev, 1297 links - 2 * directory + 1, symlinks, 1298 total - 2 * directory + 1); 1288 1299 } 1289 1300 if (changed) {
Note:
See TracChangeset
for help on using the changeset viewer.