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
        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:
- 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.

- 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.

- 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.

- Turn devfsd off by default.

Device nodes can now be dynamically created and removed from a device file

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 \
cvs rdiff -r1.1.8.1 -r1.1.8.2 src/sbin/devfsd/devfsd_dev.c \
cvs rdiff -r1.1.6.1 -r1.1.6.2 src/sbin/mount_devfs/mount_devfs.8 \
cvs rdiff -r1.1.6.1 -r1.1.6.2 src/sys/dev/dctl/dctl.c src/sys/dev/dctl/dctl.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