From 0f57c902450b1d4f7a676dc693689debca002e98 Mon Sep 17 00:00:00 2001 From: Vivek Goyal Date: Thu, 6 Nov 2014 15:59:25 -0500 Subject: [PATCH] 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 --- daemon/graphdriver/devmapper/deviceset.go | 30 +++++++++++------------ 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/daemon/graphdriver/devmapper/deviceset.go b/daemon/graphdriver/devmapper/deviceset.go index e661dbb7ad..59c5ec82e7 100644 --- a/daemon/graphdriver/devmapper/deviceset.go +++ b/daemon/graphdriver/devmapper/deviceset.go @@ -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 {