LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 765|回复: 4

如何通过系统函数取到象是df -v命令中看到的所有Mount Dir?

[复制链接]
发表于 2004-3-3 23:07:17 | 显示全部楼层 |阅读模式
RT
发表于 2004-3-4 19:18:52 | 显示全部楼层
好象没有直接取得mount dir的系统调用。可以用读取/etc/mtab的办法间接实现。
发表于 2004-3-4 20:16:49 | 显示全部楼层
要是文件不存在,那就不能取的信息了??。df也是从/etc/mtab那里取的信息的
 楼主| 发表于 2004-3-15 00:53:07 | 显示全部楼层
VGSCAN(8)                                                            VGSCAN(8)
                                                                                                
NAME
       vgscan  -  scan  all  disks for volume groups and build /etc/lvmtab and
       /etc/lvmtab.d/* which are the database for all other lvm commands.
和这个有点关系
发表于 2004-3-15 10:46:37 | 显示全部楼层
把df的源代码找来看看不就行了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表