summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorPedro Martelletto <pedro@cvs.openbsd.org>2006-03-09 13:25:03 +0000
committerPedro Martelletto <pedro@cvs.openbsd.org>2006-03-09 13:25:03 +0000
commit2a989b491f3ed74f5fe1bdc2c148cff005de0ef5 (patch)
tree2d9421c2413ce044487a802342466435189d608c /sys/ufs/ffs
parentb9576f8b9de9e045ae66a7d44f478d5432d7903f (diff)
- Slightly more informative error message (requested by krw@)
- Bring back '&& !ronly' into the conditional, so these ancient file systems can be mounted again read-only (requested by millert@)
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index f6009eda3e9..b6fa8941464 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_vfsops.c,v 1.81 2006/03/09 13:21:12 pedro Exp $ */
+/* $OpenBSD: ffs_vfsops.c,v 1.82 2006/03/09 13:25:02 pedro Exp $ */
/* $NetBSD: ffs_vfsops.c,v 1.19 1996/02/09 22:22:26 christos Exp $ */
/*
@@ -732,10 +732,10 @@ ffs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p)
}
}
- if (fs->fs_postblformat == FS_42POSTBLFMT) {
+ if (fs->fs_postblformat == FS_42POSTBLFMT && !ronly) {
#ifndef SMALL_KERNEL
printf("ffs_mountfs(): obsolete rotational table format, "
- "please use fsck -c\n");
+ "please use fsck_ffs(8) -c 1\n");
#endif
error = EFTYPE;
goto out;