@@ -816,7 +816,7 @@ func (d *Driver) Status() [][2]string {
816816// Metadata returns meta data about the overlay driver such as
817817// LowerDir, UpperDir, WorkDir and MergeDir used to store data.
818818func (d * Driver ) Metadata (id string ) (map [string ]string , error ) {
819- dir , _ , inAdditionalStore := d .dir2 (id , false )
819+ dir , inAdditionalStore := d .dir2 (id , false )
820820 if err := fileutils .Exists (dir ); err != nil {
821821 return nil , err
822822 }
@@ -1022,7 +1022,7 @@ func (d *Driver) getLayerPermissions(parent string, uidMaps, gidMaps []idtools.I
10221022}
10231023
10241024func (d * Driver ) create (id , parent string , opts * graphdriver.CreateOpts , readOnly bool ) (retErr error ) {
1025- dir , _ , _ := d .dir2 (id , readOnly )
1025+ dir , _ := d .dir2 (id , readOnly )
10261026
10271027 disableQuota := readOnly
10281028
@@ -1167,7 +1167,7 @@ func (d *Driver) getLower(parent string) (string, error) {
11671167}
11681168
11691169func (d * Driver ) dir (id string ) string {
1170- p , _ , _ := d .dir2 (id , false )
1170+ p , _ := d .dir2 (id , false )
11711171 return p
11721172}
11731173
@@ -1189,7 +1189,7 @@ func (d *Driver) homeDirForImageStore() string {
11891189 return d .home
11901190}
11911191
1192- func (d * Driver ) dir2 (id string , useImageStore bool ) (string , string , bool ) {
1192+ func (d * Driver ) dir2 (id string , useImageStore bool ) (string , bool ) {
11931193 homedir := d .home
11941194 if useImageStore {
11951195 homedir = d .homeDirForImageStore ()
@@ -1203,11 +1203,11 @@ func (d *Driver) dir2(id string, useImageStore bool) (string, string, bool) {
12031203 l := path .Join (p , d .name , layerID )
12041204 err = fileutils .Exists (l )
12051205 if err == nil {
1206- return filepath .Join (l , suffix ), homedir , true
1206+ return filepath .Join (l , suffix ), true
12071207 }
12081208 }
12091209 }
1210- return filepath .Join (newpath , suffix ), homedir , false
1210+ return filepath .Join (newpath , suffix ), false
12111211}
12121212
12131213func (d * Driver ) getLowerDirs (id string ) ([]string , error ) {
@@ -1341,7 +1341,7 @@ func (d *Driver) Get(id string, options graphdriver.MountOpts) (string, error) {
13411341}
13421342
13431343func (d * Driver ) get (id string , disableShifting bool , options graphdriver.MountOpts ) (_ string , retErr error ) {
1344- dir , _ , inAdditionalStore := d .dir2 (id , false )
1344+ dir , inAdditionalStore := d .dir2 (id , false )
13451345 if err := fileutils .Exists (dir ); err != nil {
13461346 return "" , err
13471347 }
@@ -1793,7 +1793,7 @@ func (d *Driver) getMergedDir(id, dir string, inAdditionalStore bool) string {
17931793
17941794// Put unmounts the mount path created for the give id.
17951795func (d * Driver ) Put (id string ) error {
1796- dir , _ , inAdditionalStore := d .dir2 (id , false )
1796+ dir , inAdditionalStore := d .dir2 (id , false )
17971797 if err := fileutils .Exists (dir ); err != nil {
17981798 return err
17991799 }
@@ -2711,7 +2711,7 @@ func getMappedMountRoot(path string) string {
27112711func (d * Driver ) Dedup (req graphdriver.DedupArgs ) (graphdriver.DedupResult , error ) {
27122712 var dirs []string
27132713 for _ , layer := range req .Layers {
2714- dir , _ , inAdditionalStore := d .dir2 (layer , false )
2714+ dir , inAdditionalStore := d .dir2 (layer , false )
27152715 if inAdditionalStore {
27162716 continue
27172717 }
0 commit comments