Podstrony
- Strona startowa
- Ewa Bialolecka Nocny spiewak
- Ashes on the Waves Mary Lindsey
- Henryk Sienkiewicz Ogniem i mieczem
- [Alexandre Dumas] Il Conte di Montecristo
- Murrell Taylor The Divided Family in Civil War America By Amy (2009)
- Weronika R. Cichodajka 2004 2005
- Saylor Steven Roma sub rosa t Dom Westalek
- Makrofotografia
- Księga tysiąca i jednej nocy
- Grisham John Obronca ulicy
- zanotowane.pl
- doc.pisz.pl
- pdf.pisz.pl
- oczkomarcelka.pev.pl
[ Pobierz całość w formacie PDF ]
.It lets the user access disks and CDs without having to be logged in as root.It lets the administrator (root) give other systems on the network automatic access toany disks and CDs the users insert into your system.To begin, let s look at the two devices the system administrator needs to manage: the diskdrive and the CD-ROM.Volume manager provides access to both devices through the/vol/dev directory.In addition, volume manager creates links to the disk and CD-ROMdevices through various directories, as shown in Table 5-8.Table 5-8 Volume Manager Directories and LinksLink Description/vol/dev/diskette0 The directory providing block device access for the medium in floppy drive 0./vol/dev/rdiskette0 The directory providing character device access for the medium in floppy drive 0./vol/dev/aliases/floppy0 The symbolic link to the character device for the medium in floppy drive 0./dev/rdiskette The directory providing character device access for the medium in the primaryfloppy drive, usually drive 0./vol/dev/aliases/cdrom0 The directory providing character device access for the medium in the primaryCD-ROM drive./vol/dev/dsk/ The directory providing access to the CD-ROM buffered, or block, device./vol/dev/rdsk/ The directory providing access to the CD-ROM character, or raw, device./cdrom/cdrom0 The symbolic link to the buffered device for the medium in CD-ROM drive 0./floppy/floppy0 The symbolic link to the buffered device for the medium in floppy drive 0.Volume manager automatically mounts CD and disk file systems when removable mediacontaining recognizable file systems are inserted into the devices.The CD or disk filesystem is automatically mounted in the /vol/dev directories just described.The vold daemon is the workhorse behind volume manager.It is automatically started atstartup by the /etc/init.d/volmgt script.vold reads the /etc/vold.conf configuration file atstartup.The vold.conf file contains the volume manager configuration information used by07 2496 Ch05 8/30/00 1:10 PM Page 136136 CHAPTER 5 SOLARIS FILE SYSTEMS: ADVANCED TOPICSvold.This information includes the database to use, labels that are supported, devices to use,actions to take if certain media events occur, and the list of file systems that are unsafe toeject without unmounting.The vold.conf file looks like this:# @(#)vold.conf 1.21 96/05/10 SMI## Volume Daemon Configuration file## Database to use (must be first)db db_mem.so# Labels supportedlabel dos label_dos.so floppy rmscsi pcmemlabel cdrom label_cdrom.so cdromlabel sun label_sun.so floppy rmscsi pcmem# Devices to useuse cdrom drive /dev/rdsk/c*s2 dev_cdrom.so cdrom%duse floppy drive /dev/rdiskette[0-9] dev_floppy.so floppy%duse pcmem drive /dev/rdsk/c*s2 dev_pcmem.so pcmem%d forceload=true# use rmscsi drive /dev/rdsk/c*s2 dev_rmscsi.so rmscsi%d# Actionsinsert dev/diskette[0-9]/* user=root /usr/sbin/rmmountinsert dev/dsk/* user=root /usr/sbin/rmmounteject dev/diskette[0-9]/* user=root /usr/sbin/rmmounteject dev/dsk/* user=root /usr/sbin/rmmountnotify rdsk/* group=tty user=root /usr/lib/vold/volmissing -p# List of file system types unsafe to ejectunsafe ufs hsfs pcfsEach section in the vold.conf file is labeled as to its function.Of these sections, you cansafely modify the devices to use, which are described in Table 5-9, and actions, which aredescribed in Table 5-10.The Devices to use section describes the devices to be managed by vold.It has thefollowing syntax:use [ options ]Table 5-9 vold.conf Devices to UseParameter Field Descriptiondevice The type of removable media device to be used.Legal values are cdromand floppy.type The device s specific capabilities.The legal value is drive.07 2496 Ch05 8/30/00 1:10 PM Page 137VOLUME MANAGER 137Table 5-9 vold.conf Devices to Use (continued)Parameter Field Descriptionspecial Specifies the device or devices to be used.The path usually begins with /dev.shared_object The name of the program that manages this device.vold expects to find thisprogram in /usr/lib/vold.symname The symbolic name that refers to this device.The symname is placed in thedevice directory.options The user, group, and mode permissions for the medium inserted (optional).The special and symname parameters are related.If special contains any shell wildcard char-acters (that is, has one or more asterisks or question marks in it), symname must have a %d atits end.In this case, the devices that are found to match the regular expression are sortedand then numbered.The first device has a 0 filled in for the %d, the second device found hasa 1, and so on.If the special specification does not have any shell wildcard characters, the symname parametermust explicitly specify a number at its end.The Actions section specifies which program should be called if a particular event(action) occurs
[ Pobierz całość w formacie PDF ]