update disk mount lib
@@ -187,7 +187,7 @@ func checkSystemNasConfig() {
chkCmd := fmt.Sprintf("cat %s | grep tcp_slot_table_entries | grep 128 | grep -v grep | wc -l", sunRpcFile)
out, err := utils.Run(chkCmd)
if err != nil {
- log.Warnf("Update Nas system config check error: ", err.Error())
+ log.Warnf("Update Nas system config check error: %s", err.Error())
return
}
if strings.TrimSpace(out) == "0" {
@@ -199,7 +199,7 @@ func checkSystemNasConfig() {
upCmd := fmt.Sprintf("echo \"options sunrpc tcp_slot_table_entries=128\" >> %s && echo \"options sunrpc tcp_max_slot_table_entries=128\" >> %s && sysctl -w sunrpc.tcp_slot_table_entries=128", sunRpcFile, sunRpcFile)
_, err := utils.Run(upCmd)
if err != nil {
- log.Warnf("Update Nas system config error: ", err.Error())
+ log.Warnf("Update Nas system config error: %s", err.Error())
return
}
log.Warnf("Successful update Nas system config")
