Deleted Added
full compact
pass2.c (74556) pass2.c (86512)
1/*
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)pass2.c 8.9 (Berkeley) 4/28/95";
37#endif
38static const char rcsid[] =
1/*
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
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

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

31 * SUCH DAMAGE.
32 */
33
34#ifndef lint
35#if 0
36static const char sccsid[] = "@(#)pass2.c 8.9 (Berkeley) 4/28/95";
37#endif
38static const char rcsid[] =
39 "$FreeBSD: head/sbin/fsck_ffs/pass2.c 74556 2001-03-21 09:48:03Z mckusick $";
39 "$FreeBSD: head/sbin/fsck_ffs/pass2.c 86512 2001-11-17 22:46:36Z iedowse $";
40#endif /* not lint */
41
42#include <sys/param.h>
43
44#include <ufs/ufs/dinode.h>
45#include <ufs/ufs/dir.h>
46#include <ufs/ffs/fs.h>
47

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

437 /* fall through */
438
439 case DFOUND:
440 inp = getinoinfo(dirp->d_ino);
441 if (inp->i_parent != 0 && idesc->id_entryno > 2) {
442 getpathname(pathbuf, idesc->id_number,
443 idesc->id_number);
444 getpathname(namebuf, dirp->d_ino, dirp->d_ino);
40#endif /* not lint */
41
42#include <sys/param.h>
43
44#include <ufs/ufs/dinode.h>
45#include <ufs/ufs/dir.h>
46#include <ufs/ffs/fs.h>
47

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

437 /* fall through */
438
439 case DFOUND:
440 inp = getinoinfo(dirp->d_ino);
441 if (inp->i_parent != 0 && idesc->id_entryno > 2) {
442 getpathname(pathbuf, idesc->id_number,
443 idesc->id_number);
444 getpathname(namebuf, dirp->d_ino, dirp->d_ino);
445 pwarn("%s %s %s\n", pathbuf,
445 pwarn("%s%s%s %s %s\n", pathbuf,
446 (strcmp(pathbuf, "/") == 0 ? "" : "/"),
447 dirp->d_name,
446 "IS AN EXTRANEOUS HARD LINK TO DIRECTORY",
447 namebuf);
448 if (cursnapshot != 0)
449 break;
450 if (preen) {
451 printf(" (REMOVED)\n");
452 n = 1;
453 break;

--- 42 unchanged lines hidden ---
448 "IS AN EXTRANEOUS HARD LINK TO DIRECTORY",
449 namebuf);
450 if (cursnapshot != 0)
451 break;
452 if (preen) {
453 printf(" (REMOVED)\n");
454 n = 1;
455 break;

--- 42 unchanged lines hidden ---