Skip site navigation (1)Skip section navigation (2)
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

[-- Attachment #1 --]
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
+> +> 
+> +>   FreeBSD src repository
+> +> 
+> +>   Modified files:
+> +>     sys/kern             vfs_mount.c 
+> +>   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.

I should really read the whole thread before answering:)

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd@FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDcdXNForvXbEpPzQRAhDBAKDOHVh3oD18axqtPNvhhH4pOegpdACgj51W
OMa2+HBkPya1aVYnwIalxbo=
=17x4
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051109105613.GB15580>