func Create(path string, nocache bool) (*Writer, error) {
	f, err := os.Create(path)
	if err != nil {
		return nil, fmt.Errorf("cannot create file %q: %s", path, err)
	}
	w := &Writer{
		f:  f,
		bw: getBufioWriter(f),
	}
	if nocache {
		w.st.fd = f.Fd()
	}
	writersCount.Inc()
	return w, nil
}
// Create creates the file for the given path in nocache mode.
//
// If nocache is set, the writer doesn't pollute OS page cache.
Create creates the file for the given path in nocache mode.

If nocache is set, the writer doesn't pollute OS page cache.
// Create creates the file for the given path in nocache mode . // // If nocache is set the writer doesn ' t pollute OS page cache .
func Create(path string, nocache bool) (*Writer, error) {
	f, err := os.Create(path)
	if err != nil {
		return nil, fmt.Errorf("cannot create file %q: %s", path, err)
	}
	w := &Writer{
		f:  f,
		bw: getBufioWriter(f),
	}
	if nocache {
		w.st.fd = f.Fd()
	}
	writersCount.Inc()
	return w, nil
}
func Create ( path string , nocache bool ) ( * Writer , error ) { f , err := os . Create ( path ) if err != nil { return nil , fmt . Errorf ( " " , path , err ) } w := & Writer { f : f , bw : getBufioWriter ( f ) , } if nocache { w . st . fd = f . Fd ( ) } writersCount . Inc ( ) return w , nil }
Create creates the file for the given path in nocache mode.
Create creates the file for the given path in nocache mode .