github.com/cockroachdb/pebble@v0.0.0-20231214172447-ab4952c5f87b/vfs/file_lock_generic.go (about) 1 // Copyright 2012 The LevelDB-Go and Pebble Authors. All rights reserved. Use 2 // of this source code is governed by a BSD-style license that can be found in 3 // the LICENSE file. 4 5 //go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows 6 // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows 7 8 package vfs 9 10 import ( 11 "io" 12 "runtime" 13 14 "github.com/cockroachdb/errors" 15 ) 16 17 func (defFS) Lock(name string) (io.Closer, error) { 18 return nil, errors.Errorf("pebble: file locking is not implemented on %s/%s", 19 errors.Safe(runtime.GOOS), errors.Safe(runtime.GOARCH)) 20 }