2016-04-08 19:37:38 +02:00
|
|
|
/*
|
|
|
|
* Minio Cloud Storage, (C) 2015, 2016 Minio, Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2016-04-19 11:42:10 +02:00
|
|
|
// errDiskFull - cannot create volume or files when disk is full.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errDiskFull = errors.New("disk path full")
|
2016-04-08 19:37:38 +02:00
|
|
|
|
2016-05-10 03:57:39 +02:00
|
|
|
// errDiskNotFount - cannot find the underlying configured disk anymore.
|
|
|
|
var errDiskNotFound = errors.New("disk not found")
|
|
|
|
|
2016-04-08 19:37:38 +02:00
|
|
|
// errFileNotFound - cannot find the file.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errFileNotFound = errors.New("file not found")
|
2016-04-08 19:37:38 +02:00
|
|
|
|
2016-05-11 21:55:02 +02:00
|
|
|
// errFileNameTooLong - given file name is too long than supported length.
|
|
|
|
var errFileNameTooLong = errors.New("file name too long")
|
|
|
|
|
2016-04-08 19:37:38 +02:00
|
|
|
// errVolumeExists - cannot create same volume again.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errVolumeExists = errors.New("volume already exists")
|
2016-04-08 19:37:38 +02:00
|
|
|
|
2016-04-24 09:36:00 +02:00
|
|
|
// errIsNotRegular - not of regular file type.
|
|
|
|
var errIsNotRegular = errors.New("not of regular file type")
|
2016-04-08 19:37:38 +02:00
|
|
|
|
|
|
|
// errVolumeNotFound - cannot find the volume.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errVolumeNotFound = errors.New("volume not found")
|
2016-04-13 20:32:47 +02:00
|
|
|
|
2016-04-16 21:48:41 +02:00
|
|
|
// errVolumeNotEmpty - volume not empty.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errVolumeNotEmpty = errors.New("volume is not empty")
|
2016-04-16 21:48:41 +02:00
|
|
|
|
2016-04-13 20:32:47 +02:00
|
|
|
// errVolumeAccessDenied - cannot access volume, insufficient
|
|
|
|
// permissions.
|
2016-04-24 09:36:00 +02:00
|
|
|
var errVolumeAccessDenied = errors.New("volume access denied")
|
2016-04-13 20:32:47 +02:00
|
|
|
|
2016-04-24 09:36:00 +02:00
|
|
|
// errVolumeAccessDenied - cannot access file, insufficient permissions.
|
|
|
|
var errFileAccessDenied = errors.New("file access denied")
|
2016-04-19 21:30:10 +02:00
|
|
|
|
|
|
|
// errReadQuorum - did not meet read quorum.
|
2016-04-21 02:23:23 +02:00
|
|
|
var errReadQuorum = errors.New("I/O error. did not meet read quorum.")
|
|
|
|
|
|
|
|
// errWriteQuorum - did not meet write quorum.
|
|
|
|
var errWriteQuorum = errors.New("I/O error. did not meet write quorum.")
|
2016-04-25 08:12:54 +02:00
|
|
|
|
|
|
|
// errDataCorrupt - err data corrupt.
|
|
|
|
var errDataCorrupt = errors.New("data likely corrupted, all blocks are zero in length")
|