Path: utzoo!attcan!uunet!husc6!mailrus!ames!pasteur!ucbvax!BGUVM.BITNET!GDAU100 From: GDAU100@BGUVM.BITNET ("Jonathan B. Owen") Newsgroups: comp.sys.apollo Subject: Ensuring update of ile is physically written to disk - question Message-ID: <8811161744.AA12085@umix.cc.umich.edu> Date: 16 Nov 88 20:00:35 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 29 X-Unparsable-Date: Wed, 16 Nov 88 19:32:15 IST Hello. In the project I work, there is a need for certain recovery schems. I make some updates to a file (using the ADA package DIRECT_IO). After I perform the updates AND before I close the file, I need to be sure that the updates were actually written to disk and not kept in memory by Unix (read Cauching scheme). To check this out I turn off the Apollo after the invocation of the update routine (i.e. simulating a power failure), and regretably, the changes are gone. Furthermore, after creating a new file, I check that it has been added to the directory (in another process using ls). Following the "power failure" the file is gone. Have you run into this problem? Maybe you know of a Unix system call which "flushes" all updated blocks to disk? Thank you for your help, JB P.S. I would very much appreciate any ADA sources which use the GSR and GPR libraries. If you are willing to send examples, please use regular Email. Thanks again. ______________________________________________________________________________ (--) /--) /-(\ Email: gdau100@bguvm (bitnet) \ / /--K | \|/\ /\/) /|-\ Snail: 55 Hovevei Zion _/_/o /L__)_/o \/\__/ \X/ \_/ | |_/ Tel-Aviv, 63346 ISRAEL (/ Jonathan B. Owen Voice: (03) 281-422 Point of view: A chicken is the means by which an egg reproduces an egg. ______________________________________________________________________________