From: Karel Zak <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: "Theodore Ts'o" <tytso-3s7WtUTddSA@public.gmane.org>,
Kay Sievers <kay.sievers-tD+1rO4QERM@public.gmane.org>,
Scott James Remnant
<scott-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org>,
Andreas Dilger <adilger-xsfywfwIY+M@public.gmane.org>
Subject: libblkid merged into util-linux-ng
Date: Mon, 16 Feb 2009 13:09:38 +0100 [thread overview]
Message-ID: <20090216120938.GA3217@nb.net.home> (raw)
I've merged the topic/blkid branch into the master branch (upcoming
util-linux-ng 2.15).
Note that the library and blkid binary are still "experimental",
although I don't expect any API changes.
Feedback and bug reports are welcomed...
Karel
New libblkid features:
---------------------
* backwardly compatible ABI and API with old libblkid from e2fsprogs
* low-level probing interface:
- blkid_probe_* functions
- /sbin/blkid -p <device>
* vol_id compatible output format (e.g. "ID_FS_LABEL_ENC=\x2fboot"):
- blkid -p -o udev <device>
* very high-level interface for LABELs/UUIDs evaluation:
- blkid_evaluate_spec()
- /sbin/blkid -L <label> | -U <uuid>
it's strongly recommended to use this interface in your applications
or scripts. The interface is configurable (by /etc/blkid.conf) and
works on 2.4, 2.6, udev or non-udev systems.
It's always better to use /sbin/blkid -L|-U than directly read
/dev/disk/by-{label,uuid} symlinks.
* /etc/blkid.conf config file, options are:
EVALUATE=<method>[,<method>] # methods are udev and scan;
# default: udev,scan
SEND_UEVENT=<yes|not> # send uevent when disk/by-*
# symlink is not valid; default: yes
CACHE_FILE=<path> # default: /etc/blkid.tab
* 24 FS/raid images for blkid regression tests
TODO
----
e2fsprogs:
- add --disable-blkid
- #ifdef BUILD_BLKID for findfs code in tune2fs.c
- freeze <major>.<minor> libblkid version numbers, the libblkid in
e2fsprogs should be open for bug fixes or new filesystems only.
udev:
- add --disable-volumeid
- test blkid within udev rules
- add command line interface for blkid_probe_filter_usage():
# blkid -p -o udev --filter-usage filesystems
# blkid -p -o udev --filter-usage noraid
and blkid_probe_filter_types():
# blkid -p -o udev --filter-type nofat
note that "--filter-usage" is necessary for compatibility with vol_id where
we in udev rules use things like "vol_id --skip-raid"
- use blkid_evaluate_spec() in mount, umount, swapon and fsck
- move fsck to util-linux-ng (we already have some old patches
from Christoph Hellwig and Matthias Koenig)
- documentation (probably generated from source code)
--
Karel Zak <kzak-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-02-16 12:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-16 12:09 Karel Zak [this message]
2009-02-16 14:34 ` libblkid merged into util-linux-ng Christoph Hellwig
[not found] ` <20090216143452.GA7868-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
2009-02-18 10:59 ` Karel Zak
2009-02-18 15:08 ` Martin K. Petersen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090216120938.GA3217@nb.net.home \
--to=kzak-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=adilger-xsfywfwIY+M@public.gmane.org \
--cc=kay.sievers-tD+1rO4QERM@public.gmane.org \
--cc=linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=scott-GeWIH/nMZzLQT0dZR+AlfA@public.gmane.org \
--cc=tytso-3s7WtUTddSA@public.gmane.org \
--cc=util-linux-ng-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).