minio/docs/backend/fs
Harshavardhana 155a90403a fs/erasure: Rename meta 'md5Sum' as 'etag'. (#4319)
This PR also does backend format change to 1.0.1
from 1.0.0.  Backward compatible changes are still
kept to read the 'md5Sum' key. But all new objects
will be stored with the same details under 'etag'.

Fixes #4312
2017-05-14 12:05:51 -07:00
..
format.json XL: Rename, cleanup and add more comments. (#1769) 2016-05-28 15:15:53 -07:00
fs.json fs/erasure: Rename meta 'md5Sum' as 'etag'. (#4319) 2017-05-14 12:05:51 -07:00
README.md Remove white spaces (#3922) 2017-03-17 09:23:22 -07:00
uploads.json XL: Rename, cleanup and add more comments. (#1769) 2016-05-28 15:15:53 -07:00

Backend format fs.json

// objectPartInfo Info of each part kept in the multipart metadata
// file after CompleteMultipartUpload() is called.
type objectPartInfo struct {
	Number int    `json:"number"`
	Name   string `json:"name"`
	ETag   string `json:"etag"`
	Size   int64  `json:"size"`
}

// A fsMetaV1 represents a metadata header mapping keys to sets of values.
type fsMetaV1 struct {
	Version string `json:"version"`
	Format  string `json:"format"`
	Minio   struct {
		Release string `json:"release"`
	} `json:"minio"`
	// Metadata map for current object `fs.json`.
	Meta  map[string]string `json:"meta,omitempty"`
	Parts []objectPartInfo  `json:"parts,omitempty"`
}