summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-02-09libcom_err: Use thread local storage to fix reentrancy problemsTheodore Ts'o1-1/+7
Address the theoretical problem of two threads trying to format a different unknown error code by using TLS. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09Document the BLKID_FILE environment variable in the libblkid man pageTheodore Ts'o1-0/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09Update e2fsprogs translation template and Vietnamese and Czech translationsTheodore Ts'o23-3250/+3756
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09blkid: Add support for returning labels for UDF filesystemsTheodore Ts'o3-1/+3
Addresses-Sourceforge-Bug: #1886394 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09Don't try to create $DESTDIR/etc/init.d as part of make installTheodore Ts'o1-2/+1
This isn't necessary since we don't install the init.d script (and it's not the recommended way to start uuidd anyway). Addresses-Sourceforge-Bug: #1885085 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09blkid: Flush cached filesystem information on any error other than EPERMTheodore Ts'o1-1/+1
USB devices can return ENOMEDIUM, and when the filesystem cached information wasn't flushed, it resulted in the wrong location of a filesystem to be returned to the caller. The only justification for using cached information when the open fails is in the case of a permission denied error. Addresses-Debian-Bug: #463787
2008-02-09Allow tune2fs to set and clear the test_fs flag on ext4 filesystemsTheodore Ts'o1-3/+29
Also allow the label to be set/cleared on ext4 filesystems via e2label and tune2fs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-02-09blkid: Automatically chose between ext4 and ext4dev as appropriateTheodore Ts'o1-8/+134
Add logic that on Linux systems will check for the presence of the ext4dev filesystem; if it isn't present, fall back to ext4 for filesystems that are marked as being "OK for use on test filesystem code". If they are OK for use for in-development filesystem code, it should also be fine to use stable filesystem code if there is no test filesystem code (ext4dev) available. The reverse is not true, of course. We don't ever want to mount a production filesystem using test filesystem code unless the user gives us explicit permission via "tune2fs -E test_fs". Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-31Fix bug in e2fsck which caused it to core dump if --enable-jbd-debug is usedTheodore Ts'o1-1/+2
Missing curly braces from a python programmer; my bad for noticing it! Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-30debian: Fix packaging problem caused by dpkg 1.14.16Theodore Ts'o3-6/+16
Addresses-Debian-Bug: #436058 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Update release notes, version files for 1.40.5 releaseTheodore Ts'o5-12/+136
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Create filesystems with the ext_attr feature by defaultTheodore Ts'o9-19/+20
Since recent kernels have a tendency to set this feature willy-nilly, let's just enable by default. It's only very old kernels that don't support it any more. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Create new filesystems with 256-byte inodes by defaultTheodore Ts'o2-8/+13
This makes it easier to upgrade to ext4 in the future, and it speeds up extended attributes handling --- important on SELinux systems! Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Don't build e2fsck statically by default anymoreTheodore Ts'o4-53/+10
Also removed the --enable-dynamic-static configure option. Unfortunately the usefulness of building e2fsck statically is gone on all modern distributions, since everything else on the system is built dynamically these days. In fact on some distributions it is almost impossible to build programs statically any more. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27debian: Don't use dietlibc on platforms that don't support itTheodore Ts'o2-2/+5
Addresses-Debian-Bug: #459475 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27e2image: Fix potential overflow if the device name is too longTheodore Ts'o1-1/+1
Adapted from SLES's patch: e2fsprogs-strncat.patch Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Use lseek() instead of llseek() of sizeof(long) == sizeof(long long)Theodore Ts'o2-4/+4
Previously we used a hard-coded test where for the Alpha and the IA64, we used lseek instead of llseek(). Generalize this to whenver sizeof(long) is the same as sizeof(long long). It turns out this fixes a FTBFS problem on the x86_64 for Debian, since dietlibc doesn't provide llseek() on that architecture. Addresses-Debian-Bug: #459614 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27libuuid: Make sure execl() variadic function is properly terminatedTheodore Ts'o1-1/+2
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27blkid: Add support for HFS+ detectionTheodore Ts'o2-0/+57
From SLES 10 patch: e2fsprogs-blkid_probe_hfsplus.patch Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27blkid: Make sure the blocksize in reiserfs is saneTheodore Ts'o1-0/+4
This avoids a floating point exception for corrupt reiserfs images Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-27Fix minor typo in resize2fs man pageTheodore Ts'o1-1/+1
Taken from SLES patch: e2fsprogs-1.39-resize2fs_manpage.patch Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-26Ignore "safe" flag differences when e2fsck compares superblocksTheodore Ts'o1-4/+30
Recent e2fsprogs (1.40.3 and higher) fsck compares primary superblock to backups, and if things differ, it forces a full check. However, the kernel has a penchant for updating flags the first time a feature is used - attributes, large files, etc. This is a bad idea, and we should break the kernel of this habit, especially for the ext4 feature flags. But for now, let's make e2fsck avoid forcing a full check and backup except when absolutely necessary. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-26Teach the blkid library about ext4/ext4devTheodore Ts'o2-25/+140
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-26Add support for the test_fs flagTheodore Ts'o7-8/+102
The test_fs flag is an "ok to be used with test kernel code" flag. It makes it easier for us to determine whether a filesystem should be mounted using ext4 or not. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-21Update Swedish translation file from the Translation ProjectTheodore Ts'o2-115/+62
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-21Explicitly check for ftruncate64() in configure.inTheodore Ts'o3-3/+4
Apparently Mac OS 10.5 defines fstat64(), but not ftruncate64(), causing resize2fs to fail to build. So check explicitly for ftruncate64(), and fall back to ftruncate() if necessary. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-21resize2fs: Add sanity check for off_t overflow before truncatingTheodore Ts'o1-1/+3
If we can't use ftruncate64(), and have to use ftruncate() instead, make sure that we don't accidentally truncate the size when we chop it down to an off_t before calling ftruncate(), lest we severely damage a filesystem image file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-21Define helper functions ext2fs_set_i_{u,g}id_high() for MacOS compatibilityTheodore Ts'o2-2/+7
This is needed for all non-Linux/Hurd/Masix systems... Addresses-Sourceforge-Bug: #1863819 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-19Fix up e2fsprogs.spec file to include a new uuidd packageEric Sandeen1-0/+31
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-19Fix the pathname of /var/lib/uuidd/uuidd.pid in uuidd man page.Eric Sandeen1-2/+2
Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-14debian: Add passwd dependency to libuuid1 and uuid-runtimeTheodore Ts'o1-2/+2
The groupadd and useradd commands come from passwd, which is not Essential: yes, so a Depends is needed. Addresses-Debian-Bug: #459403 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-14debian: Add "set -e" to postinst scriptsTheodore Ts'o2-0/+2
This ensures that if there is some failure in adding the uid/gid, the package installation will abort. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-14blkid: have ntfs's UUID compatible with vol_idPixel1-1/+1
Ensure the length of the UUID is always the same without the patch: % blkid /tmp/a /tmp/b /tmp/a: UUID="7130E4771519577F" TYPE="ntfs" /tmp/b: UUID="7E9B4A7CCE99CA" TYPE="ntfs" with the patch: % blkid /tmp/a /tmp/b /tmp/a: UUID="7130E4771519577F" TYPE="ntfs" /tmp/b: UUID="007E9B4A7CCE99CA" TYPE="ntfs" ie same as: % vol_id --uuid /tmp/a ; vol_id --uuid /tmp/b 7130E4771519577F 007E9B4A7CCE99CA Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-04If --sbindir, et. al are specified to configure set $root_sbindir, et al.Theodore Ts'o2-0/+32
If the user specifies as arguments to configure --bindir, --sbindir, --libdir, or --sysconfdir, then set corresponding $root_FOO variable, so that the request from the user to set a specific --sbindir is honored. Addresses-Sourceforge-Bug: 498381 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-03Add sample python bindings for the uuid libraryTheodore Ts'o3-0/+52
Pretty trivial, but maybe useful to someone. Originially submited by Ondrej Sury <ondrej@sury.org> Addresses-Sourceforge-Patches: #778817 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-03debugfs: Change lsdel to use ext2fs_block_iterate2 it can find large filesTheodore Ts'o1-14/+17
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'o5-13/+305
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'o1-1/+2
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'o5-7/+7
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'o1-20/+20
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'o1-0/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Fix build failure on non-Linux/non-Hurd/non-Masix systemsTheodore Ts'o1-2/+2
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'o2-3/+25
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'o1-1/+12
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'o1-0/+1
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'o1-0/+1
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'o1-0/+2
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'o5-0/+19
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01libss: Remove unnecessary Makefile dependency for test_ssTheodore Ts'o1-1/+1
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-01-01Update release notes, version files for 1.40.4 releaseTheodore Ts'o7-20/+107
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>