mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
fix(btrfs): build btrfs based on platform
This commit is contained in:
parent
9f228550a2
commit
7bf1936df3
@ -1,3 +1,5 @@
|
|||||||
|
// +build linux,amd64
|
||||||
|
|
||||||
package btrfs
|
package btrfs
|
||||||
|
|
||||||
import (
|
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