摘要
介绍了在内核中如何通过虚拟设备作为用户空间和内核空间交互的桥梁,并替换系统调用的方法,实现通过实时监督某台机器上预先设定的路径,在对这个路径里所有的文件操作动作和内容都会在另一台机器上再现,以达到同步备份的功能。
This paper introduces how to connect between user space and kernel space by using virtual device and replaces systemcall in Linux kernel to monitor some directories in which all modifications of files and subdirectories will be copy to another backup machine. By this way, this paper realizes the synchronization of backup between two machines.
出处
《计算机与现代化》
2009年第6期40-43,47,共5页
Computer and Modernization
关键词
内核对象机制
虚拟设备
进程通信
kernel-object mechanism
virtual device
process communication