From: Karel Zak Date: Wed, 14 Jan 2009 15:37:46 +0000 (+0100) Subject: blkid: refresh TODO file X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=523e65d4b6538cdad912e59f9c95c0791233b5d7;p=util-linux blkid: refresh TODO file ... some nice ideas from brainstorming with Ted, Kay and Scott. Signed-off-by: Karel Zak --- diff --git a/libs/blkid/TODO b/libs/blkid/TODO index a616e48b..94e5e6e1 100644 --- a/libs/blkid/TODO +++ b/libs/blkid/TODO @@ -1,4 +1,7 @@ + TODO + ---- + - do we really need to depend on libuuid? Maybe the default should be use in-tree code rather and link against libuuid -- especially when we need it for uuid_unparse() only. @@ -19,3 +22,39 @@ - add regression tests: - add to tests/input/blkid/ FS images - create ts-blkid-fs to tests FS detection + + - create a new simple API for LABEL/UUID evaluation: + + blkid_eval_spec() + blkid_eval_uuid() + blkid_eval_spec() (spec: =) + + this API has to follow the EVALUATE= blkid.conf option (see below). + + - create a new config file /etc/blkid.conf; options: + + * EVALUATE=[,] + + where the method is "udev" and/or "scan". Default: "udev,scan". + + * CACHE_FILE= + + where the is path to the blkid.tab cache file. Default: + /etc/blkid.tab. + + * SEND_UEVENTS= + + write to /sys/block/..../uevent when we found that /dev/disk-by/* + links are not valid (when EVALUATE=udev). + + - modify /sbin/blkid code to use blkid_eval_..() API for "-t LABEL|UUID" option. + + Brainstorming + ------------- + + - try to write inotify based blkid-daemon that watch block devices and update + blkid cache and inform udev (by uevents) when a new LABEL/UUID/FS is + detected. + + The daemon should be also useful during system start-up for massive parallel + devices scanning.