完成这件事情的最好方式就是,使用回送设备(loopback device) 。这一服务使 你可以将一个文件作为一个文件系统来进行安装,然后将其与其它文件系统一 样来进行管理。
基于20个网页-相关网页
然后我们进行循环,重新扫描 SCSI 总线(通过将命令回送到 /proc pseudo-filesystem 中的特殊文件,并调用 devfsd ),直到出现根设备(我的例子中为 /dev/sda1)。
We then loop, rescanning the SCSI bus (by echoing a command to a special file in the /proc pseudo-filesystem and calling devfsd) until the root device (/dev/sda1 in my case) is present.
请求将被后端接收到,然后回送一个 JSON 响应文件,其中含有设备请求的数据。
The request will be received by the back end, which in turn will send back a JSON response file containing the requested data to the device.
应用推荐