log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- RISC OS London Show Report 2024 (News:1)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Flushing writes to disk
 
  Flushing writes to disk
  sirbod (19:43 19/4/2012)
  jeff-doggett (06:51 20/4/2012)
    sirbod (07:35 20/4/2012)
      sirbod (16:07 21/4/2012)
 
Jon Abbott Message #120150, posted by sirbod at 19:43, 19/4/2012
Member
Posts: 563
Is there a clean way to flush writes to disk?

OS_Args 255 seems to write crap after the final write, up to a 256 byte boundary. I guess that's an undocumented feature!
  ^[ Log in to reply ]
 
Jeff Doggett Message #120157, posted by jeff-doggett at 06:51, 20/4/2012, in reply to message #120150
Member
Posts: 21
I think that it IS documented somewhere in the filing system docs. It actually always writes to the next block size, which on anything other than floppy media is 512 bytes.
  ^[ Log in to reply ]
 
Jon Abbott Message #120158, posted by sirbod at 07:35, 20/4/2012, in reply to message #120157
Member
Posts: 563
I found a vague reference to it in one of the PRM's - which is where the 256 bytes came from. Guess that's incorrect. The OS_Args 255 documentation doesn't mention it though.

Looks like I need to write my own disk flush code then.
  ^[ Log in to reply ]
 
Jon Abbott Message #120176, posted by sirbod at 16:07, 21/4/2012, in reply to message #120158
Member
Posts: 563
Interestingly you don't get rubbish at the end when flushing to the RAM drive.
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Flushing writes to disk