cvs commit: src/sys/kern vfs_mount.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Nov 9 10:46:23 GMT 2005


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
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20051109/b443d664/attachment.bin


More information about the cvs-src mailing list