mirror of https://github.com/docker/docs.git
Correct comments
This commit is contained in:
parent
533067bba4
commit
a990b3aeb9
|
@ -44,7 +44,7 @@ func openNextAvailableLoopback(index int, sparseFile *osFile) (loopFile *osFile,
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open the targeted loopback (use OpenFile because Open sets O_CLOEXEC)
|
// OpenFile adds O_CLOEXEC
|
||||||
loopFile, err = osOpenFile(target, osORdWr, 0644)
|
loopFile, err = osOpenFile(target, osORdWr, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Errorf("Error openning loopback device: %s", err)
|
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)
|
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)
|
sparseFile, err := osOpenFile(sparseName, osORdWr, 0644)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Errorf("Error openning sparse file %s: %s", sparseName, err)
|
utils.Errorf("Error openning sparse file %s: %s", sparseName, err)
|
||||||
|
|
|
@ -34,9 +34,7 @@ var (
|
||||||
osRename = os.Rename
|
osRename = os.Rename
|
||||||
osReadlink = os.Readlink
|
osReadlink = os.Readlink
|
||||||
|
|
||||||
execRun = func(name string, args ...string) error {
|
execRun = func(name string, args ...string) error { return exec.Command(name, args...).Run() }
|
||||||
return exec.Command(name, args...).Run()
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
Loading…
Reference in New Issue