You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: options.go
    path of file: ./repos/scan4all/vendor/github.com/akrylysov/pogreb
    
    the code of the file until where you have to start completion: package pogreb

import (
	"math"
	"time"

	"github.com/akrylysov/pogreb/fs"
)

// Options holds the optional DB parameters.
type Options struct {
	// BackgroundSyncInterval sets the amount of time between background Sync() calls.
	//
	// Setting the value to 0 disables the automatic background 
    
func (src *Options) copyWithDefaults(path string) *Options {
	opts := Options{}
	if src != nil {
		opts = *src
	}
	if opts.FileSystem == nil {
		opts.FileSystem = fs.OSMMap
	}
	opts.FileSystem = fs.Sub(opts.FileSystem, path)
	if opts.maxSegmentSize == 0 {
		opts.maxSegmentSize = math.MaxUint32
	}
	if opts.compactionMinSegmentSize == 0 {
		opts.compactionMinSegmentSize = 32 << 20
	}
	if opts.compactionMinFragmentation == 0 {
		opts.compactionMinFragmentation = 0.5
	}
	return &opts
}