From owner-cvs-all@FreeBSD.ORG Wed Nov 9 10:56:31 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org 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 BE6D116A41F; Wed, 9 Nov 2005 10:56:31 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 252BC43D45; Wed, 9 Nov 2005 10:56:31 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 464DA52CEF; Wed, 9 Nov 2005 11:56:29 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C8EA052CE0; Wed, 9 Nov 2005 11:56:23 +0100 (CET) Date: Wed, 9 Nov 2005 11:56:13 +0100 From: Pawel Jakub Dawidek To: Craig Rodrigues Message-ID: <20051109105613.GB15580@garage.freebsd.pl> References: <200511090226.jA92QcaM058466@repoman.freebsd.org> <20051109104601.GA15580@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: <20051109104601.GA15580@garage.freebsd.pl> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_mount.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 10:56:31 -0000 --ftEhullJWpWg/VHq Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 09, 2005 at 11:46:01AM +0100, Pawel Jakub Dawidek wrote: +> On Wed, Nov 09, 2005 at 02:26:38AM +0000, Craig Rodrigues wrote: +> +> rodrigc 2005-11-09 02:26:38 UTC +> +>=20 +> +> FreeBSD src repository +> +>=20 +> +> Modified files: +> +> sys/kern vfs_mount.c=20 +> +> Log: +> +> For nmount(), allow a text string error message to be propagated ba= ck +> +> to user-space if a parameter named "errmsg" is passed into the iove= c. +> +> Used in conjunction with vfs_mount_error(), more useful error messa= ges +> +> than errno can be passed back to userspace when mounting a filesyst= em +> +> fails. +>=20 +> BTW. This is the 2nd (that I know of) place where passing errors as +> strings is implemented (the other one is GEOM). This would be cool at +> some point to implement general API for this, as it's much more useful +> than errno(2). Of course we need to consider things like localization, +> etc. then. IIRC phk@ was talking about this at BSDCan. I should really read the whole thread before answering:) --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --ftEhullJWpWg/VHq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDcdXNForvXbEpPzQRAhDBAKDOHVh3oD18axqtPNvhhH4pOegpdACgj51W OMa2+HBkPya1aVYnwIalxbo= =17x4 -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--