func (fs *Filesystem) SetDiskLimit(i int64) {
	atomic.SwapInt64(&fs.diskLimit, i)
}
Sets the disk space limit for this Filesystem instance.
package filesystem
import (
	"sync"
	"sync/atomic"
	"syscall"
	"time"
	"emperror.dev/errors"
	"github.com/apex/log"
	"github.com/karrick/godirwalk"
)
type SpaceCheckingOpts struct {
	AllowStaleResponse bool
}
type usageLookupTime struct {
	sync.RWMutex
	value time.Time
}
func (ult *usageLookupTime) Set(t time.Time) {
	ult.Lock()
	ult.value = t
	ult.Unlock()
}
func (ult *usageLookupTime) Get() time.Time {
	ult.RLock()
	defer ult.RUnlock()
	return ult.value
}
func (fs *Filesystem) MaxDisk() int64 {
	return atomic.LoadInt64(&fs.diskLimit)
}