当前位置:   article > 正文

minio多版本_minio版本

minio版本

minio的多版本是怎么实现的

1、界面上传3次1M文件,可以显示3个版本的

在这里插入图片描述
2、在文件名1M目录下会有3个uuid为名的目录
在这里插入图片描述
3、其中的xl.meta文件可以使用xl-meta工具解析,这里会记录详细的版本信息

{
  "Versions": [
    {
      "Header": {
        "Flags": 2,
        "ModTime": "2024-03-01T11:03:36.547915333+08:00",
        "Signature": "ca212968",
        "Type": 1,
        "VersionID": "692366c021fa42719bcbe5e11a014dc7"
      },
      "Idx": 0,
      "Metadata": {
        "Type": 1,
        "V2Obj": {
          "CSumAlgo": 1,
          "DDir": "6UdcaondRk2c6/VRU7TcVw==",
          "EcAlgo": 1,
          "EcBSize": 1048576,
          "EcDist": [
            4,
            1,
            2,
            3
          ],
          "EcIndex": 4,
          "EcM": 2,
          "EcN": 2,
          "ID": "aSNmwCH6QnGby+XhGgFNxw==",
          "MTime": 1709262216547915333,
          "MetaSys": {},
          "MetaUsr": {
            "content-type": "application/octet-stream",
            "etag": "b6d81b360a5672d80c27430f39153e2c"
          },
          "PartASizes": [
            1048576
          ],
          "PartETags": null,
          "PartNums": [
            1
          ],
          "PartSizes": [
            1048576
          ],
          "Size": 1048576
        },
        "v": 0
      }
    },
    {
      "Header": {
        "Flags": 2,
        "ModTime": "2024-03-01T10:27:05.174696003+08:00",
        "Signature": "d2ee3cd0",
        "Type": 1,
        "VersionID": "d1e0ff5263a641749a2ca3d34caa13fa"
      },
      "Idx": 1,
      "Metadata": {
        "Type": 1,
        "V2Obj": {
          "CSumAlgo": 1,
          "DDir": "potrhWjRSFKRDbQJU/gVoQ==",
          "EcAlgo": 1,
          "EcBSize": 1048576,
          "EcDist": [
            4,
            1,
            2,
            3
          ],
          "EcIndex": 4,
          "EcM": 2,
          "EcN": 2,
          "ID": "0eD/UmOmQXSaLKPTTKoT+g==",
          "MTime": 1709260025174696003,
          "MetaSys": {},
          "MetaUsr": {
            "content-type": "application/octet-stream",
            "etag": "b6d81b360a5672d80c27430f39153e2c"
          },
          "PartASizes": [
            1048576
          ],
          "PartETags": null,
          "PartNums": [
            1
          ],
          "PartSizes": [
            1048576
          ],
          "Size": 1048576
        },
        "v": 0
      }
    },
    {
      "Header": {
        "Flags": 2,
        "ModTime": "2024-03-01T10:26:54.412385108+08:00",
        "Signature": "c51fac32",
        "Type": 1,
        "VersionID": "4cb4a2cd3cee4569bc7363e7bfc3ce50"
      },
      "Idx": 2,
      "Metadata": {
        "Type": 1,
        "V2Obj": {
          "CSumAlgo": 1,
          "DDir": "lqs4RiwkQBiG9w5PVk/5ow==",
          "EcAlgo": 1,
          "EcBSize": 1048576,
          "EcDist": [
            4,
            1,
            2,
            3
          ],
          "EcIndex": 4,
          "EcM": 2,
          "EcN": 2,
          "ID": "TLSizTzuRWm8c2Pnv8POUA==",
          "MTime": 1709260014412385108,
          "MetaSys": {},
          "MetaUsr": {
            "content-type": "application/octet-stream",
            "etag": "b6d81b360a5672d80c27430f39153e2c"
          },
          "PartASizes": [
            1048576
          ],
          "PartETags": null,
          "PartNums": [
            1
          ],
          "PartSizes": [
            1048576
          ],
          "Size": 1048576
        },
        "v": 0
      }
    }
  ]
}

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小蓝xlanll/article/detail/577373
推荐阅读
相关标签
  

闽ICP备14008679号