Fork of e2fsprogs with inode table reallocator
 
 
 
 
 
 
Go to file
Karel Zak 4db2f59a71 Add device-mapper support to the blkid library
On systems where is multi-path storage device is problem with duplicated
filesystems. The solution is select "the best" device. This is possible
by device-mapper library.

Short quotation from RH bugzilla:

With my patch, all dm devices remains in libblkid cache.

Only the top level dm devices are given high priority
and more appropriate node names (i.e. /dev/mapper/*) are used.

For example, if we have linear mapped dm device "ov1" over
dm device "disk1p3" which is multipath mapped to /dev/sdd3 and /dev/sdh3:
  # dmsetup.static ls --tree
  ov1 (253:5) <-- /dev/mapper/ov1 or /dev/dm-5
   `-disk1p3 (253:4) <-- /dev/mapper/disk1p3 or /dev/dm-4
      `-disk1 (253:0)
         |- (8:112) <-- /dev/sdh
         `- (8:48) <-- /dev/sdd

Original version of blkid will show:
  # ./orig/blkid -t LABEL=mpdisk1p3 -l
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"

With my patch, blkid will show:
  # ./deptree/blkid -t LABEL=mpdisk1p3 -l
  /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3"

In blkid cache, all devices are listed:

  # ./orig/blkid -t LABEL=mpdisk1p3
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-5: LABEL="mpdisk1p3" ... TYPE="ext3"

  # ./deptree/blkid -t LABEL=mpdisk1p3
  /dev/mapper/ov1: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdd3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/sdh3: LABEL="mpdisk1p3" ... TYPE="ext3"
  /dev/dm-4: LABEL="mpdisk1p3" ... TYPE="ext3"

For more details see discussion on:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=156324

Addresses Red Hat Bug: #156324

Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-03-08 14:17:28 -05:00
config Make the helper scripts in the config directory executable. 2005-07-19 14:30:48 -05:00
contrib Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
debian Update debian changelog for release. 2006-01-06 21:41:49 -05:00
debugfs Fix various gcc -Wall complaints. 2005-12-10 21:50:30 -05:00
doc Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
e2fsck Add a config option which controls whether fs checks are skipped when on battery 2006-01-29 05:15:36 -05:00
ext2ed Fix bogus spaces before '!' and '?' characters in unused programs. 2005-12-09 19:16:40 -05:00
include/nonunix Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
install-utils Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
intl Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
lib Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
misc Clarify chattr man page to make sure people realize limitations in the kernel 2005-12-31 01:04:40 -05:00
po Update Swedish translation 2006-02-20 14:16:21 -05:00
resize Clean up gcc -Wall complaints in resize2fs 2005-12-29 15:44:45 -05:00
tests Add E2FSCK_CONFIG environment variable 2005-12-31 16:21:00 -05:00
util Fix cross-compilation problems when CFLAGS contain target-specific options 2005-11-09 18:37:07 -04:00
.fix-Changelog Update files for 1.31 release. 2002-11-08 20:08:48 -05:00
.head-Changelog Many files: 1997-04-29 14:51:31 +00:00
.hgignore Ignore quilt work files 2005-07-19 08:41:27 -05:00
.hgtags Added tag E2FSPROGS-1.39-WIP-1231 for changeset b3e5c52c10907a4488ded00fca596487643bddc4 2006-01-06 21:02:34 -05:00
.missing-copyright Many files: 1997-04-29 16:15:03 +00:00
.release-checklist Update for 1.34 release. 2003-07-26 01:03:34 -04:00
ABOUT-NLS Update to gettext 0.11.5. We now enable NLS support by default. 2003-05-03 16:35:17 -04:00
COPYING Clarified that the lib/uuid directory is under a BSD-style and 2004-04-12 13:19:21 -04:00
ChangeLog Fix cross-compilation problems when CFLAGS contain target-specific options 2005-11-09 18:37:07 -04:00
INSTALL Remove the a.out DLL support, since it's been obsolete and unmaintained 2004-11-19 17:06:47 -05:00
INSTALL.elfbin ChangeLog, INSTALL.elfbin: 1999-01-02 04:15:29 +00:00
MCONFIG.in Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
Makefile.in Add install-strip and install-shlibs-strip targets 2004-12-15 11:28:55 -05:00
README Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
README.subset Update for 1.33 release. 2003-04-21 16:17:09 -04:00
RELEASE-NOTES Update release notes 2005-12-31 16:45:29 -05:00
SHLIBS Many files: 1997-04-29 16:15:03 +00:00
SUBMITTING-PATCHES Added SUBMITTING-PATCHES file 2005-07-05 22:30:13 -05:00
TODO Don't offer to update or clone the resize inode when e2fsck deals with 2005-04-14 17:10:14 -04:00
aclocal.m4 Update to use gettext 0.14.1 and autoconf 2.50+ 2004-11-30 19:00:19 -05:00
configure Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
configure.in Add device-mapper support to the blkid library 2006-03-08 14:17:28 -05:00
depfix.sed ChangeLog, depfix.sed: 1999-07-19 15:48:08 +00:00
e2fsprogs.lsm Update for e2fsprogs 1.38 release. 2005-06-30 20:06:45 -04:00
e2fsprogs.spec.in Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00
version.h Update version file for 1.39-WIP-1231 release. 2005-12-31 16:46:46 -05:00
wordwrap.pl ChangeLog, wordwrap.pl: 2001-06-01 23:49:46 +00:00

README

	This is the new version (1.38) of the second extended file
system management programs.

	From time to time, I release new versions of e2fsprogs, to fix
bugs and to make the utilities more robust.  You can always find
information about the latest version at the the e2fsprogs web page,
which is:

	http://e2fsprogs.sourceforge.net

	The INSTALL file has instructions on building and installing
e2fsprogs.  Provisions for building Red Hat RPMs and Debian dpkg files
are supplied as well.

	In case of bugs in these programs, please contact Ted Ts'o at
tytso@thunk.org or tytso@alum.mit.edu.  See the e2fsck man page for
suggestions of what sort of information to include when submitting bug
reports for these programs.