Correct comments

This commit is contained in:
Guillaume J. Charmes 2013-11-28 11:02:53 -08:00
parent 533067bba4
commit a990b3aeb9
No known key found for this signature in database
GPG Key ID: B33E4642CB6E3FF3
2 changed files with 3 additions and 5 deletions

View File

@ -44,7 +44,7 @@ func openNextAvailableLoopback(index int, sparseFile *osFile) (loopFile *osFile,
continue
}
// Open the targeted loopback (use OpenFile because Open sets O_CLOEXEC)
// OpenFile adds O_CLOEXEC
loopFile, err = osOpenFile(target, osORdWr, 0644)
if err != nil {
utils.Errorf("Error openning loopback device: %s", err)
@ -89,7 +89,7 @@ func attachLoopDevice(sparseName string) (loop *osFile, err error) {
utils.Debugf("Error retrieving the next available loopback: %s", err)
}
// Open the given sparse file (use OpenFile because Open sets O_CLOEXEC)
// OpenFile adds O_CLOEXEC
sparseFile, err := osOpenFile(sparseName, osORdWr, 0644)
if err != nil {
utils.Errorf("Error openning sparse file %s: %s", sparseName, err)

View File

@ -34,9 +34,7 @@ var (
osRename = os.Rename
osReadlink = os.Readlink
execRun = func(name string, args ...string) error {
return exec.Command(name, args...).Run()
}
execRun = func(name string, args ...string) error { return exec.Command(name, args...).Run() }
)
const (