Date: Wed, 9 Nov 2005 11:56:13 +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: <20051109105613.GB15580@garage.freebsd.pl> In-Reply-To: <20051109104601.GA15580@garage.freebsd.pl> References: <200511090226.jA92QcaM058466@repoman.freebsd.org> <20051109104601.GA15580@garage.freebsd.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051109105613.GB15580>