mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Correct comments
This commit is contained in:
parent
533067bba4
commit
a990b3aeb9
2 changed files with 3 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue