[comp.sys.mac.programmer] FlushVol

mdr@reed.UUCP (Mike Rutenberg) (02/24/88)

Ok, here's a question that I haven't yet been able to get answered
(although I haven't talked with DTS).

I have an open file that I would like to keep open.  I would also like
to ensure that all that I have already written is actually put on the
disk.

Question: Is FlushVol() guanteed to work for all of the outstanding
write requests, or only for those where the file has been closed.

IM doesn't explicitly say what FlushVol() depends on.
-- 
Mike Rutenberg
	Software Engineer & Short Order Cook
	(503) 771-5516

rs4u+@andrew.cmu.edu (Richard Siegel) (02/28/88)

I've used FlushVol on open files to keep the information current. I don't
know if it actually works, though.

One call that is guaranteed to work is PBFlushFile(). The parameter block
you set up has the access path number (the third argument to FSOpen()) stored
in the ioRefNum field; be sure to clear IOCompletion.

It's described on Inside Mac Volumne II, page 114.

	Rich

===================================================================
Richard Siegel
THINK Technologies, QA Technician (on leave)

I'm not physically at THINK, so my information may be out
of date. Be forewarned.

Arpa: rich.siegel@andrew.cmu.edu
UUCP: {decvax,ucbvax,sun}!andrew.cmu.edu!rich.siegel
==================================================================