- 论坛徽章:
- 0
|
这几天在写关于文件管理方面的程序,需要从usb host上挂载文件系统,用system调用mount程序来实现手工挂载,看了看mount函数。觉着用函数调用要好一些。
int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data);
source :设备 /dev/sda等
target :挂载点/mnt/usb等
*filesystemtype:"minix","ext2", "msdos", "proc", "nfs", "iso9660" ,“vfat”etc.
mountflags:MS_MGC_VAL/还有别的参数,但是不知道什么意思。
×data:例如:”codepage=936,iocharset=cp936“
目前只是知道了些皮毛,正在努力中.....
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/14901/showart_103375.html |
|