Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jan 2004 12:12:24 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
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
Message-ID:  <200401212012.i0LKCOUo048579@repoman.freebsd.org>

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



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