@@ -815,7 +815,7 @@ func (d *Driver) Status() [][2]string {
815815// Metadata returns meta data about the overlay driver such as
816816// LowerDir, UpperDir, WorkDir and MergeDir used to store data.
817817func (d * Driver ) Metadata (id string ) (map [string ]string , error ) {
818- dir , _ , inAdditionalStore := d .dir2 (id , false )
818+ dir , inAdditionalStore := d .dir2 (id , false )
819819 if err := fileutils .Exists (dir ); err != nil {
820820 return nil , err
821821 }
@@ -1021,7 +1021,7 @@ func (d *Driver) getLayerPermissions(parent string, uidMaps, gidMaps []idtools.I
10211021}
10221022
10231023func (d * Driver ) create (id , parent string , opts * graphdriver.CreateOpts , readOnly bool ) (retErr error ) {
1024- dir , _ , _ := d .dir2 (id , readOnly )
1024+ dir , _ := d .dir2 (id , readOnly )
10251025
10261026 disableQuota := readOnly
10271027
@@ -1166,7 +1166,7 @@ func (d *Driver) getLower(parent string) (string, error) {
11661166}
11671167
11681168func (d * Driver ) dir (id string ) string {
1169- p , _ , _ := d .dir2 (id , false )
1169+ p , _ := d .dir2 (id , false )
11701170 return p
11711171}
11721172
@@ -1188,7 +1188,7 @@ func (d *Driver) homeDirForImageStore() string {
11881188 return d .home
11891189}
11901190
1191- func (d * Driver ) dir2 (id string , useImageStore bool ) (string , string , bool ) {
1191+ func (d * Driver ) dir2 (id string , useImageStore bool ) (string , bool ) {
11921192 homedir := d .home
11931193 if useImageStore {
11941194 homedir = d .homeDirForImageStore ()
@@ -1202,11 +1202,11 @@ func (d *Driver) dir2(id string, useImageStore bool) (string, string, bool) {
12021202 l := path .Join (p , d .name , layerID )
12031203 err = fileutils .Exists (l )
12041204 if err == nil {
1205- return filepath .Join (l , suffix ), homedir , true
1205+ return filepath .Join (l , suffix ), true
12061206 }
12071207 }
12081208 }
1209- return filepath .Join (newpath , suffix ), homedir , false
1209+ return filepath .Join (newpath , suffix ), false
12101210}
12111211
12121212func (d * Driver ) getLowerDirs (id string ) ([]string , error ) {
@@ -1340,7 +1340,7 @@ func (d *Driver) Get(id string, options graphdriver.MountOpts) (string, error) {
13401340}
13411341
13421342func (d * Driver ) get (id string , disableShifting bool , options graphdriver.MountOpts ) (_ string , retErr error ) {
1343- dir , _ , inAdditionalStore := d .dir2 (id , false )
1343+ dir , inAdditionalStore := d .dir2 (id , false )
13441344 if err := fileutils .Exists (dir ); err != nil {
13451345 return "" , err
13461346 }
@@ -1792,7 +1792,7 @@ func (d *Driver) getMergedDir(id, dir string, inAdditionalStore bool) string {
17921792
17931793// Put unmounts the mount path created for the give id.
17941794func (d * Driver ) Put (id string ) error {
1795- dir , _ , inAdditionalStore := d .dir2 (id , false )
1795+ dir , inAdditionalStore := d .dir2 (id , false )
17961796 if err := fileutils .Exists (dir ); err != nil {
17971797 return err
17981798 }
@@ -2710,7 +2710,7 @@ func getMappedMountRoot(path string) string {
27102710func (d * Driver ) Dedup (req graphdriver.DedupArgs ) (graphdriver.DedupResult , error ) {
27112711 var dirs []string
27122712 for _ , layer := range req .Layers {
2713- dir , _ , inAdditionalStore := d .dir2 (layer , false )
2713+ dir , inAdditionalStore := d .dir2 (layer , false )
27142714 if inAdditionalStore {
27152715 continue
27162716 }
0 commit comments