linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Read/write counts
@ 2007-06-04 10:20 David H. Lynch Jr.
  2007-06-04 16:33 ` Andreas Dilger
  0 siblings, 1 reply; 8+ messages in thread
From: David H. Lynch Jr. @ 2007-06-04 10:20 UTC (permalink / raw)
  To: linux-fsdevel


    I have a file system that has really odd blocking.

    All files have a variable length header (basically a directory
entry) at their start.
    Most but not all sectors, have a small fixed length signature as
well as some link data at their start.

    The net result is that implimentation would be simpler if I could
just read/write, the amount of data
    that can be done with the least amount of work, even if that is less
than was requested.

    If I receive a request to read 512 bytes, and I return that I have
read 486, is either the OS, libc, or something else
    going to treat that as an error, or are they coming back for the
rest in a subsequent call ?

    I though I recalled that read()/write() returning a cound less than
requested is not an error.
   
   

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-04 20:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-04 10:20 Read/write counts David H. Lynch Jr.
2007-06-04 16:33 ` Andreas Dilger
2007-06-04 16:56   ` Bryan Henderson
2007-06-04 17:02     ` Matthew Wilcox
2007-06-04 18:33       ` Theodore Tso
2007-06-04 18:57         ` Roman Zippel
2007-06-04 19:24           ` Joel Becker
2007-06-04 20:00           ` Theodore Tso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).