Skip to content

Instantly share code, notes, and snippets.

@poornas
Created March 22, 2018 19:15
Show Gist options
  • Save poornas/a1d115d85aa060977384633c05345866 to your computer and use it in GitHub Desktop.
Save poornas/a1d115d85aa060977384633c05345866 to your computer and use it in GitHub Desktop.

fs.json format changes

  • remove redundant fields minio and format which are currently used only for verification, and update fs.json version
  • In the future, checksum info will be used by caching for storing bit-rot checksum. Since the version is being updated for fs.json checksum info fields are being piggy-backed as as placeholder.

Existing format

{
  "version": "1.0.1",
  "format": "fs",
  "minio": {
    "release": "DEVELOPMENT.GOGET"
  },
  "meta": {
    "content-type": "application/octet-stream",
    "etag": "57c743902b2fc8eea6ba3bb4fc58c8e8"
  }
}

New Format

{
  "version": "1.0.2",
  "checksum": {
    "algorithm": "",
    "blocksize": 0,
    "hash": [],
  },
  "meta": {
    "content-type": "application/octet-stream",
    "etag": "57c743902b2fc8eea6ba3bb4fc58c8e8"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment