在挂载点上执行时命令被杀死 [英] Commands are getting killed when executing on mount point

查看:103
本文介绍了在挂载点上执行时命令被杀死的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个文件系统,当我将它挂载到任何目录并执行该挂载点上的任何命令时(ls / mkdir等)我输出为KILLED。

那是什么意思是,哪个过程被杀死了,为什么。这个问题的解决方案是什么。



提前致谢:)



我是什么尝试过:



将内核模块插入insmod example.ko

挂载为mount -o loop - 示例图像mnt

I have created a file sytem, when I mount it on any directory and execute any command on that mount point(ls/mkdir etc) I am getting the output as KILLED.
What does that mean, which process is getting killed and why. What is the solution of this problem.

Thanks in advance :)

What I have tried:

Inserted the kernel module as "insmod example.ko"
mounted as "mount -o loop -t example image mnt"

推荐答案

消息由内核发出。我假设你自编的内核模块以某种方式失败。



检查内核日志文件中是否有条目( / var / log / kern .log 包含大多数发行版)。如果是这样,它可能会提供更多信息。



常见解决方案:调试。



因为调试内核模块相当复杂,您可以先使用 printk()来记录模块的活动。
The message is issued by the kernel. I assume that your self written kernel module fails in some way.

Check if there is an entry in the kernel log file (/var/log/kern.log with most distributions). If so, it might provide more information.

The common solution: Debugging.

Because debugging kernel modules is rather complicated you can start by using printk() to log the activities of your module.


这篇关于在挂载点上执行时命令被杀死的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆