日期:2014-05-16  浏览次数:20582 次

有关linux的mount命令
现在有条命令“mount /dev/sdb /mnt”

在c里面要实现这样的功能,现在是用system调shell命令实现

疑问:有没有c函数实现mount功能?网上找了半天没找到,坐等高手

------解决方案--------------------
man 2 mount

#include <sys/mount.h>
int mount(const char *source, const char *target,
const char *filesystemtype, unsigned long mountflags,
const void *data);