From 95d710d02b6eafb32115a1ef7989a2654869ce2c Mon Sep 17 00:00:00 2001 From: Paul Morie Date: Thu, 28 May 2015 12:14:53 -0400 Subject: [PATCH] Add comments in mt.go --- contrib/for-tests/mount-tester/mt.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/contrib/for-tests/mount-tester/mt.go b/contrib/for-tests/mount-tester/mt.go index 266f39793c4..0a39d7cc86d 100644 --- a/contrib/for-tests/mount-tester/mt.go +++ b/contrib/for-tests/mount-tester/mt.go @@ -48,6 +48,15 @@ func main() { errs = []error{} ) + // NOTE: the ordering of execution of the various command line + // flags is intentional and allows a single command to: + // + // 1. Check the fstype of a path + // 2. Write a new file within that path + // 3. Check that the file's content can be read + // + // Changing the ordering of the following code will break tests. + err = fsType(fsTypePath) if err != nil { errs = append(errs, err)