mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-24 02:25:03 +08:00
1e3f5c889d
The EXT2_GETVERSION ioctl is defined to take a "long" parameter, but fgetversion() calls ioctl() with an "int" parameter instead. This is handled in the kernel correctly, but the generation is sign-extended in fgetversion() before return on 64-bit systems and lsattr prints it as a huge positive number for inode generation above 0x80000000: 1635574212 -------------e-- /mnt/ost0/O/0/d0/12928 18446744073045131735 -------------e-- /mnt/ost0/O/0/d0/166240 782808861 -------------e-- /mnt/ost0/O/0/d0/31744 18446744072181134840 -------------e-- /mnt/ost0/O/0/d0/135008 Correctly assign the returned generation number as an unsigned value, and print it with a 10-character field width. The version is printed left-aligned for consistency with the old code and to ensure it is always printed in the first column for use with tools like "cut": 1635574212 -------------e-- /mnt/ost0/O/0/d0/12928 3630547415 -------------e-- /mnt/ost0/O/0/d0/166240 782808861 -------------e-- /mnt/ost0/O/0/d0/31744 2766550520 -------------e-- /mnt/ost0/O/0/d0/135008 Do not return a random value from the stack as the version on error. Clean up some style issues and consolidate some duplicate code. Signed-off-by: Andreas Dilger <adilger@dilger.ca> Signed-off-by: Theodore Ts'o <tytso@mit.edu> |
||
---|---|---|
config | ||
contrib | ||
debian | ||
debugfs | ||
doc | ||
e2fsck | ||
ext2ed | ||
include/nonunix | ||
install-utils | ||
intl | ||
lib | ||
misc | ||
po | ||
resize | ||
tests | ||
util | ||
.gitignore | ||
.hgignore | ||
.missing-copyright | ||
.release-checklist | ||
ABOUT-NLS | ||
acinclude.m4 | ||
aclocal.m4 | ||
configure | ||
configure.in | ||
COPYING | ||
depfix.sed | ||
e2fsprogs.lsm | ||
e2fsprogs.spec.in | ||
INSTALL | ||
INSTALL.elfbin | ||
Makefile.in | ||
MCONFIG.in | ||
README | ||
README.subset | ||
RELEASE-NOTES | ||
SHLIBS | ||
SUBMITTING-PATCHES | ||
TODO | ||
version.h | ||
wordwrap.pl |
This is the new version (1.42.13) 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.