mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #743 from unihorn/70
fix(btrfs): build btrfs based on platform
This commit is contained in:
commit
215ff2839d
@ -1,3 +1,5 @@
|
||||
// +build linux,amd64
|
||||
|
||||
package btrfs
|
||||
|
||||
import (
|
17
pkg/btrfs/btrfs_stubs.go
Normal file
17
pkg/btrfs/btrfs_stubs.go
Normal file
@ -0,0 +1,17 @@
|
||||
// +build !linux !amd64
|
||||
|
||||
package btrfs
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// IsBtrfs checks whether the file is in btrfs
|
||||
func IsBtrfs(path string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// SetNOCOWFile sets NOCOW flag for file
|
||||
func SetNOCOWFile(path string) error {
|
||||
return fmt.Errorf("unsupported for the platform")
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user