summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2004-08-19 11:09:13 +0000
committerjhb <jhb@FreeBSD.org>2004-08-19 11:09:13 +0000
commite4ddba3ab3c1d8feb380c67b73a7b5a94962ed80 (patch)
tree45f017c4cc96d8db9146025f6c51e6c24f770021 /sbin/fsck_ffs
parente22c3c721308d1e8f0a24ce8b45f6e9c0e39e109 (diff)
downloadFreeBSD-src-e4ddba3ab3c1d8feb380c67b73a7b5a94962ed80.zip
FreeBSD-src-e4ddba3ab3c1d8feb380c67b73a7b5a94962ed80.tar.gz
Generalize the UFS bad magic value used to determine when a filesystem
has only been partly initialized via newfs(8) so that it applies to both UFS1 and UFS2. Submitted by: "Xin LI" delphij at frontfree dot net MFC: maybe?
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r--sbin/fsck_ffs/setup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index 11004a5..e95a6ad 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -306,7 +306,7 @@ readsb(int listerr)
super = bflag;
if ((bread(fsreadfd, (char *)&sblock, super, (long)SBLOCKSIZE)))
return (0);
- if (sblock.fs_magic == FS_BAD2_MAGIC) {
+ if (sblock.fs_magic == FS_BAD_MAGIC) {
fprintf(stderr, BAD_MAGIC_MSG);
exit(11);
}
@@ -322,7 +322,7 @@ readsb(int listerr)
if ((bread(fsreadfd, (char *)&sblock, super,
(long)SBLOCKSIZE)))
return (0);
- if (sblock.fs_magic == FS_BAD2_MAGIC) {
+ if (sblock.fs_magic == FS_BAD_MAGIC) {
fprintf(stderr, BAD_MAGIC_MSG);
exit(11);
}
OpenPOWER on IntegriCloud