From 9e6de4df51f95163d0e7964a64d162e61bf647a7 Mon Sep 17 00:00:00 2001 From: ad Date: Tue, 20 May 2008 16:26:04 +0000 Subject: [PATCH] Don't moan about LFS unless the mount succeeds. --- sys/ufs/lfs/lfs_vfsops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/ufs/lfs/lfs_vfsops.c b/sys/ufs/lfs/lfs_vfsops.c index fe0671b04b71..90ca011b0449 100644 --- a/sys/ufs/lfs/lfs_vfsops.c +++ b/sys/ufs/lfs/lfs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_vfsops.c,v 1.263 2008/05/18 13:56:12 ad Exp $ */ +/* $NetBSD: lfs_vfsops.c,v 1.264 2008/05/20 16:26:04 ad Exp $ */ /*- * Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007 @@ -61,7 +61,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.263 2008/05/18 13:56:12 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.264 2008/05/20 16:26:04 ad Exp $"); #if defined(_KERNEL_OPT) #include "opt_lfs.h" @@ -548,9 +548,6 @@ lfs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l) cred = l ? l->l_cred : NOCRED; - printf("WARNING: the log file system is experimental and " - "may be unstable\n"); - /* * Flush out any old buffers remaining from a previous use. */ @@ -877,6 +874,9 @@ lfs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l) lfs_writerd, NULL, NULL, "lfs_writer") != 0) panic("fork lfs_writer"); + printf("WARNING: the log file system is experimental and " + "may be unstable\n"); + return (0); out: