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

📄 index.html

📁 linux下自动mount各种即插即用设备的一个小程序源码 文件包含内容: /vold.h /vold.c /split.h /split.c /disktype-6/disktype.c
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>  <title>Volume Daemon for GNU/Linux</title>  <meta name="GENERATOR" content="Quanta Plus">  <style type="text/css">body {margin-left:4%;font-family: sans-serif; font-size: x-small;}h1 {margin-left: -4%;font-family:serif;font-weight:bold; font-size: xx-large}h2 {margin-left: -4%;font-family:serif;font-weight:bold; font-size: x-large}h3 {margin-left: -4%;font-family:serif;font-weight:bold; font-size: large}h4 {margin-left: -4%;font-family:serif;font-weight:bold; font-size: normal} .code {	margin-left: 4%;	padding: 2%;	font-family:monospace;	background-color:lightGray;	border:medium dashed darkGray;	display:justify;}  </style></head><body><div align="center"><font face="serif" size="+4" style="">Volume Daemon</font><br><font face="serif" size="+1" style="">for GNU/Linux</font></div><h3>What is it?</h3>The Volume Daemon is a small program, that can automatically mount yourCD-Roms, USB-Memory Sticks,iPods and other removable Media. The main goal is to provide anapplication that can take care of your storage devicesso you don't need to edit fstab anymore. If you bought a new harddisk,the only thing to make it work is to plug it in. If there arepartitions on it they will be mounted immediately.This program is in fact very similar to the volume daemon 'vold' foundon Solaris or the 'autodiskmount' on Mac OS X.<br><br>But there already is an automounter in Linux! Why do we need this'vold'?<br>Something I did never like about the automounter is that its automounting is somehow special. Devices are not mounted automatically whenthey are available but when they are accessed. Another point thatreally annoyed me was that when I plugged in my Memory Stick in Windowsor in Mac OS X, I needn't do anything else - it just worked. I pluggedit in on Linux and ... nothing happened (as usual..). I could livewith the mount process but its not only that. The device names maychange if you have more that one hotpluggable device depending on whichdevice you plug in first. <br><br>But hey.. there already is a volume daemon for linux! <br>Yes I know. But that version does only support CD-Roms. And I just can't find it's homepage anymore.<br><br>That's why we now have a volume daemon. :-)<h3>How it works</h3>Vold maintains a list of devices which should be scanned. You can configure these devices in vold.conf (not yet implemented - devices are hardcoded now). On startup vold scans all devices for mountable partitions and mounts them. After that, devices marked as "periodic" are scanned every N seconds. You can however send a SIGUSR1 to force a rescan of all devices (this is especially useful if you want to integrate it with the current hotplug installation).<br>If a device is detected, vold uses the disktype library to find out the filesystem, volumelabel (if supported) and UUID. It then checks if there is a corresponding entry in /etc/fstab and mounts the device. If there is no entry in /etc/fstab the device is mounted under<br><p class="code">/Volumes/[volumelabel] or /Volumes/[devicename]</p> if no volumelabel is available.<br>If you need to reidentify certain partitions (i.e. hotpluggable devices like USB-Flashsticks) and you don't like the volumelabel support (which is especially poor for fat partitions....) you can use UUID's. Instead of giving a device path in /etc/fstab you can use UUID=xxxxxx instead. The really cool thing about this is that your filesystem needn't support UUIDs by default. Vold will support a UUID file (.uuid_file) which you put in your UUID and move it to the partitions root directory. While scanning a new device vold will temporary mount the device and check for this file if you enable the corresponding option (disabled by default - and not yet implemented).<br><br>excerpt from vold.conf<br><p class="code">#comments in vold.conf as usual...<br>volumeroot /Volumes #should be world writeable to allow a normal user to unmount the device!<br>default_mntopts rw #maybe in the future we will have per_fs_mnt_opts<br>uuid_filecheck on<br><br>#until we have partitiontable support you will need to specify every possible partition<br>#scan /dev/sda<br>scan /dev/sda1<br>scan /dev/sda2<br>scan /dev/sda3<br>scan /dev/sda4<br>scan /dev/sda5<br></p><h3>Features</h3>Working:<ul>  <li type="square">Mount hotpluggable devices</li>  <li type="square">Mount HD-Partitions</li>  <li type="square">Support for LABEL= and UUID= options in fstab</li></ul>Planned:<ul>  <li type="square">Mount CD-Roms</li>  <li type="square">Support for "special" fstab entries like usbdevfs/procfs etc.</li>  <li type="square">UUID Workaround for non-UUID capable filesystems</li>  <li type="square">Partitiontable Support</li>  <li type="square">Complete library conversion for disktype (currently only fat and linux partitions are recognized)</li>  <li type="square">Support for configuration file</li>  <li type="square">Support for commandline options</li></ul><h3>Download</h3><a href=http://prdownloads.sourceforge.net/vold/vold-0.1alpha.tar.gz?download>vold-0.1alpha.tar.gz</a><br>There is no support for commandline options or a config file yet. You can go with the defaults. AND READ THE README!!<h3>CVS</h3>Standard Sourceforge CVS access. Just copy and paste this to your commandline.<p class="code">cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/vold login<br><br>cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/vold co vold<br></p><h3>Forum</h3><a href=http://sourceforge.net/forum/?group_id=91573>Click here to go to the forum</a><h3>Dependencies</h3>Vold depends on <br>a modified version of disktype6 (with added library support) -<a href=http://disktype.sourceforge.net/>http://disktype.sourceforge.net/</a><br>libuuid (part of the e2fsprogs  package) - from<a href=http://e2fsprogs.sourceforge.net/>http://e2fsprogs.sourceforge.net/</a><br><h3>Contact</h3>This program was written by <a href="mailto:reflex-2000@gmx.net?subject=Message%20for%20vold">Clemens Wacha</a>. Feel free to tell me your opinion and write me an email.<br><br><a href=http://sourceforge.net/projects/vold/>Project hosted on Sourceforge.net</a><br><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=91573&amp;type=5" width="210" height="62" border="0" alt="SourceForge.net Logo" /></a></body></html>

⌨️ 快捷键说明

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