home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!stanford.edu!apple!goofy!mumbo.apple.com!gallant.apple.com!city-lights.apple.com!user
- From: mattd@apple.com (Matt Deatherage)
- Newsgroups: comp.sys.apple2
- Subject: Re: RamFAST & GS/OS cache
- Message-ID: <mattd-111292184623@city-lights.apple.com>
- Date: 12 Dec 92 02:48:32 GMT
- References: <mattd-011292180158@city-lights.apple.com> <75118@apple.apple.COM> <1fneioINNpgi@gap.caltech.edu> <75464@apple.apple.COM>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.apple2
- Organization: Developer Support Center, Apple Computer, Inc.
- Lines: 28
-
- In article <75464@apple.apple.COM>, dlyons@Apple.COM (David A Lyons) wrote:
- >
- >
- > No need to get started on that, it *is* easy. It's also as-designed. We
- > don't recommend doing DWrites to a volume that has open files.
-
- True. We've been telling folks for years (like you don't know this, but
- the readers might not) to either:
-
- 1) Make sure a volume has no open files before using DWrite, or
- 2) Just use READ_BLOCK if you're going to manipulate ProDOS-specific
- structures.
-
- #2 is easier -- READ_BLOCK goes through the ProDOS FST and won't let you
- write to a non-ProDOS disk, and since it goes through the FST it won't
- work if files are open on the disk.
-
- #1 is now easier than it was -- there was a bit added to the
- characteristics
- word from DInfo in 6.0 that's set if there are any open files on the
- volume. Beats a loop on GetRefInfo between $0001 and $FFFF.
-
- ============================================================================
- Matt Deatherage, Developer Support Center, Apple Computer, Inc.
- Personal mail only -- please POST technical questions, questions about
- Apple and its policies, where to find documents and related inquiries.
- The opinions I express don't represent Apple, which makes us both happy.
- ============================================================================
-