mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
chore(pkg/fs): rewrite comment
This commit is contained in:
parent
b06d2796f8
commit
d871324e93
@ -21,7 +21,8 @@ const (
|
|||||||
|
|
||||||
// IsBtrfs checks whether the file is in btrfs
|
// IsBtrfs checks whether the file is in btrfs
|
||||||
func IsBtrfs(path string) bool {
|
func IsBtrfs(path string) bool {
|
||||||
// btrfs is developed on linux only
|
// btrfs is linux-only filesystem
|
||||||
|
// exit on other platforms
|
||||||
if runtime.GOOS != "linux" {
|
if runtime.GOOS != "linux" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
@ -56,5 +57,5 @@ func SetNOCOW(path string) {
|
|||||||
log.Warnf("Failed to set file flags: %v", errno.Error())
|
log.Warnf("Failed to set file flags: %v", errno.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
log.Infof("Set NOCOW to path %v succeed", path)
|
log.Infof("Set NOCOW to path %v succeeded", path)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user