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
- Rougol April 2024 meeting on monday is Anniversary time (News:1)
- WROCC April 2024 meeting o...changes to our phone lines (News:1)
- April developer 'fireside' chat is on saturday night (News:)
- March 2024 News Summary (News:4)
- WROCC Newsletter Volume 41:11 reviewed (News:)
- WROCC March 2024 meeting o... Hughes and Peter Richmond (News:1)
- Rougol March 2024 meeting on monday with Bernard Boase (News:)
- Drag'n'Drop 13i2 edition reviewed (News:)
- South-West Show 2024 talks (News:4)
- February 2024 News Summary (News:1)
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
The Icon Bar: Programming: Flushing writes to disk
 
  Flushing writes to disk
  sirbod (20:43 19/4/2012)
  jeff-doggett (07:51 20/4/2012)
    sirbod (08:35 20/4/2012)
      sirbod (17:07 21/4/2012)
 
Jon Abbott Message #120150, posted by sirbod at 20: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 07: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 08: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 17: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 ]
 

The Icon Bar: Programming: Flushing writes to disk