1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix vet errors in aufs.go about Lock by value

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2014-12-12 10:46:09 -08:00
parent e7d086c2be
commit 2540765ddc

View file

@ -134,15 +134,15 @@ func supportsAufs() error {
return ErrAufsNotSupported return ErrAufsNotSupported
} }
func (a Driver) rootPath() string { func (a *Driver) rootPath() string {
return a.root return a.root
} }
func (Driver) String() string { func (*Driver) String() string {
return "aufs" return "aufs"
} }
func (a Driver) Status() [][2]string { func (a *Driver) Status() [][2]string {
ids, _ := loadIds(path.Join(a.rootPath(), "layers")) ids, _ := loadIds(path.Join(a.rootPath(), "layers"))
return [][2]string{ return [][2]string{
{"Root Dir", a.rootPath()}, {"Root Dir", a.rootPath()},
@ -152,7 +152,7 @@ func (a Driver) Status() [][2]string {
// Exists returns true if the given id is registered with // Exists returns true if the given id is registered with
// this driver // this driver
func (a Driver) Exists(id string) bool { func (a *Driver) Exists(id string) bool {
if _, err := os.Lstat(path.Join(a.rootPath(), "layers", id)); err != nil { if _, err := os.Lstat(path.Join(a.rootPath(), "layers", id)); err != nil {
return false return false
} }