From owner-cvs-all@FreeBSD.ORG Thu Jan 22 21:38:03 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 6A52816A4CE; Thu, 22 Jan 2004 21:38:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96E2E43D1F; Thu, 22 Jan 2004 21:38:02 -0800 (PST) (envelope-from ache@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 i0N5c20B061666; Thu, 22 Jan 2004 21:38:02 -0800 (PST) (envelope-from ache@repoman.freebsd.org) Received: (from ache@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0N5c2To061665; Thu, 22 Jan 2004 21:38:02 -0800 (PST) (envelope-from ache) Message-Id: <200401230538.i0N5c2To061665@repoman.freebsd.org> From: "Andrey A. Chernov" Date: Thu, 22 Jan 2004 21:38:02 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ufs/ffs ffs_vnops.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: Fri, 23 Jan 2004 05:38:03 -0000 ache 2004/01/22 21:38:02 PST FreeBSD src repository Modified files: sys/ufs/ffs ffs_vnops.c Log: ffs_read: Replace wrong check returned EFBIG with EOVERFLOW handling from POSIX: 36708 [EOVERFLOW] The file is a regular file, nbyte is greater than 0, the starting position is before the end-of-file, and the starting position is greater than or equal to the offset maximum established in the open file description associated with fildes. ffs_write: Replace u_int64_t cast with uoff_t cast which is more natural for types used. ffs_write & ffs_read: Remove uio_offset and uio_resid checks for negative values, the caller supposed to do it already. Add comments about it. Reviewed by: bde Revision Changes Path 1.121 +14 -7 src/sys/ufs/ffs/ffs_vnops.c