Selaa lähdekoodia

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>
Vivek Goyal 10 vuotta sitten
vanhempi
commit
0f57c90245
1 muutettua tiedostoa jossa 15 lisäystä ja 15 poistoa
  1. 15 15
      daemon/graphdriver/devmapper/deviceset.go

+ 15 - 15
daemon/graphdriver/devmapper/deviceset.go

@@ -64,23 +64,23 @@ type MetaData struct {
 type DeviceSet struct {
 type DeviceSet struct {
 	MetaData         `json:"-"`
 	MetaData         `json:"-"`
 	sync.Mutex       `json:"-"` // Protects Devices map and serializes calls into libdevmapper
 	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
 	// 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 {
 type DiskUsage struct {