项目作者: emilienthomas

项目描述 :
Command line tool to test xva files for corruption.
高级语言: Go
项目地址: git://github.com/emilienthomas/xva-validate.git
创建时间: 2019-02-22T16:35:08Z
项目社区:https://github.com/emilienthomas/xva-validate

开源协议:Apache License 2.0

下载


xva-validate

Build Status Release

This is a command-line tool that performs verifications on a xva file to control integrity.
You can also use the Validate function inside of your own Go application or tool.

How to build from sources

Prerequisites

Build

  1. go build

Usage

All configurations are defined by command line arguments.
These arguments is printed by the flag -h

  1. $ ./xva-validate -h
  2. Usage of xva-validate:
  3. -verbose uint
  4. Verbosity level
  5. -version
  6. Print version and exit
  7. -xva string
  8. xva file (default "backup.xva")

By default, nothing is printed unless the xva file is invalid. If you want more details, you can change the value of the
-v parameter:

  • 0 (default): only prints “xva file is invalid” and encountered error
  • 1: also prints “xva file is valid”
  • 2: prints all verifications.
  1. $ ./xva-validate --xva exportedvm.xva
  2. 2019-02-22 18:10:14 read exportedvm.xva: Invalid descriptor

Exit status

  • 0: xva file is valid
  • 1: xva file is invalid
  • 2: an error as occurred during validation.

Deployment

Just copy the binary !