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
}
}
]
}