diff options
author | wes <wes@FreeBSD.org> | 2003-11-23 08:29:01 +0000 |
---|---|---|
committer | wes <wes@FreeBSD.org> | 2003-11-23 08:29:01 +0000 |
commit | 7aadaec3bed105c8fc3df0403f20a9be022fc6be (patch) | |
tree | 7c5e3ee0af6e0812c5ec688b79f458e2df1fc565 /sbin/newfs | |
parent | 5bae25b0ade32ad5e58850665a1f3de6593e4eab (diff) | |
download | FreeBSD-src-7aadaec3bed105c8fc3df0403f20a9be022fc6be.zip FreeBSD-src-7aadaec3bed105c8fc3df0403f20a9be022fc6be.tar.gz |
Don't use UFS2_BAD_MAGIC on UFS (v1) filesystems; it is Not Ready
for Prime Time there.
Submitted by: Xin LI <delphij@frontfree.net>
Approved by: RE@ (John, Scott)
Diffstat (limited to 'sbin/newfs')
-rw-r--r-- | sbin/newfs/mkfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs/mkfs.c b/sbin/newfs/mkfs.c index 4ed46e3..8017dbb 100644 --- a/sbin/newfs/mkfs.c +++ b/sbin/newfs/mkfs.c @@ -457,7 +457,7 @@ mkfs(struct partition *pp, char *fsys) } if (Eflag == 2) printf("** Leaving BAD MAGIC on Eflag 2\n"); - else + else if( Oflag != 1 ) sblock.fs_magic = FS_UFS2_MAGIC; /* |