avoid unnecessary logging on fresh/newly replaced drives (#9470)

data usage tracker and crawler seem to be logging
non-actionable information on console, which is not
useful and is fixed on its own in almost all deployments,
lets keep this logging to minimal.
This commit is contained in:
Harshavardhana
2020-04-28 01:16:57 -07:00
committed by GitHub
parent bc61417284
commit 498389123e
4 changed files with 25 additions and 12 deletions
+2 -2
View File
@@ -485,8 +485,8 @@ func (s *posix) SetDiskID(id string) {
func (s *posix) MakeVolBulk(volumes ...string) (err error) {
for _, volume := range volumes {
if err = s.MakeVol(volume); err != nil {
if err != errVolumeExists {
return err
if os.IsPermission(err) {
return errVolumeAccessDenied
}
}
}