forked from TrueCloudLab/frostfs-node
b89e71fa78
Add a common error for this case because it is not an error which should increase error counter. Single error simplifies checks on the call-site. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
10 lines
323 B
Go
10 lines
323 B
Go
package common
|
|
|
|
import "errors"
|
|
|
|
// ErrReadOnly MUST be returned for modifying operations when the storage was opened
|
|
// in readonly mode.
|
|
var ErrReadOnly = errors.New("opened as read-only")
|
|
|
|
// ErrNoSpace MUST be returned when there is no space to put an object on the device.
|
|
var ErrNoSpace = errors.New("no free space")
|