Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Version 0.0.0.3

Latest
Compare
Choose a tag to compare
@davidferguson davidferguson released this 28 May 17:53
· 2 commits to master since this release

Change the program so that instead of printing out error messages using printf, error codes are returned instead.

This makes it easier for CommandLineDiskImager to be integrated with other programs/scripts as the error codes can be easily compared.

The error codes are as follows:

  • 0 - write successful
  • 1 - not enough arguments passed
  • 2 - .img file not found
  • 3 - device to write to not found
  • 4 - invalid handle value for volume
  • 5 - can't get lock on volume
  • 6 - can't unmount volume
  • 7 - invalid handle value for file
  • 8 - invalid handle value for disk
  • 9 - not enough space on volume
  • 10 - sector data is null
  • 11 - error whilst writing
  • 12 - can't get number of sectors