aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-01-03debugfs: Change lsdel to use ext2fs_block_iterate2 it can find large filesTheodore Ts'o
Addresses-Sourceforge-Feature-Request: #1257500 Addresses-Sourceforge-Support-Request: #1253511 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-03Use pkg-config to determine where to find the devmapper libraryTheodore Ts'o
Fedora and Red Hat puts the devmapper library in different locations compared to Debian, so we use pkg-config. Unfortunately Debian's devmapper.pc file is buggy (See Debian Bug #390243), so we have to work around it. Historically, e2fsprogs has tried not to depend on pkg-config, since its answers are so often **wrong** (the Debian bug has been ignored for over a year), so I'm hoping I'm not going to regret this. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Fix Makefile race so that "make -j3 distclean" works correctlyTheodore Ts'o
With this fix, "dpkg-buildpackage -j3" should work w/o problems for the e2fsprogs package. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Fix profile, checker, and shared-library building on non-Linux platformsTheodore Ts'o
Approximately two years ago a revamp of the e2fsprogs build infrastructure broke the Makefile fragments for building BSD, Solaris, and Darwin shared libraries, as well as profiling and checker libraries. Apparently no one had noticed except for pierre42@users.sourceforge.net. Addresses-Sourceforge-Bug: #1819034 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01debian: use '$(MAKE)' instead of 'make' in debian/rulesTheodore Ts'o
This change allows a parallel build (i.e., via dpkg-buildpackage -j3) of e2fsprogs to work correctly. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Add the Meta directory to the .gitignore fileTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Fix build failure on non-Linux/non-Hurd/non-Masix systemsTheodore Ts'o
The previous fix didn't quite work, but this one should! Addresses-Sourceforge-Bug: #1861633 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01debugfs: allow the undel command reallocate without linking the inodeTheodore Ts'o
When recovering a large number of deleted files, linking the undeleted inodes to directories may require a directory to be expanded. This could allocate a block that that had been used by one of the yet-to-be-undeleted files. So the 'undel' command been enhanced to allow the destination pathname to be optional. This will allow the cautious user to undelete all of the inodes without specifying a destination pathname, and then either use debugfs's link command to add hard links, or use e2fsck to link all of the recovered files to the lost+found directory. Addresses-Sourceforge-Feature-Request: #967141 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01e2fsck: When optimizing non-htree directories, sort by inode numberTheodore Ts'o
Previously "e2fsck -fD" on a non-htree directory would sort the directory alphabetically by name. That's stupid. Better to sort the directory by inode number, since that will optimize performance much more significantly than sorting by name! Addresses-Sourceforge-Feature-Request: #532439 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01e2image: If there is an error while writing a block, call exit(1)Theodore Ts'o
If the disk fills while e2image is writing its output file, it will spew a large number of error messages instead of exiting with a non-zero status code after the first failure. Addresses-Sourceforge-Feature-Request: #606508 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01debugfs: Add #include <string.h> to pick up prototype for strcasecmpTheodore Ts'o
Addresses-Sourceforge-Patch: #1861659 Reported-by: Mike Frysinger <vapier@users.sourceforge.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01uuidd: Add _GNU_SOURCE #define to pick up setres[ug]id() prototypesTheodore Ts'o
Addresses-Sourceforge-Patch: #1861663 Reported-by: Mike Frysinger <vapier@users.sourceforge.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01debian: Fix all postinst/prerm/postrm scripts to include debhelper additionsTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01libss: Remove unnecessary Makefile dependency for test_ssTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Update release notes, version files for 1.40.4 releaseTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Expand discussion of the -D option in e2fsck's man pageTheodore Ts'o
Add an explanation of how e2fsck might decide to optimize a few directories even without the -D option being specified. Addresses-Debian-Bug: #441872 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31debian: Fix the document ID in comerr_dev.doc-baseTheodore Ts'o
The old document ID, com_err, used an illegal character ('_'); change it to be comerr-manual to be conformant with the doc-base requirements. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Update dependencies in lib/uuid/Makefile.inTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31debian: Use useradd and groupadd in favor of adduserTheodore Ts'o
The adduser package is 'important', and while it is often installed, we can't guarantee that it will always be there. A required package, or a package which is dragged in by a required package, such as libuuid1, shouldn't depend on an 'important' package since that would implicitly make it be required, which shouldn't be done unless absolutely necesary. So we replace the call to adduser with the lower-level useradd and groupadd programs. They are part of the passwd package, which is required to be on all Debian systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31debian: build the e2fsck-static package so it works on 2.4 kernelsTheodore Ts'o
Some people are still running ancient Debian distributions, such as woody, with a 2.4 kernel, and they want to be able to use the e2fsck-static package on backlevel systems. It turns out that we can't just statically link against glibc anymore, since glibc now uses thread-local storage everywhere. So we now build e2fsck-static using dietlibc. Addresses-Debian-Bug: #458017 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Fix build error in blkid/tst_types.c when using diet libcTheodore Ts'o
When compiling with diet libc, <sys/types.h> must be included in order to define the types used in asm/types.h. Strange choice, but workable. This doesn't cause much problems for e2fsprogs except blkid/tst_types.h, which needed a #include of <sys/types.h>. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Test for sys/syscall.h in configure to fix dietlibc build problemTheodore Ts'o
When compiling with dietlibc, sys/syscall.h isn't supported; as of dietlibc 0.30, it exists but it references a non-existent asm/unistd.h header file. So we have to test for its existence and avoid using it in lib/uuid/gen_uuid.c if it is not supported. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31debian: Do not use TLS or uuidd when building the bootfloppy udeb'sTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Add --disable-uuidd configure optionTheodore Ts'o
Add a configure option which causes the uuidd helper daemon not to be built or used by the uuid library. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Add --disable-tls configure optionTheodore Ts'o
Add option to forcibly disable the use of thread local storage Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-31Fix build failure on non-Linux/non-Hurd/non-Masix systemsTheodore Ts'o
inode_uid() and inode_gid() weren't getting defined on systems that were not Linux, Hurd, or Masix. Addresses-Sourceforge-Bug: #1859778 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-27Convert use of ext2fs_get_mem to ext2fs_get_array for overflow detectionTheodore Ts'o
Add some additional checks, primarily in resize2fs and in the rarely used (and soon to-be-deprecated) e2fsck byte-swap filesystem function. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-25Update Vietnamese translation from the Translation ProjectTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-25uuidd: Avoid race conditions to that only one uuidd is startedTheodore Ts'o
Use an improved locking protocol based on the pid file to assure that only one uuidd is started. Apparently the kernel does not prevent multiple processes from racing to bind to a Unix domain socket. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-21libuuid: Fix bug which caused uuidd to fail if sizeof(int) != sizeof(int *)Theodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17Add #define needed for Hurd ioctl definitionsTheodore Ts'o
Addresses-Debian-Bug: #437720 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17debian: Add a dependency on libuuid1 to the uuid-runtime packageTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17libuuid: Only try to start the uuidd daemon a limited number of timesTheodore Ts'o
If we fail to create the uuidd daemon after 5 or 6 tries, another 10,000 tries probably won't be successful. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17libuuid: When starting uuidd, use waitpid() to reap the zombie processTheodore Ts'o
The uuidd process will fork and let the parent process exit to create the daemon. So use waitpid to reap the zombie, as well as using it to time when it is safe to try to connect to the daemon. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-17uuidd: Use /var/lib/libuuid instead of /var/run/uuiddTheodore Ts'o
/var/run can get completely removed at reboot, and uuidd doesn't have permissions to recreate /var/run/uuidd. So instead use /var/lib/libuuidd for the unix domain socket and pid files. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-16Add uuidd daemon to prevent duplicate time-based UUID'sTheodore Ts'o
Also store the clock sequence information in a state file in /var/lib/misc/uuid-clock so that if the time goes backwards the clock sequence counter can get bumped. This allows us to completely correctly generate time-based (version 1) UUID's according to the algorithm specified RFC 4122. Addresses-Sourceforge-Bug: #1529672 Addresses-Red-Hat-Bugzilla: #233471 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-16fsck: '#' is only a comment character at the beginning of an fstab lineTheodore Ts'o
Fuse and ssh fstab lines such as: wdfs#https://dav.hoster.com/foo/bar /mnt/hoster fuse user,noauto 0 0 will cause fsck to issue warnings about invalid fstab lines, because fsck was previously treating '#' as a comment when it appeared anywhere in an fstab line, not just at the beginning of the line. Addresses-Gentoo-bug: #195405 Addresses-Sourceforge-bug: #1826147 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-16blkid: Output non-printing characters using ^ and M- notationTheodore Ts'o
When printing the value of tags in a formatted format, print control characters and characters with the high eight bit set using the ^ and M- notation, respectively. This prevents a filesystem with a garbage label from potentially screwing up the user's screen (for example, putting it into graphical mode). Addresses-Ubuntu-Bug: #78087 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Remove Rwandan translationTheodore Ts'o
Upon the advice of Benno Schulenberg; the translation had already been removed on the Translation Project site. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Update Dutch and Polish translations from the Translation ProjectTheodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15libcom_err: Fix sign-extension problem on 64-bit systems in error_message()Theodore Ts'o
On 64-bit systems (or anything with sizeof(long) > sizeof(int)), we sometimes get error codes passed to error_message which have been cast from an (int) to an (unsigned int). This almost always happens if you're using libgssapi_krb5, which returns an error code which is less than 0 but is returned in an (unsigned int). For example, -1765328377L gets cast to 2529638919, which is 0x96c73a07, not 0xffffffff96c73a07, so error_message() fails to find a matching error table. When error_message() then calls the error_table_name() function to get a name to use in the "unknown code" message, it gets a correct value back. This happens because error_table_name() drops most of the higher bits of the parameter it's passed before doing anything else with it (& 077777777f, or & 0xffffff). If we did the same thing in error_message(), we wouldn't have a problem there, either. Problem reported and fixed by: Nalin Dahyabhai Addresses-Sourceforge-Bug: #1809658 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15blkid: Avoid division by zero error when probing an invalid FAT filesystemTheodore Ts'o
Addresses-Sourceforge-Bug: #1831627 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15libss: Fix "make check" test case to work portablyTheodore Ts'o
The "make check" test in lib/ss would fail if '.' is not in the user's PATH, and if the libss shared library had not yet been installed yet. Addresses-Sourceforge-Bug: #1848974 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Fix uuid_unparse man page to give a correct example UUID output stringTheodore Ts'o
Addresses-Debian-Bug: #444883 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Fix Debian rules files to support building non-Linux archsSamuel Thibault
Addresses-Debian-Bug: #437720 Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15Fix cross-compilation support in Debian's build rulesTheodore Ts'o
Addresses-Debian-Bug: #451172 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-15ext2fs_flushfs: Remove the NEEDS_RECOVERY from the backup superblocksTheodore Ts'o
Now that e2fsck tries to backup the primary superblock to the backups when the feature sets ar different, it's important when tune2fs writes out a changed superblock, that we filter out the EXT3_FEATURE_INCOMPAT_RECOVER feature to the backup superblocks, since it will be removed from the primary superblock either when the filesystem is mounted uncleanly or when journal is replayed. Addresses-Debian-Bug: #454926 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-06Update release notes, version files, etc., for 1.40.3 release.Theodore Ts'o
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-05libext2fs: Add checks to prevent integer overflows passed to malloc()Theodore Ts'o
This addresses a potential security vulnerability where an untrusted filesystem can be corrupted in such a way that a program using libext2fs will allocate a buffer which is far too small. This can lead to either a crash or potentially a heap-based buffer overflow crash. No known exploits exist, but main concern is where an untrusted user who possesses privileged access in a guest Xen environment could corrupt a filesystem which is then accessed by the pygrub program, running as root in the dom0 host environment, thus allowing the untrusted user to gain privileged access in the host OS. Thanks to the McAfee AVERT Research group for reporting this issue. Addresses CVE-2007-5497. Signed-off-by: Rafal Wojtczuk <rafal_wojtczuk@mcafee.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-12-05Add Ubuntu-specific e2fsck.conf file to work around Ubuntu issuesTheodore Ts'o
Ubuntu has init script and installer issues which cause them to have significant problems with time zones. This is compounded with a relatively inexperienced user base who want to dual boot with Windows and so have their hardware clocks tick localtime. Addresses-Ubuntu-Bug: #131201 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>