Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [mjf-devfs2] src
Module Name: src
Committed By: mjf
Date: Thu Mar 20 12:26:12 UTC 2008
Modified Files:
src/etc/defaults [mjf-devfs2]: rc.conf
src/sbin/devfsd [mjf-devfs2]: devfsd.c devfsd.h devfsd_dev.c
devfsd_rule.c
src/sbin/mount_devfs [mjf-devfs2]: mount_devfs.8 mount_devfs.c
src/sys/dev/dctl [mjf-devfs2]: dctl.c dctl.h dctlio.h
Log Message:
dctl:
- Make dctl see aware of device driver names being added and removed so
that it can signal devfsd(8), which in turn will request device node
creation of deletion from a particular devfs mount.
- Each device that registers the need for a device node also passes on
some info about what sort of device they are. We now package this up
in the dctl messaging framework to let devfsd(8) know.
- Use a dev_t for the cookie for each device that dctl(4) knows about. This
was changed from a device_t because some devices (zero(4)) don't have
corresponding device_t's.
- dctl mount functions have grown a visibility argument which specifies
the default visibility for that mount.
- Since we want to get information about devices (for matching against
rules) through ioctl calls to match against rules, but for userland
to ioctl they need device nodes, dctl provides an "inner" ioctl function
that calls the ioctl function of the device driver directly.
devfsd:
- Run in the background.
- Convert all output to use syslog(3).
- When devices are removed request the corresponding device node be
removed from every devfs mount.
- Start using the dctl "innerioctl" facility to get information about
devices which will be useful for matching. We're only handling disk
devices, and can only grok information about a partition's file system
type at the moment.
- Fix code that handles rules that specify filenames.
- Specifying visibility for device nodes now works.
mount_devfs:
- Catch up with devfs changes. Provide an -f option which means that the
devfs can only be unmounted it if it forced.
- Provide -i option to specify that the default visibility for a mount
should be invisible. This means device nodes are not visible in the
devfs mount by default, rather they must have a rule for devfsd that
specifies that they should be visible.
- Provide -v option that specifies a devfs mount should be visible.
This is the default.
- Update man page to reflect these changes.
etc/defaults/rc.conf:
- Turn devfsd off by default.
Device nodes can now be dynamically created and removed from a device file
system.
To generate a diff of this commit:
cvs rdiff -r1.90.10.1 -r1.90.10.2 src/etc/defaults/rc.conf
cvs rdiff -r1.1.8.2 -r1.1.8.3 src/sbin/devfsd/devfsd.c \
src/sbin/devfsd/devfsd.h
cvs rdiff -r1.1.8.1 -r1.1.8.2 src/sbin/devfsd/devfsd_dev.c \
src/sbin/devfsd/devfsd_rule.c
cvs rdiff -r1.1.6.1 -r1.1.6.2 src/sbin/mount_devfs/mount_devfs.8 \
src/sbin/mount_devfs/mount_devfs.c
cvs rdiff -r1.1.6.1 -r1.1.6.2 src/sys/dev/dctl/dctl.c src/sys/dev/dctl/dctl.h \
src/sys/dev/dctl/dctlio.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index