⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 linux下自动mount各种即插即用设备的一个小程序源码 文件包含内容: /vold.h /vold.c /split.h /split.c /disktype-6/disktype.c
💻
字号:
DISCLAIMER==========This is an alpha release of the volume daemon.Use this program at your own risk. If this program deletes your data, its notmy fault. You have been warned!! (It never deleted anything on my computer, ifthis helps you :-)What it can do now:Automatically mount USB-Memory Sticks (maybe iPods too)Installing===========First you have to create a directory /Volumes (world writeable is ok)Then you can compile vold with 'make'. Be sure to have libuuid installed!Start vold by typing ./vold (you have to be root!)Running vold=============If you unplug your memory stick you will get an errormessage telling you to first unmount it. You have to be root to unmount the devices mounted by voldbecause /etc/mtab is not yet updated. See /proc/mounts for all current mount-points.There are three different types of devices:1. Devices not handled by vold2. Devices handled by vold and scanned every N seconds (default 1 second)3. Devices handled by vold and scanned on SIGUSR1In future you can add the devices handled by vold to the vold.conf file.Right now they are hardcoded at the end of vold.c in main()./dev/hda1 - /dev/hda9 are checked periodically while/dev/sda1 - /dev/sda4 and /dev/sdb1 - /dev/sdb4 are only checked on SIGUSR1If you plug in your USB-Stick make sure to type# kill -SIGUSR1 <pid_of_vold>Debugging vold===============There are two debug switches in vold which will produce lots of (interesting?)output.The first is vold's own debug switch. set debug=1 at vold.c at the top.The second is in disktype/disktype.h. Uncomment //#define DEBUG at the top.IMPORTANT==========disktype is not yet fully converted to a library. Not all filesystems can be detected right now. CD-Rom support isn't converted as well.If it doesn't work, enable the debug switches and try to find out why. If youstill have problem don't hesitate to write me a mail at wacha@gmx.ch- Clemens

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -