docker-remove-redundant-json-tags

In previous patch I had introduce json:"-" tags to be on safer side to make
sure certain fields are not marshalled/unmarshalled. But struct fields
starting with small letter are not exported so they will not be marshalled
anyway. So remove json:"-" tags from there.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
Vivek Goyal 2014-11-06 15:59:25 -05:00
parent ff56531de4
commit 0f57c90245

View file

@ -64,23 +64,23 @@ type MetaData struct {
type DeviceSet struct {
MetaData `json:"-"`
sync.Mutex `json:"-"` // Protects Devices map and serializes calls into libdevmapper
root string `json:"-"`
devicePrefix string `json:"-"`
TransactionId uint64 `json:"-"`
NewTransactionId uint64 `json:"-"`
NextDeviceId int `json:"next_device_id"`
root string
devicePrefix string
TransactionId uint64 `json:"-"`
NewTransactionId uint64 `json:"-"`
NextDeviceId int `json:"next_device_id"`
// Options
dataLoopbackSize int64 `json:"-"`
metaDataLoopbackSize int64 `json:"-"`
baseFsSize uint64 `json:"-"`
filesystem string `json:"-"`
mountOptions string `json:"-"`
mkfsArgs []string `json:"-"`
dataDevice string `json:"-"`
metadataDevice string `json:"-"`
doBlkDiscard bool `json:"-"`
thinpBlockSize uint32 `json:"-"`
dataLoopbackSize int64
metaDataLoopbackSize int64
baseFsSize uint64
filesystem string
mountOptions string
mkfsArgs []string
dataDevice string
metadataDevice string
doBlkDiscard bool
thinpBlockSize uint32
}
type DiskUsage struct {