From owner-cvs-all@FreeBSD.ORG Wed Jan 21 12:12:25 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47E1316A4CE; Wed, 21 Jan 2004 12:12:25 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43B1E43D46; Wed, 21 Jan 2004 12:12:24 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0LKCO0B048580; Wed, 21 Jan 2004 12:12:24 -0800 (PST) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0LKCOUo048579; Wed, 21 Jan 2004 12:12:24 -0800 (PST) (envelope-from jhb) Message-Id: <200401212012.i0LKCOUo048579@repoman.freebsd.org> From: John Baldwin Date: Wed, 21 Jan 2004 12:12:24 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libstand bzipfs.c dosfs.c ext2fs.c fstat.c gzipfs.c nfs.c nullfs.c read.c splitfs.c ufs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2004 20:12:25 -0000 jhb 2004/01/21 12:12:24 PST FreeBSD src repository Modified files: lib/libstand bzipfs.c dosfs.c ext2fs.c fstat.c gzipfs.c nfs.c nullfs.c read.c splitfs.c ufs.c Log: Clean up error handling in libstand filesystem code to be more consistent: - bzipfs and gzipfs now properly return errno values directly from their read routines rather than returning -1. - missing errno values on error returns for the seek routines on almost all filesystems were added. - fstat() now returns -1 if an error occurs rather than ignoring it. - nfs's readdir() routine now reports valid errno values if an error or EOF occurs rather than EPERM (It was just returning 0 for success and 1 for failure). - nullfs used the wrong semantics for every function besides close() and seek(). Getting it right for close() appears to be an accident at that. - read() for buffered files no longer returns 0 (EOF) if an error occurs, but returns -1 instead. Revision Changes Path 1.6 +11 -5 src/lib/libstand/bzipfs.c 1.7 +4 -1 src/lib/libstand/dosfs.c 1.5 +1 -0 src/lib/libstand/ext2fs.c 1.4 +2 -0 src/lib/libstand/fstat.c 1.13 +11 -5 src/lib/libstand/gzipfs.c 1.12 +3 -2 src/lib/libstand/nfs.c 1.6 +5 -10 src/lib/libstand/nullfs.c 1.4 +2 -2 src/lib/libstand/read.c 1.6 +9 -2 src/lib/libstand/splitfs.c 1.14 +1 -0 src/lib/libstand/ufs.c