From owner-cvs-src@FreeBSD.ORG Wed Nov 9 10:46:22 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9E0216A420; Wed, 9 Nov 2005 10:46:22 +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 17A9A43D48; Wed, 9 Nov 2005 10:46:21 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 2ED8352C94; Wed, 9 Nov 2005 11:46:19 +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 EB93C50F93; Wed, 9 Nov 2005 11:46:12 +0100 (CET) Date: Wed, 9 Nov 2005 11:46:01 +0100 From: Pawel Jakub Dawidek To: Craig Rodrigues Message-ID: <20051109104601.GA15580@garage.freebsd.pl> References: <200511090226.jA92QcaM058466@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <200511090226.jA92QcaM058466@repoman.freebsd.org> 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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2005 10:46:23 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 back +> to user-space if a parameter named "errmsg" is passed into the iovec. +> Used in conjunction with vfs_mount_error(), more useful error messages +> than errno can be passed back to userspace when mounting a filesystem +> fails. 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. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDcdNpForvXbEpPzQRAgSZAKD3ZNZMA3JhMatcYPO1EiZaVe55tACcCdTb 2wemlIoO3yRq0glyGWFAEXY= =jMdj -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--