@@ -347,7 +347,7 @@ func (devices *DeviceSet) deviceFileWalkFunction(path string, finfo os.FileInfo)
347347 }
348348
349349 if dinfo .DeviceId > MaxDeviceId {
350- log .Errorf ("Warning: Ignoring Invalid DeviceId=%d" , dinfo .DeviceId )
350+ log .Errorf ("Ignoring Invalid DeviceId=%d" , dinfo .DeviceId )
351351 return nil
352352 }
353353
@@ -554,7 +554,7 @@ func (devices *DeviceSet) createRegisterDevice(hash string) (*DevInfo, error) {
554554 // happen. Now we have a mechianism to find
555555 // a free device Id. So something is not right.
556556 // Give a warning and continue.
557- log .Errorf ("Warning: Device Id %d exists in pool but it is supposed to be unused" , deviceId )
557+ log .Errorf ("Device Id %d exists in pool but it is supposed to be unused" , deviceId )
558558 deviceId , err = devices .getNextFreeDeviceId ()
559559 if err != nil {
560560 return nil , err
@@ -606,7 +606,7 @@ func (devices *DeviceSet) createRegisterSnapDevice(hash string, baseInfo *DevInf
606606 // happen. Now we have a mechianism to find
607607 // a free device Id. So something is not right.
608608 // Give a warning and continue.
609- log .Errorf ("Warning: Device Id %d exists in pool but it is supposed to be unused" , deviceId )
609+ log .Errorf ("Device Id %d exists in pool but it is supposed to be unused" , deviceId )
610610 deviceId , err = devices .getNextFreeDeviceId ()
611611 if err != nil {
612612 return err
@@ -852,18 +852,18 @@ func (devices *DeviceSet) rollbackTransaction() error {
852852 // closed. In that case this call will fail. Just leave a message
853853 // in case of failure.
854854 if err := devicemapper .DeleteDevice (devices .getPoolDevName (), devices .DeviceId ); err != nil {
855- log .Errorf ("Warning: Unable to delete device: %s" , err )
855+ log .Errorf ("Unable to delete device: %s" , err )
856856 }
857857
858858 dinfo := & DevInfo {Hash : devices .DeviceIdHash }
859859 if err := devices .removeMetadata (dinfo ); err != nil {
860- log .Errorf ("Warning: Unable to remove metadata: %s" , err )
860+ log .Errorf ("Unable to remove metadata: %s" , err )
861861 } else {
862862 devices .markDeviceIdFree (devices .DeviceId )
863863 }
864864
865865 if err := devices .removeTransactionMetaData (); err != nil {
866- log .Errorf ("Warning: Unable to remove transaction meta file %s: %s" , devices .transactionMetaFile (), err )
866+ log .Errorf ("Unable to remove transaction meta file %s: %s" , devices .transactionMetaFile (), err )
867867 }
868868
869869 return nil
@@ -883,7 +883,7 @@ func (devices *DeviceSet) processPendingTransaction() error {
883883 // If open transaction Id is less than pool transaction Id, something
884884 // is wrong. Bail out.
885885 if devices .OpenTransactionId < devices .TransactionId {
886- log .Errorf ("Warning: Open Transaction id %d is less than pool transaction id %d" , devices .OpenTransactionId , devices .TransactionId )
886+ log .Errorf ("Open Transaction id %d is less than pool transaction id %d" , devices .OpenTransactionId , devices .TransactionId )
887887 return nil
888888 }
889889
@@ -963,7 +963,7 @@ func (devices *DeviceSet) initDevmapper(doInit bool) error {
963963
964964 // https://github.com/docker/docker/issues/4036
965965 if supported := devicemapper .UdevSetSyncSupport (true ); ! supported {
966- log .Warnf ("WARNING: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors" )
966+ log .Warnf ("Udev sync is not supported. This will lead to unexpected behavior, data loss and errors" )
967967 }
968968 log .Debugf ("devicemapper: udev sync support: %v" , devicemapper .UdevSyncSupported ())
969969
@@ -1221,7 +1221,7 @@ func (devices *DeviceSet) deactivateDevice(info *DevInfo) error {
12211221 // Wait for the unmount to be effective,
12221222 // by watching the value of Info.OpenCount for the device
12231223 if err := devices .waitClose (info ); err != nil {
1224- log .Errorf ("Warning: error waiting for device %s to close: %s" , info .Hash , err )
1224+ log .Errorf ("Error waiting for device %s to close: %s" , info .Hash , err )
12251225 }
12261226
12271227 devinfo , err := devicemapper .GetInfo (info .Name ())
@@ -1584,7 +1584,7 @@ func (devices *DeviceSet) getUnderlyingAvailableSpace(loopFile string) (uint64,
15841584 buf := new (syscall.Statfs_t )
15851585 err := syscall .Statfs (loopFile , buf )
15861586 if err != nil {
1587- log .Warnf ("Warning: Couldn't stat loopfile filesystem %v: %v" , loopFile , err )
1587+ log .Warnf ("Couldn't stat loopfile filesystem %v: %v" , loopFile , err )
15881588 return 0 , err
15891589 }
15901590 return buf .Bfree * uint64 (buf .Bsize ), nil
@@ -1594,7 +1594,7 @@ func (devices *DeviceSet) isRealFile(loopFile string) (bool, error) {
15941594 if loopFile != "" {
15951595 fi , err := os .Stat (loopFile )
15961596 if err != nil {
1597- log .Warnf ("Warning: Couldn't stat loopfile %v: %v" , loopFile , err )
1597+ log .Warnf ("Couldn't stat loopfile %v: %v" , loopFile , err )
15981598 return false , err
15991599 }
16001600 return fi .Mode ().IsRegular (), nil
0 commit comments