linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libblkid merged into util-linux-ng
@ 2009-02-16 12:09 Karel Zak
  2009-02-16 14:34 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Karel Zak @ 2009-02-16 12:09 UTC (permalink / raw)
  To: util-linux-ng-u79uwXL29TY76Z2rM5mHXA,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA
  Cc: Theodore Ts'o, Kay Sievers, Scott James Remnant,
	Andreas Dilger


 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-02-18 15:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-16 12:09 libblkid merged into util-linux-ng Karel Zak
2009-02-16 14:34 ` 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

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