Change distributed server wording.

This commit is contained in:
Harshavardhana
2016-09-09 15:32:08 -07:00
parent eae0281c64
commit 43befab8ef
4 changed files with 29 additions and 6 deletions
+9
View File
@@ -16,6 +16,8 @@
package cmd
import "github.com/minio/minio/pkg/disk"
// naughtyDisk wraps a POSIX disk and returns programmed errors
// specified by the developer. The purpose is to simulate errors
// that are hard to simulate in practise like DiskNotFound.
@@ -46,6 +48,13 @@ func (d *naughtyDisk) calcError() (err error) {
return nil
}
func (d *naughtyDisk) DiskInfo() (info disk.Info, err error) {
if err := d.calcError(); err != nil {
return info, err
}
return d.disk.DiskInfo()
}
func (d *naughtyDisk) MakeVol(volume string) (err error) {
if err := d.calcError(); err != nil {
return err