From d871324e93ee19ad8e55e1584e4cf693628d652a Mon Sep 17 00:00:00 2001 From: Yicheng Qin Date: Wed, 9 Apr 2014 10:15:28 -0700 Subject: [PATCH] chore(pkg/fs): rewrite comment --- pkg/fs/fs.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/fs/fs.go b/pkg/fs/fs.go index 6af3af3a8..1f11dccbf 100644 --- a/pkg/fs/fs.go +++ b/pkg/fs/fs.go @@ -21,7 +21,8 @@ const ( // IsBtrfs checks whether the file is in btrfs func IsBtrfs(path string) bool { - // btrfs is developed on linux only + // btrfs is linux-only filesystem + // exit on other platforms if runtime.GOOS != "linux" { return false } @@ -56,5 +57,5 @@ func SetNOCOW(path string) { log.Warnf("Failed to set file flags: %v", errno.Error()) return } - log.Infof("Set NOCOW to path %v succeed", path) + log.Infof("Set NOCOW to path %v succeeded", path) }