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 » VerifyDrive

NAME

    VerifyDrive

SYNOPSIS

    error = VerifyDrive (  CallBack )
D0 A0
ULONG VerifyDrive ( long ( *CallBack)( HDWCallbackMsg *msg ))

FUNCTION

   	Verify blocks on currently opened device and give the user the opportunity
to reassign bad blocks via the SCSI Reassign command.

INPUTS

   	CallBack	A function to accept a HDWCallbackMsg and interact with the
user.

RESULT

	error    per rw_success_val in hdwrench.h
If CallBack is NULL it returns the value no_callback_hook.
If no device is open it returns the value io_device_not_open.
Inform the user that this is a safe operation, it will take a long time,
and he will be able to abort the operation.
If the user selects abort return user_aborted
else verify the drive 65535 blocks at a time until completed.
If a bad block is found give the user an opportunity to reassign the
bad block.
If the user elects to reassign the block attempt the reassign.
Inform the user of any serious errors. Abort operations if the
user elects abort or if a serious enough error occurs. (That is to
say one from which any continuation of the verify is undefined.)

BUGS

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

CSL
TBL
RZR
TRSI

Comments:

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