Home | History | Annotate | only in /src/sbin/devpubd
History log of /src/sbin/devpubd
RevisionDateAuthorComments
 1.5 15-Feb-2015  christos let's make this compile again.
 1.4 11-Aug-2013  dholland branches: 1.4.4;
These pass WARNS=5, so don't set WARNS=4
 1.3 11-Jan-2013  mlelstv Provide a script for devpubd(8) that creates symlinks for each dk(4)
device under /dev/wedges so that you can access them by name.
 1.2 06-Sep-2011  riz branches: 1.2.2; 1.2.8;
Build and install the skeleton manpage for devpubd - it's better than
nothing.
 1.1 29-Aug-2011  mrg add the device publish daemon, written by jmcneill@.

listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
- manual page
- rc.d script
- more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
 1.2.8.2 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.8.1 25-Feb-2013  tls resync with head
 1.2.2.2 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.2.2.1 23-Jan-2013  yamt sync with head
 1.4.4.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.4 05-Aug-2021  kre Expunge bogus (implementation defined / unspecified) uses of $@ in
scripts. $@ is unspecified except when used in a place where
field splitting can occur (which is never in an assignment),
X=$@ (with or without double quotes) is simply wrong.

Use $* instead of $@ in such places, or as here, simply change
the way things are done (very very slightly) and DTRT.
 1.3 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.2 04-Dec-2011  jmcneill branches: 1.2.18;
exit 0 on success
 1.1 29-Aug-2011  mrg branches: 1.1.2;
add the device publish daemon, written by jmcneill@.

listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
- manual page
- rc.d script
- more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
 1.1.2.1 17-Apr-2012  yamt sync with head
 1.2.18.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.7 24-Feb-2020  wiz New sentence, new line. Bump date for previous.
 1.6 24-Feb-2020  mlelstv Add one-shot mode.
 1.5 11-Sep-2016  sevan branches: 1.5.14;
Document the version devpubd first appeared.
Bump date.
 1.4 12-Jan-2013  wiz Bump date for previous.
 1.3 11-Jan-2013  mlelstv Provide a script for devpubd(8) that creates symlinks for each dk(4)
device under /dev/wedges so that you can access them by name.
 1.2 22-Nov-2012  reed Add some details about the hook scripts.
 1.1 29-Aug-2011  wiz branches: 1.1.2; 1.1.8;
Add minimal devpubd man page, not hooked into the build yet.

XXX: someone should write drvctl(4)
 1.1.8.1 25-Feb-2013  tls resync with head
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 16-Jan-2013  yamt sync with (a bit old) head
 1.5.14.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.7 21-Jun-2021  christos fix proplib deprecation
 1.6 24-Feb-2020  mlelstv Add one-shot mode.
 1.5 06-Feb-2020  kamil Stop including unused header <sys/poll.h>
 1.4 15-Feb-2015  christos branches: 1.4.16;
let's make this compile again.
 1.3 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.2 16-Sep-2011  joerg branches: 1.2.20;
Use __dead. Save a pointer.
 1.1 29-Aug-2011  mrg add the device publish daemon, written by jmcneill@.

listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
- manual page
- rc.d script
- more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
 1.2.20.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.4.16.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.3 05-Aug-2021  kre Expunge bogus (implementation defined / unspecified) uses of $@ in
scripts. $@ is unspecified except when used in a place where
field splitting can occur (which is never in an assignment),
X=$@ (with or without double quotes) is simply wrong.

Use $* instead of $@ in such places, or as here, simply change
the way things are done (very very slightly) and DTRT.
 1.2 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.1 29-Aug-2011  mrg branches: 1.1.20;
add the device publish daemon, written by jmcneill@.

listens on drvctl for new devices and invokes MAKEDEV for them.

missing:
- manual page
- rc.d script
- more testing

but it works well enough to make new disk nodes appear in /dev when
netbsd sees them and they're missing. you will need to make sure
you have a new /dev/MAKEDEV for this to work properly (postinstall
should handle this normally, of course.)


thanks jared!
 1.1.20.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.8 08-Aug-2021  martin Fix obvious editor mishap in previous
 1.7 05-Aug-2021  kre Obliterate bogus $@ usage.

While here, fix some quoting, change some style, and attempt
to properly handle wedge names with embedded newlines, and those
that end with a '/' character (not particularly happy with the
solution to that last one, but it is better than it was).

Is there a reason that characters that need encoding in wedge names
(white space, and more) are encoded as %%XX (XX is the hex value of
the char - but 2 % chars? Why?). That remains unchanged, but as
the script already relied upon sh's $'...' quoting, I think we can rely
upon printf as well, so replace the old (very elegant, but slow) encoding
function with a much simpler one (does the same thing).
 1.6 09-Jan-2021  mlelstv Also replace calls to dirname.
 1.5 09-Jan-2021  mlelstv Remove need for awk/sed/readlink tools.
 1.4 15-Aug-2016  mlelstv Avoid error message when /dev/wedges doesn't exist yet.
 1.3 01-Mar-2015  mlelstv safely update existing wedge links
 1.2 15-Feb-2015  jmcneill At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.

Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
 1.1 11-Jan-2013  mlelstv branches: 1.1.2; 1.1.6; 1.1.12;
Provide a script for devpubd(8) that creates symlinks for each dk(4)
device under /dev/wedges so that you can access them by name.
 1.1.12.2 07-Mar-2015  snj Pull up following revision(s) (requested by mlelstv in ticket #561):
sbin/devpubd/hooks/02-wedgenames: revision 1.3
safely update existing wedge links
 1.1.12.1 17-Feb-2015  martin Pull up following revision(s) (requested by jmcneill in ticket #525):
sbin/devpubd/hooks/01-makedev: revision 1.2
sbin/devpubd/devpubd-run-hooks.in: revision 1.3
sbin/devpubd/Makefile: revision 1.5
sbin/devpubd/hooks/02-wedgenames: revision 1.2
sbin/devpubd/devpubd.c: revision 1.3
sbin/devpubd/devpubd.c: revision 1.4
At startup, instead of doing run-hooks for each device, call run-hooks
once with a list of all found devices. This lets us batch calls to MAKEDEV
which results in a noticeable improvement in Raspberry Pi boot time.
Run the initial device enumeration hooks before detaching from the foreground,
ensuring that any required devices have been created before the rc.d script
exits.
let's make this compile again.
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 11-Jan-2013  tls file 02-wedgenames was added on branch tls-maxphys on 2013-02-25 00:28:04 +0000
 1.1.2.2 23-Jan-2013  yamt sync with head
 1.1.2.1 11-Jan-2013  yamt file 02-wedgenames was added on branch yamt-pagecache on 2013-01-23 00:05:28 +0000

RSS XML Feed