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.

336 B
Raw Blame
//go:build windows

package storage

import (
	"errors"
	"syscall"
)

const (
	errERROR_CRC       = syscall.Errno(23)
	errERROR_IO_DEVICE = syscall.Errno(1117)
)

func isWindowsStorageIoError(err error) bool {
	if errors.Is(err, errERROR_CRC) {
		return true
	}
	if errors.Is(err, errERROR_IO_DEVICE) {
		return true
	}
	return false
}