bareos: bareos-17.2 d93391df

Author Committer Branch Timestamp Parent
frank frank bareos-17.2 2017-11-08 12:05 bareos-17.2 3e14aa3b Pending
Changeset BVFS API: Adjusts the output format of .bvfs_versions

Lets the .bvfs_versions command deliver JSON output in the format analog to
.bvfs_lsdirs and .bvfs_lsfiles.

{
  "jsonrpc": "2.0",
  "id": null,
  "result": {
    "versions": [
      {
        "type": "V",
        "pathid": 30,
        "fileid": 24,
        "jobid": 3,
        "md5": "kX1Iyd92ko+Eql7lVGzLtA",
        "lstat": "P0B FCBe IGk B Pb PV A HQQ BAA BA BZ8x+i BZ8x+i BZ8x+i A A C",
        "volumename": "Full-0001",
        "volumeinchanger": 0,
        "stat": {
          "dev": 64769,
          "ino": 1319006,
          "mode": 33188,
          "nlink": 1,
          "user": "bareos",
          "group": "bareos",
          "rdev": 0,
          "size": 29712,
          "atime": 1509105570,
          "mtime": 1509105570,
          "ctime": 1509105570
        }
      }
    ]
  }
}
mod - src/dird/ua_dotcmds.c Diff File