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. -- Pawel Jakub Dawidek http://www.wheel.pl [EMAIL PROTECTED] http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am!
pgpsDpGVcnwyT.pgp
Description: PGP signature