挂载系统调用 [英] mount system call

查看:44
本文介绍了挂载系统调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找 mount() 系统调用的正确用法,这应该是命令的替代

I am stuck at finding the correct usage of mount() system call which should be the replacment for the command

$mount -t ext3 -oloop/test/mount

$mount -t ext3 -oloop /test /mount

请帮忙.

谢谢

推荐答案

尝试:

$ strace mount -t ext3 -oloop/test/mount

$ strace mount -t ext3 -oloop /test /mount

您将看到涉及到 2 个系统调用 - 一个用于设置环回块设备,另一个用于执行实际挂载

And you will see that there are 2 number of system calls involved - one for setting the loopback block device and another to do the actual mount

这篇关于挂载系统调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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