From d37115e961f66357473e232a9591a6c5a803f9a6 Mon Sep 17 00:00:00 2001
From: heppen <hepeng68@huawei.com>
Date: Sat, 24 Jun 2023 18:09:33 +0800
Subject: [PATCH] change default devsl from 0 to 4

---
 .../distributedfiledaemon/src/network/kernel_talker.cpp     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/services/distributedfiledaemon/src/network/kernel_talker.cpp b/services/distributedfiledaemon/src/network/kernel_talker.cpp
index bb53d50..8ee8dbb 100644
--- a/services/distributedfiledaemon/src/network/kernel_talker.cpp
+++ b/services/distributedfiledaemon/src/network/kernel_talker.cpp
@@ -75,15 +75,13 @@ void KernelTalker::SinkSessionTokernel(shared_ptr<BaseSession> session)
     int socketFd = session->GetHandle();
     auto masterkey = session->GetKey();
     auto cid = session->GetCid();
-    LOGD("sink session to kernel success, cid:%{public}s, socketFd:%{public}d, key[0]:%{public}x", cid.c_str(),
-         socketFd, *(uint32_t *)masterkey.data());
 
     uint8_t status = (session->IsFromServer() ? SOCKET_STAT_ACCEPT : SOCKET_STAT_OPEN);
 
     UpdateSocketParam cmd = {
         .cmd = CMD_UPDATE_SOCKET,
         .newfd = socketFd,
-        .devsl = 0,
+        .devsl = 4,
         .status = status,
     };
     if (memcpy_s(cmd.masterKey, KEY_MAX_LEN, masterkey.data(), KEY_MAX_LEN) != EOK) {
@@ -94,6 +92,8 @@ void KernelTalker::SinkSessionTokernel(shared_ptr<BaseSession> session)
         return;
     }
     SetCmd(cmd);
+    LOGD("sink session to kernel success, cid:%{public}s, socketFd:%{public}d, key[0]:%{public}x, devsl:%{public}d",
+         cid.c_str(), socketFd, *(uint32_t *)masterkey.data(), cmd.devsl);
 
     // DevslDispatcher::DevslGetRegister(cid, shared_from_this());
 }
-- 
2.33.0

