fix(btrfs): build btrfs based on platform
@@ -1,3 +1,5 @@
+// +build linux,amd64
+
package btrfs
import (
@@ -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")