home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / wizards / 4663 < prev    next >
Encoding:
Text File  |  1992-11-14  |  1013 b   |  25 lines

  1. Newsgroups: comp.unix.wizards
  2. Path: sparky!uunet!ukma!wupost!zaphod.mps.ohio-state.edu!cs.utexas.edu!tamsun.tamu.edu!pnarayan
  3. From: pnarayan@cs.tamu.edu (P S Narayan)
  4. Subject: system call write
  5. Message-ID: <1992Nov13.164855.14013@tamsun.tamu.edu>
  6. Sender: news@tamsun.tamu.edu (Read News)
  7. Organization: Computer Science Department, Texas A&M University
  8. Date: Fri, 13 Nov 1992 16:48:55 GMT
  9. Lines: 14
  10.  
  11. When I do a write (fd, buf, bytes), assuming that the file descriptor refers
  12. to an open block device say disk, is the kernel going to copy buf from user
  13. space to system buffer or is it going to flush it immediately onto disk ?
  14. System V literature says that it is copied onto buffer and then by LRU 
  15. algorithm, it gets flushed when another process tries to access this buffer.
  16. In that case how can the user process without closing the files, ensure that
  17. his write system call flushes info onto disk ? Is there a way to do it ?
  18.  
  19. My question is how can I get synchronous write ?
  20.  
  21. Thanks
  22. Narayan
  23. pnarayan@cs.tamu.edu
  24.  
  25.