Deleted Added
full compact
fat.c (175853) fat.c (175854)
1/*
2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
3 * Copyright (c) 1995 Martin Husemann
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 21 unchanged lines hidden (view full) ---

30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33
34#include <sys/cdefs.h>
35#ifndef lint
36__RCSID("$NetBSD: fat.c,v 1.12 2000/10/10 20:24:52 is Exp $");
37static const char rcsid[] =
1/*
2 * Copyright (C) 1995, 1996, 1997 Wolfgang Solfrank
3 * Copyright (c) 1995 Martin Husemann
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 21 unchanged lines hidden (view full) ---

30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */
32
33
34#include <sys/cdefs.h>
35#ifndef lint
36__RCSID("$NetBSD: fat.c,v 1.12 2000/10/10 20:24:52 is Exp $");
37static const char rcsid[] =
38 "$FreeBSD: head/sbin/fsck_msdosfs/fat.c 175853 2008-01-31 13:16:29Z yar $";
38 "$FreeBSD: head/sbin/fsck_msdosfs/fat.c 175854 2008-01-31 13:22:13Z yar $";
39#endif /* not lint */
40
41#include <stdlib.h>
42#include <string.h>
43#include <ctype.h>
44#include <stdio.h>
45#include <unistd.h>
46

--- 296 unchanged lines hidden (view full) ---

343 if (ask(1, "Fix")) {
344 *cp2 = *cp1;
345 return FSFATMOD;
346 }
347 return FSFATAL;
348 }
349 pwarn("Cluster %u is marked %s in FAT 0, %s in FAT %d\n",
350 cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum);
39#endif /* not lint */
40
41#include <stdlib.h>
42#include <string.h>
43#include <ctype.h>
44#include <stdio.h>
45#include <unistd.h>
46

--- 296 unchanged lines hidden (view full) ---

343 if (ask(1, "Fix")) {
344 *cp2 = *cp1;
345 return FSFATMOD;
346 }
347 return FSFATAL;
348 }
349 pwarn("Cluster %u is marked %s in FAT 0, %s in FAT %d\n",
350 cl, rsrvdcltype(*cp1), rsrvdcltype(*cp2), fatnum);
351 if (ask(0, "use FAT 0's entry")) {
351 if (ask(0, "Use FAT 0's entry")) {
352 *cp2 = *cp1;
353 return FSFATMOD;
354 }
352 *cp2 = *cp1;
353 return FSFATMOD;
354 }
355 if (ask(0, "use FAT %d's entry", fatnum)) {
355 if (ask(0, "Use FAT %d's entry", fatnum)) {
356 *cp1 = *cp2;
357 return FSFATMOD;
358 }
359 return FSFATAL;
360 }
361 pwarn("Cluster %u is marked %s in FAT 0, but continues with cluster %u in FAT %d\n",
362 cl, rsrvdcltype(*cp1), *cp2, fatnum);
363 if (ask(0, "Use continuation from FAT %d", fatnum)) {

--- 339 unchanged lines hidden ---
356 *cp1 = *cp2;
357 return FSFATMOD;
358 }
359 return FSFATAL;
360 }
361 pwarn("Cluster %u is marked %s in FAT 0, but continues with cluster %u in FAT %d\n",
362 cl, rsrvdcltype(*cp1), *cp2, fatnum);
363 if (ask(0, "Use continuation from FAT %d", fatnum)) {

--- 339 unchanged lines hidden ---