Files
dbbackup/internal/restore/diskspace_netbsd.go
A. Renz 914307ac8f ci: add golangci-lint config and fix formatting
- Add .golangci.yml with minimal linters (govet, ineffassign)
- Run gofmt -s and goimports on all files to fix formatting
- Disable fieldalignment and copylocks checks in govet
2025-12-11 17:53:28 +01:00

13 lines
418 B
Go
Executable File

//go:build netbsd
// +build netbsd
package restore
// getDiskSpace returns available disk space in bytes (NetBSD fallback)
// NetBSD has different syscall interface, so we use a conservative estimate
func getDiskSpace(path string) (int64, error) {
// Return a large value to skip disk space check on NetBSD
// This is a fallback - restore will still work, just won't pre-check space
return 1 << 40, nil // 1 TB
}