|
|
发表于 2006-5-10 10:38:59
|
显示全部楼层
Post by leiwhere
谢谢大家提醒。
我的想法是mount应该依赖系统调用。
毕竟mount是依赖系统调用才能挂接文件系统。
那么mount依赖系统调用去做查询,也是正确合理的。
移植到不同的平台的时候是调用系统查询方便还是读文本流方便?呵呵,要我肯定读文本,因为不知道怎么查系统啊,嘿嘿。这东西可能是历史遗留问题。现在BSD下也没mounts文件。不知道究竟是为了兼容还是为了方便。
Post by man mount
It is possible to replace /etc/mtab by a symbolic link to /proc/mounts, and especially when you have very large numbers of mounts things will be much faster with that symlink, but some information is lost that way, and in particular working with the loop device will be less convenient, and using the "user" option will fail.
|
|