Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

1.1 KB
Raw Blame
package constants

// Filer error messages — shared between filer (producing) and S3 API (matching).
// These cross a gRPC boundary as strings in CreateEntryResponse.Error, so typed
// errors cannot be used. Keeping the strings in one place prevents mismatches.
const (
	ErrMsgOperationNotPermitted = "operation not permitted"
	ErrMsgBadDigest             = "The Content-Md5 you specified did not match what we received."
	ErrMsgEntryNameTooLong      = "entry name too long"
	// Unsupported write-mode combinations; deterministic client errors.
	ErrMsgAppendSaveInsideChunked = "append saved inside the entry to a chunked file is not supported"
	ErrMsgAppendInlineMode        = "append to inline content with this storage mode is not supported"
	ErrMsgOffsetWriteInline       = "offset write to inline small file is not supported yet"
	// Suffix appended to a path, e.g. "/buckets/b/foo/bar is a file"
	ErrMsgIsAFile = " is a file"
	// Prefix + suffix, e.g. "existing /buckets/b/foo is a directory"
	ErrMsgExistingPrefix = "existing "
	ErrMsgIsADirectory   = " is a directory"
)