From owner-cvs-all Thu Jul 18 13:52:22 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B21C37B401; Thu, 18 Jul 2002 13:52:18 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 429B943E3B; Thu, 18 Jul 2002 13:52:18 -0700 (PDT) (envelope-from joerg@FreeBSD.org) Received: from freefall.freebsd.org (joerg@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6IKqIJU066143; Thu, 18 Jul 2002 13:52:18 -0700 (PDT) (envelope-from joerg@freefall.freebsd.org) Received: (from joerg@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6IKqIb0066142; Thu, 18 Jul 2002 13:52:18 -0700 (PDT) Message-Id: <200207182052.g6IKqIb0066142@freefall.freebsd.org> From: Joerg Wunsch Date: Thu, 18 Jul 2002 13:52:18 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/mountd exports.5 mountd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joerg 2002/07/18 13:52:17 PDT Modified files: usr.sbin/mountd exports.5 mountd.c Log: Try to give a more descriptive error message for the pilot error of attempting to export the non-root of a filesystem with -alldirs. This pilot error seems to be very common, and the "could not remount" error message doesn't give much hints about the real reason. See the old PR below for an example. While i was at it, make it possible to entirely omit the often annoying error message in that case by specifying the "quiet" exports flag. This allows to specify something like /cdrom -alldirs,ro,quiet which will silently fail if nothing is mounted under /cdrom, but do the rigth thing as soon as you mount something. While doing this, i've put the embedded example in the exports(5) man page into a subsection of its own as it ought to be. Thanks for Paul Southworth for reminding me about this problem. PR: bin/4448 MFC after: 1 month Revision Changes Path 1.20 +67 -23 src/usr.sbin/mountd/exports.5 1.67 +15 -3 src/usr.sbin/mountd/mountd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message