tmpfiles: support globbing for w option
authorDave Reisner <dreisner@archlinux.org>
Mon, 3 Sep 2012 21:13:18 +0000 (17:13 -0400)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Sep 2012 06:46:03 +0000 (08:46 +0200)
commitd4e9eb91ea12e11bff7d8c6265b067a20ccf37b8
treec9cb327e0a5aead60c950acec60ea3994f029945
parent1b2ac6b3116877068570f1d8da5e0a83a0acf7ad
tmpfiles: support globbing for w option

Break out the write logic into a separate function and simply use it as
a callback to glob_item.

This allows users to consolidate writes to sysfs with multiple similar
pathnames, e.g.

  w /sys/class/block/sd[a-z]/queue/read_ahead_kb - - - - 1024
man/tmpfiles.d.xml
src/tmpfiles/tmpfiles.c