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