Add 'disk' tag to log output to enhance 'disk not found' errors (#6460)

This commit is contained in:
Harshavardhana
2018-09-13 21:42:50 -07:00
committed by kannappanr
parent 14fa0097b0
commit a63bc9254d
6 changed files with 15 additions and 3 deletions

View File

@@ -28,6 +28,10 @@ import (
type badDisk struct{ StorageAPI }
func (a badDisk) String() string {
return "bad-disk"
}
func (a badDisk) AppendFile(volume string, path string, buf []byte) error {
return errFaultyDisk
}