SCCS-vsn: sbin/fsck/main.c 2.25
-char version[] = "@(#)main.c 2.24 (Berkeley) %G%";
+char version[] = "@(#)main.c 2.25 (Berkeley) %G%";
#endif
#include <stdio.h>
#endif
#include <stdio.h>
#include <sys/param.h>
#include <sys/fs.h>
#include <sys/inode.h>
#include <sys/param.h>
#include <sys/fs.h>
#include <sys/inode.h>
#include <sys/stat.h>
#include <fstab.h>
#include <sys/stat.h>
#include <fstab.h>
if (stchar.st_mode & S_IFCHR) {
if (stslash.st_dev == stblock.st_rdev) {
hotroot++;
if (stchar.st_mode & S_IFCHR) {
if (stslash.st_dev == stblock.st_rdev) {
hotroot++;
}
checkfilesys(raw);
return (1);
}
checkfilesys(raw);
return (1);
free(freemap);
free(statemap);
free(lncntp);
free(freemap);
free(statemap);
free(lncntp);
- if (dfile.mod) {
- if (preen) {
- if (hotroot)
- exit(4);
- } else {
- printf("\n***** FILE SYSTEM WAS MODIFIED *****\n");
- if (hotroot) {
- printf("\n***** BOOT UNIX (NO SYNC!) *****\n");
- exit(4);
- }
- }
+ if (!dfile.mod)
+ return;
+ if (!preen) {
+ printf("\n***** FILE SYSTEM WAS MODIFIED *****\n");
+ if (hotroot)
+ printf("\n***** REBOOT UNIX *****\n");
+ }
+ if (hotroot) {
+ sync();
+ exit(4);