Merge pull request #527 from bart0sh/PR0095-language-cleanup

language cleanup
This commit is contained in:
Mikko Ylinen 2020-12-15 19:57:23 +02:00 committed by GitHub
commit b737fc9520
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 13 additions and 12 deletions

View File

@ -131,6 +131,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -131,6 +131,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -130,6 +130,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -121,6 +121,6 @@
"type": "mount"
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -121,6 +121,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -110,6 +110,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -130,6 +130,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -131,6 +131,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -132,6 +132,6 @@
"gid": 0
}
],
"rootfsPropagation": "rslave"
"rootfsPropagation": "shared"
}
}

View File

@ -127,7 +127,8 @@ func getTopologyHint(sysFSPath string) (*Hint, error) {
return &hint, nil
}
// NewTopologyHints return array of hints for the device and its slaves (e.g. RAID).
// NewTopologyHints return array of hints for the main device and its
// dependend devices (e.g. RAID).
func NewTopologyHints(devPath string) (hints Hints, err error) {
hints = make(Hints)
realDevPath, err := filepath.EvalSymlinks(devPath)
@ -145,8 +146,8 @@ func NewTopologyHints(devPath string) (hints Hints, err error) {
}
}
fromVirtual, _ := getDevicesFromVirtual(realDevPath)
slaves, _ := filepath.Glob(filepath.Join(realDevPath, "slaves/*"))
for _, device := range append(slaves, fromVirtual...) {
deps, _ := filepath.Glob(filepath.Join(realDevPath, "slaves/*"))
for _, device := range append(deps, fromVirtual...) {
deviceHints, er := NewTopologyHints(device)
if er != nil {
return nil, er