From owner-cvs-src@FreeBSD.ORG Sat May 10 11:58:19 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC18F37B405; Sat, 10 May 2003 11:58:18 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C80143FCB; Sat, 10 May 2003 11:58:18 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4AIwH0U091862; Sat, 10 May 2003 11:58:17 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4AIwHQm091861; Sat, 10 May 2003 11:58:17 -0700 (PDT) Message-Id: <200305101858.h4AIwHQm091861@repoman.freebsd.org> From: Ian Dowse Date: Sat, 10 May 2003 11:58:17 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/newfs mkfs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 May 2003 18:58:19 -0000 iedowse 2003/05/10 11:58:17 PDT FreeBSD src repository Modified files: sbin/newfs mkfs.c Log: Put back the error checking in wtfs() that was lost when newfs was changed to use libufs in revision 1.71. Without this, any write failures in newfs were silently ignored. Note that this will display a meaningless errno string in the case of a short write as opposed to a write error, since bwrite()'s return value does not allow the caller to determine if errno is valid. Reported by: Lukas Ertl Reviewed by: jmallett Approved by: re (bmah) Revision Changes Path 1.76 +2 -1 src/sbin/newfs/mkfs.c