cifsd-team / ksmbd-tools

ksmbd kernel server userspace utilities
GNU General Public License v2.0
92 stars 27 forks source link

Where can I see the logs of ksmbd-tools? #306

Closed mengqima closed 11 months ago

mengqima commented 11 months ago

Hi @namjaejeon , where can I see the logs of ksmbd-tools?

namjaejeon commented 11 months ago

What log do you want to see ?

mengqima commented 11 months ago

such as: // file: tools.h

define pr_debug(f, ...) \

pr_log(PR_DEBUG, PRDEBUG f, ##__VA_ARGS__)

define pr_info(f, ...) \

pr_log(PR_INFO, PRINF f, ##__VA_ARGS__)

define pr_err(f, ...) \

pr_log(PR_ERROR, PRERR f, ##__VA_ARGS__)

But I can not find the output log if I execute ksmbd.mounted

namjaejeon commented 11 months ago

Okay. You need to run ksmbd.mount on nodetach mode. So you can use -n option.

namjaejeon commented 11 months ago

Or you can check ksmbd.mount log from /var/syslog if you want to run detach mode.

mengqima commented 11 months ago

Thanks, it works.