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

* Re: libblkid merged into util-linux-ng
  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>
  0 siblings, 1 reply; 4+ messages in thread
From: Christoph Hellwig @ 2009-02-16 14:34 UTC (permalink / raw)
  To: Karel Zak
  Cc: util-linux-ng, linux-fsdevel, Theodore Ts'o, Kay Sievers,
	Scott James Remnant, Andreas Dilger

On Mon, Feb 16, 2009 at 01:09:38PM +0100, Karel Zak wrote:
>  TODO
>  ----


 * add stripe size / alignment retrival support to libbkid for use
   with mkfs.  This would allow to deprecate libdisk from xfsprogs (1)
   in favour of a common libblkid

(1) http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=tree;f=libdisk;

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

* Re: libblkid merged into util-linux-ng
       [not found]   ` <20090216143452.GA7868-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
@ 2009-02-18 10:59     ` Karel Zak
  2009-02-18 15:08       ` Martin K. Petersen
  0 siblings, 1 reply; 4+ messages in thread
From: Karel Zak @ 2009-02-18 10:59 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: util-linux-ng-u79uwXL29TY76Z2rM5mHXA,
	linux-fsdevel-u79uwXL29TY76Z2rM5mHXA, Theodore Ts'o,
	Kay Sievers, Scott James Remnant, Andreas Dilger

On Mon, Feb 16, 2009 at 09:34:52AM -0500, Christoph Hellwig wrote:
> On Mon, Feb 16, 2009 at 01:09:38PM +0100, Karel Zak wrote:
> >  TODO
> >  ----
>  * add stripe size / alignment retrival support to libbkid for use
>    with mkfs.  This would allow to deprecate libdisk from xfsprogs (1)
>    in favour of a common libblkid

 Added to TODO.

> (1) http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=tree;f=libdisk;

 That would be nice to have something better than exec(/sbin/dmsetup)
 in shared library. It seems that DM developers have no clue about
 /sys/block :-(

    Karel

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

* Re: libblkid merged into util-linux-ng
  2009-02-18 10:59     ` Karel Zak
@ 2009-02-18 15:08       ` Martin K. Petersen
  0 siblings, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2009-02-18 15:08 UTC (permalink / raw)
  To: Karel Zak
  Cc: Christoph Hellwig, util-linux-ng, linux-fsdevel,
	Theodore Ts'o, Kay Sievers, Scott James Remnant,
	Andreas Dilger

>>>>> "Karel" == Karel Zak <kzak@redhat.com> writes:

Karel> On Mon, Feb 16, 2009 at 09:34:52AM -0500, Christoph Hellwig wrote:
>> On Mon, Feb 16, 2009 at 01:09:38PM +0100, Karel Zak wrote:
>> >  TODO ----
>> * add stripe size / alignment retrival support to libbkid for use
>> with mkfs.  This would allow to deprecate libdisk from xfsprogs (1)
>> in favour of a common libblkid

Karel>  Added to TODO.

My I/O topology patches are finally shaping up and I expect to post them
later this week.  Turned out to be much, much harder than expected to
get it right for the various RAID modes.

My patches will give us alignment and minimum/optimal/maximum I/O sizes
for each block device in sysfs.


>> (1)
>>     http://git.kernel.org/?p=fs/xfs/xfsprogs-dev.git;a=tree;f=libdisk;

Karel>  That would be nice to have something better than
Karel>  exec(/sbin/dmsetup) in shared library. It seems that DM
Karel>  developers have no clue about /sys/block :-(

When the LVM stripe extraction code was originally written I was
explicitly asked to call the lvm commands instead of poking around with
liblvm and internal data structures.  The command output was considered
part of the API.

That in turn spilled over to DM, I guess...

-- 
Martin K. Petersen	Oracle Linux Engineering


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