@@ -20,10 +20,10 @@ import (
2020 "time"
2121
2222 "github.com/Sirupsen/logrus"
23-
2423 "github.com/docker/docker/daemon/graphdriver"
2524 "github.com/docker/docker/dockerversion"
2625 "github.com/docker/docker/pkg/devicemapper"
26+ "github.com/docker/docker/pkg/dmesg"
2727 "github.com/docker/docker/pkg/idtools"
2828 "github.com/docker/docker/pkg/loopback"
2929 "github.com/docker/docker/pkg/mount"
@@ -1191,7 +1191,7 @@ func (devices *DeviceSet) growFS(info *devInfo) error {
11911191 options = joinMountOptions (options , devices .mountOptions )
11921192
11931193 if err := mount .Mount (info .DevName (), fsMountPoint , devices .BaseDeviceFilesystem , options ); err != nil {
1194- return fmt .Errorf ("Error mounting '%s' on '%s': %s" , info .DevName (), fsMountPoint , err )
1194+ return fmt .Errorf ("Error mounting '%s' on '%s'. fstype=%s options=%s : %s\n %v " , info .DevName (), fsMountPoint , devices . BaseDeviceFilesystem , options , err , string ( dmesg . Dmesg ( 256 )) )
11951195 }
11961196
11971197 defer syscall .Unmount (fsMountPoint , syscall .MNT_DETACH )
@@ -2365,7 +2365,7 @@ func (devices *DeviceSet) MountDevice(hash, path, mountLabel string) error {
23652365 options = joinMountOptions (options , label .FormatMountLabel ("" , mountLabel ))
23662366
23672367 if err := mount .Mount (info .DevName (), path , fstype , options ); err != nil {
2368- return fmt .Errorf ("devmapper: Error mounting '%s' on '%s': %s" , info .DevName (), path , err )
2368+ return fmt .Errorf ("devmapper: Error mounting '%s' on '%s'. fstype=%s options=%s : %s\n %v " , info .DevName (), path , fstype , options , err , string ( dmesg . Dmesg ( 256 )) )
23692369 }
23702370
23712371 if fstype == "xfs" && devices .xfsNospaceRetries != "" {
0 commit comments