Merge pull request #743 from unihorn/70

fix(btrfs): build btrfs based on platform
This commit is contained in:
Yicheng Qin 2014-04-18 14:34:58 -07:00
commit 215ff2839d
2 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,5 @@
// +build linux,amd64
package btrfs
import (

17
pkg/btrfs/btrfs_stubs.go Normal file
View 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")
}