Date: Wed, 9 Nov 2005 11:46:01 +0100 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Craig Rodrigues <rodrigc@FreeBSD.org> Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern vfs_mount.c Message-ID: <20051109104601.GA15580@garage.freebsd.pl> In-Reply-To: <200511090226.jA92QcaM058466@repoman.freebsd.org> References: <200511090226.jA92QcaM058466@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051109104601.GA15580>