Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jan 2004 21:38:02 -0800 (PST)
From:      "Andrey A. Chernov" <ache@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ufs/ffs ffs_vnops.c
Message-ID:  <200401230538.i0N5c2To061665@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401230538.i0N5c2To061665>