lxd/sys/os.go
func DefaultOS() *OS {
	newOS := &OS{
		VarDir:   shared.VarPath(),
		CacheDir: shared.CachePath(),
		LogDir:   shared.LogPath(),
	}
	newOS.InotifyWatch.Fd = -1
	newOS.InotifyWatch.Targets = make(map[string]*InotifyTargetInfo)
	return newOS
}
func DefaultOS() *OS {
	newOS := &OS{
		VarDir:   shared.VarPath(),
		CacheDir: shared.CachePath(),
		LogDir:   shared.LogPath(),
	}
	newOS.InotifyWatch.Fd = -1
	newOS.InotifyWatch.Targets = make(map[string]*InotifyTargetInfo)
	return newOS
}
func DefaultOS ( ) * OS { newOS := & OS { VarDir : shared . VarPath ( ) , CacheDir : shared . CachePath ( ) , LogDir : shared . LogPath ( ) , } newOS . InotifyWatch . Fd = - 1 newOS . InotifyWatch . Targets = make ( map [ string ] * InotifyTargetInfo ) return newOS }
// DefaultOS returns a fresh uninitialized OS instance with default values.
DefaultOS returns a fresh uninitialized OS instance with default values .