a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 hdwrench.library
  FindControllerID
  FindDefaults
  FindDiskName
  FindLastSector
  HDWCloseDevice
  HDWOpenDevice
  InMemMountfile
  InMemRDBStructs
  LowlevelFormat
  OutMemMountfile
  OutMemRDBStructs
  QueryCapacity
  QueryFindValid
  QueryInquiry
  QueryModeSense
  QueryReady
  RawRead
  RawWrite
  ReadMountfile
  ReadRDBStructs
  ReadRDBs
  VerifyDrive
  WriteBlock
  WriteMountfile
  WriteRDBStructs
  WriteRDBs
  ZZexample
  description
Include
GuruMeditation
Docs » Autodocs » hdwrench.library » WriteBlock

NAME

    WriteBlock

SYNOPSIS

    error = WriteBlock( bb )
D0 A0
USHORT WriteBlock( BootBlock *bb );

FUNCTION

    Write a block to disk after filling in its RDB correct checksum and a
reread for write verification. This function also performs a read to
block 1000 before the reread with the hope that this will tend to flush
drive buffers before the reread test.

INPUTS

    bb      Pointer to a BootBlock structure containing all data necessary
for performing the write including the bb_BlockNum field.

RESULT

    error           The same value as returned in bb->bb_RWErrors.success.
bb->bb_RWerrors will have all fields filled in with the failed_word filled
with the number of the first byte that fails on the reread compare.

BUGS

SEE ALSO

hdwrench.library/RawRead(), hdwrench.library/RawWrite()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Crystal

FC
SPB
CSL
DC

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se