Fork of e2fsprogs with inode table reallocator
 
 
 
 
 
 
Go to file
Jan Kara 70f4632b62 libext2fs: provide functions to safely access name_len and file_type
Accessing name_len (and file_type) in ext4_dir_entry structure is
somewhat problematic because on big endian architecture we need to now
whether we are really dealing with ext4_dir_entry (which has u16
name_len which needs byte swapping) or ext4_dir_entry_2 (which has u8
name_len which must not be byte swapped).

Currently the code is somewhat surprising and name_len is always
treated as u16 and byte swapped (flag EXT2_DIRBLOCK_V2_STRUCT isn't
ever used) and then masking of name_len is used to access real
name_len or file_type. Doing things this way in applications using
libext2fs is unexpected to say the least (more natural is to type
struct ext4_dir_entry * to struct ext4_dir_entry_2 * but that gives
wrong results on big endian architectures. So provide helper functions
that give endian-safe access to these fields. Also convert users in
e2fsprogs to use these functions.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2013-06-08 17:03:05 -04:00
config build: quiet build warnings for "gcc -Wall" 2013-01-27 22:29:01 -05:00
contrib contrib: add missing '-p' to fallocate's usage message 2013-01-24 23:27:30 -05:00
debian Merge branch 'maint' into next 2013-05-19 21:45:16 -04:00
debugfs libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
doc Clean up texinfo files 2013-01-02 10:06:09 -05:00
e2fsck libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
ext2ed Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
include/nonunix Remove trailing whitespace for the entire source tree 2008-08-27 23:07:54 -04:00
install-utils Remove Changelog files since they're not used after the git migration 2007-07-08 08:50:41 -04:00
intl Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
lib libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
misc libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
po po: update de.po (from translationproject.org) 2013-01-27 22:44:56 -05:00
resize libext2fs: provide functions to safely access name_len and file_type 2013-06-08 17:03:05 -04:00
tests Merge branch 'maint' 2013-06-08 17:02:54 -04:00
util util: respect HAVE_MALLOC_H 2012-08-19 17:57:17 -04:00
.gitignore build: add generated files to .gitignore 2012-07-14 19:43:39 -04:00
.hgignore Ignore quilt work files 2005-07-19 08:41:27 -05:00
.missing-copyright Many files: 1997-04-29 16:15:03 +00:00
.release-checklist Update release checklist to include reminder to update translation 2008-07-10 17:25:22 -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 Clarify the copyright licenses used by the various libraries in COPYING 2007-06-23 01:04:53 -04:00
INSTALL Add a comment in INSTALL regarding --disable-tls on older systems 2008-07-10 09:08:44 -04:00
INSTALL.elfbin ChangeLog, INSTALL.elfbin: 1999-01-02 04:15:29 +00:00
MCONFIG.in Fix blhc (Build Log Hardening Check) warnings 2012-06-13 16:06:44 -04:00
Makefile.in Fix parallel (make -j) build 2012-05-11 22:13:29 -04:00
README Update changelogs for 1.42.7 release 2013-01-01 17:17:14 -05:00
README.subset Update release notes, version files for 1.40.4 release 2008-01-01 00:35:17 -05:00
RELEASE-NOTES Merge branch 'maint' into next 2013-01-21 22:06:16 -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 Update TODO to remove item which is already completed. 2006-05-13 09:28:04 -04:00
aclocal.m4 Enhance build system so that "make V=1" works like the Linux Kernel 2009-07-02 18:19:10 -04:00
configure Merge branch 'maint' into next 2013-05-16 11:05:37 -04:00
configure.in Merge branch 'maint' into next 2013-03-13 16:17:34 -04:00
depfix.sed Update Release Notes, Changelogs, version.h, etc. for 1.42 release 2011-11-29 16:48:14 -05:00
e2fsprogs.lsm Update Release Notes, Changelogs, version.h, for final 1.42.7 release 2013-01-21 22:03:18 -05:00
e2fsprogs.spec.in misc: clean up compiler warnings 2011-06-11 10:58:25 -04:00
version.h Merge branch 'maint' into next 2013-01-21 22:06:16 -05:00
wordwrap.pl Fix wordwrap.pl so it is more portable 2012-09-21 12:50:04 -04:00

README

	This is the new version (1.42.7) 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@mit.edu 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.