OSDN Git Service
Theodore Ts'o [Sun, 8 May 2005 05:01:02 +0000 (01:01 -0400)]
Fix the f_dup_resize script to be more portable and not rely on e2fsprogs
already being installed.
Theodore Ts'o [Sat, 7 May 2005 21:06:27 +0000 (17:06 -0400)]
Add a new option to the blkid program, -l, which will more efficiently search
for a single device.
Add a new function to the blkid library, blkid_probe_all_new().
Optimize blkid_find_dev_with_tag() so that extraneous device validation are
skipped. (Makes a difference for system with a large number of disks).
Theodore Ts'o [Sat, 7 May 2005 18:38:10 +0000 (14:38 -0400)]
Fix gcc -Wall nits in the blkid library.
Theodore Ts'o [Sat, 7 May 2005 18:22:38 +0000 (14:22 -0400)]
Clean up the debugging code in the blkid library so that we don't use
the inline functions DEB_DUMP_* and instead use the private functions
blkid_debug_dump_*().
Theodore Ts'o [Sat, 7 May 2005 17:32:47 +0000 (13:32 -0400)]
Add new two new functions to the blkid library: blkid_dev_set_search(), and
blkid_dev_has_tag(), and change the blkid program to take advantage of these
functions.
Theodore Ts'o [Sat, 7 May 2005 05:54:19 +0000 (01:54 -0400)]
Remove the Conflicts: tag from the Debian e2fsprogs-udebs package, since
udebs dont support Conflicts.
Theodore Ts'o [Fri, 6 May 2005 20:26:13 +0000 (16:26 -0400)]
When determining the libraries needed for Debian's initrd, unset
LD_PRELOAD and LD_LIBRARY_PATH and filter out libraries found in
/etc/ld.so.preload. (Addresses Debian Bug: #304003)
Theodore Ts'o [Fri, 6 May 2005 16:04:10 +0000 (12:04 -0400)]
Escape hyphens in the e2image and tune2fs man pages so that they show up
correctly after groff processes them.
Theodore Ts'o [Fri, 6 May 2005 13:42:34 +0000 (09:42 -0400)]
If the .c and .h file already exist, and they have not changed, use the
original versions of the files, so as to avoid rebuilding files when not
necessary. Also fixes a potential SMP/Parallel build problem when one
make process runs compile_et to generate the .h file, and a partially
generated .c file is compiled by another make process. (Addresses
Sourceforge Bug: #
1157933)
Theodore Ts'o [Fri, 6 May 2005 13:37:58 +0000 (09:37 -0400)]
Update "make depend" information. Fixes SMP parallel build problem.
(Addresses Sourceforge Bug: #
1157933)
Theodore Ts'o [Fri, 6 May 2005 13:04:37 +0000 (09:04 -0400)]
Fix compile warning in do_stat() from previous fix.
Theodore Ts'o [Fri, 6 May 2005 04:38:26 +0000 (00:38 -0400)]
Fix build of tst_ostype when doing a "make check" in lib/e2p; it was missing
CFLAGS in the compile rule. (Addresses Sourceforge Bug: #
1180572)
Theodore Ts'o [Fri, 6 May 2005 04:10:52 +0000 (00:10 -0400)]
Fix potential portability issue in the blkid program. (On architectures
where char is unsigned). (Addresses Sourceforge Bug: #
1180585)
Theodore Ts'o [Fri, 6 May 2005 03:15:55 +0000 (23:15 -0400)]
Corrects a few mistakes in the fsck man page, wraps two overlong lines,
and changes "bad" to "invalid" in some messages to avoid confusion with
"bad blocks" in the e2fsck, mke2fs, and badblocks programs. Thanks to
Benno Schulenberg. (Addresses Sourceforge Bug: #
1189803)
Theodore Ts'o [Fri, 6 May 2005 02:57:44 +0000 (22:57 -0400)]
Fix typo in the debugfs command used to fixed trashed filesystems by
FC3's resize2fs program. (Addresses Sourceforge Bug #
1190897).
Theodore Ts'o [Fri, 6 May 2005 02:55:20 +0000 (22:55 -0400)]
Fix a bug in filefrag so that it doesn't when the first block found is an
indirect block, it doesn't falsely count an extra discontunity. (Addresses
Debian Bug #307607).
Theodore Ts'o [Thu, 5 May 2005 22:06:04 +0000 (18:06 -0400)]
Fix libblkid's magic number recognition for the cramfs filesystem,
and add support to pull out the label for cramfs filesystems.
Thanks to Karel Zak (kzak at redhat.com) for the patch.
Theodore Ts'o [Thu, 5 May 2005 21:21:46 +0000 (17:21 -0400)]
debugfs.c (do_stat): Check to make sure a filesystem is open
and abort if with an error if not, to prevent a seg fault
in that case.
Theodore Ts'o [Sat, 16 Apr 2005 18:05:09 +0000 (14:05 -0400)]
Fix spelling mistakes in man pages. (Addresses Debian Bugs: #304591,
#304592, #304594, #304597, #304593)
Theodore Ts'o [Sat, 16 Apr 2005 17:56:03 +0000 (13:56 -0400)]
Fix typo so that we actually ignore environment variables when gid != egid.
Theodore Ts'o [Thu, 14 Apr 2005 21:10:14 +0000 (17:10 -0400)]
Don't offer to update or clone the resize inode when e2fsck deals with
multiply claimed blocks.
Theodore Ts'o [Thu, 14 Apr 2005 18:07:53 +0000 (14:07 -0400)]
Use a centrally stored current time for "now" which
can be overridden using the E2FSCK_TIME environment
variable, for better reproducibility for regression tests.
Theodore Ts'o [Sun, 10 Apr 2005 01:12:30 +0000 (21:12 -0400)]
Update debian changelog for 1.37-2 release.
Theodore Ts'o [Sat, 9 Apr 2005 05:26:49 +0000 (01:26 -0400)]
test_script.in: Make the test script driver exit with a non-zero
status if there are any failed tests.
Theodore Ts'o [Sat, 9 Apr 2005 05:24:04 +0000 (01:24 -0400)]
Don't abort filefrag if EXT3_IOC_GETFLAGS ioctl is not supported,
so that filefrag can work on non-ext2/3 filesystems, as advertised.
(Addresses Debian Bug: #303509)
Theodore Ts'o [Sat, 9 Apr 2005 05:22:09 +0000 (01:22 -0400)]
ls.c: Add stdlib.h header file since list_super2() uses the
free() function.
Theodore Ts'o [Sat, 9 Apr 2005 05:21:21 +0000 (01:21 -0400)]
Add missing return values in error return cases in the ext2fs library.
(Otherwise we return garbage instead of the error code.)
Theodore Ts'o [Sat, 9 Apr 2005 04:33:21 +0000 (00:33 -0400)]
Fix minor spelling typo in the mke2fs man page.
Theodore Ts'o [Wed, 6 Apr 2005 18:55:53 +0000 (14:55 -0400)]
pass1.c (e2fsck_pass1): If the superblock last mount time (not
just the last write time) looks insane, then assume that
we can't do the LOW_DTIME checks.
Theodore Ts'o [Wed, 6 Apr 2005 18:44:16 +0000 (14:44 -0400)]
Add paranoia checks into the blkid, ext2fs, and ss libraries to ignore
environment variables if the libraries are called from setuid or setguid
programs, or if kernel believes that the process is not eligible to create
a core dump. In addition, if the libc has __secure_getenv(), use it so that
the libc can also do any additional limitations regarding when libraries can
trust environment variables (i.e., to integrate with systems like SELinux
and Posix capabilities).
Theodore Ts'o [Thu, 31 Mar 2005 05:01:33 +0000 (00:01 -0500)]
ostype.c (e2p_os2string): Check to make sure malloc() is
successful before attempting to copy into it. Add
#include of stdlib.h to fix a core dump bug on the IA64
architecture. (Addresses Debian Bug #302200)
Theodore Ts'o [Tue, 22 Mar 2005 03:55:18 +0000 (22:55 -0500)]
ADD TAG: E2FSPROGS-1_37
Theodore Ts'o [Tue, 22 Mar 2005 03:55:18 +0000 (22:55 -0500)]
Update LSM file for 1.37 release.
Theodore Ts'o [Tue, 22 Mar 2005 03:37:03 +0000 (22:37 -0500)]
Update for the e2fsprogs 1.37 release.
Theodore Ts'o [Tue, 22 Mar 2005 03:13:32 +0000 (22:13 -0500)]
Ignore the BLKID_FILE environment variable if blkid_get_cache() is
called from a setuid program.
Theodore Ts'o [Mon, 21 Mar 2005 22:15:18 +0000 (17:15 -0500)]
Fix the test image so that it actually has an ea-in-inode.
Theodore Ts'o [Mon, 21 Mar 2005 21:41:35 +0000 (16:41 -0500)]
Add new test case which exercises the ea-in-inode checker in e2fsck.
Theodore Ts'o [Mon, 21 Mar 2005 18:15:45 +0000 (13:15 -0500)]
Integrate code from Alex Thomas at Clusterfs to check extended attributes
stored in inodes into e2fsck.
There are a number of bug fixes and enhancements over the original lustre fsck
BK repository. The biggest one is that this extended attribute values must
be aligned on 4-byte boundaries.
Theodore Ts'o [Mon, 21 Mar 2005 06:08:10 +0000 (01:08 -0500)]
Make debugfs's stat command print the size of the extra inode fields,
if any.
Theodore Ts'o [Mon, 21 Mar 2005 06:02:53 +0000 (01:02 -0500)]
Fix mke2fs so that it writes the root directory
using ext2fs_write_new_inode(), and fix ext2fs_write_new_inode()
so that it initializes i_extra_isize properly.
Theodore Ts'o [Mon, 21 Mar 2005 03:47:54 +0000 (22:47 -0500)]
Make e2fsck check the superblock's inode_size to make sure it is
sane before we start depending on it!
Theodore Ts'o [Mon, 21 Mar 2005 01:05:22 +0000 (20:05 -0500)]
Fix e2fsck, debugfs, and the ext2fs_mkdir function so that when we create
a new inode we make sure that the extra information in the inode (any extra
fields in a large inode and any ea-in-inode information) is cleared. This
can happen when e2fsck creates a new root inode or a new lost+found directory,
or when the user uses the debugfs write, mknod, or mkdir commands. Otherwise,
the newly create inode could inherit garbage (or old EA information) from
a previously deleted inode.
Theodore Ts'o [Sun, 20 Mar 2005 23:03:58 +0000 (18:03 -0500)]
Enhance debugfs's stat command so it can dump extended attributes
which are stored in the inode body.
Theodore Ts'o [Sun, 20 Mar 2005 21:57:10 +0000 (16:57 -0500)]
Fix bug in e2fsck where we don't notice if a file with an extended
attribute block is so big that i_blocks wraps to zero.
Theodore Ts'o [Sat, 19 Mar 2005 06:13:22 +0000 (01:13 -0500)]
Add new functions which convert between a string and os_type: e2p_os2string()
and e2p_string2os() in the e2p library.
Theodore Ts'o [Sat, 19 Mar 2005 04:50:32 +0000 (23:50 -0500)]
Fix clean target to remove tst_getsectsize.
Remove useless -DDEBUG when linking tst_getsectsize.
Theodore Ts'o [Sat, 19 Mar 2005 01:37:45 +0000 (20:37 -0500)]
filefrag.c (frag_report): Automatically detect files that are
stored using the new experimental file fragments format,
and use the non-ext2 algorithm for determing the number of
extents. Avoid reporting a false discontinuity if there
is a non-allocated block (or extent) at the beginning of
the file.
Theodore Ts'o [Sat, 19 Mar 2005 01:11:59 +0000 (20:11 -0500)]
getsize.c (ext2fs_get_device_size): Check to see if the number
of blocks is greater than 2**32 when we are doing a binary
search to determine the device size. Thanks to Stephen
Tweedie for the patch.
Theodore Ts'o [Thu, 17 Mar 2005 06:16:34 +0000 (01:16 -0500)]
Force compile_et and mk_cmds to use /usr/bin/awk so that we will work
on any Debian system regardless of which version of awk is installed.
(Closes: #299341)
Theodore Ts'o [Thu, 17 Mar 2005 04:38:14 +0000 (23:38 -0500)]
getsize.c (blkid_get_dev_size): Fix compilation problem on
Darwin systems.
Theodore Ts'o [Wed, 2 Mar 2005 17:57:51 +0000 (12:57 -0500)]
gen_tarball.in: Don't remove the .gmo files from the generated tarball;
they are now treated as source files instead of generated files.
Theodore Ts'o [Tue, 1 Mar 2005 22:15:33 +0000 (17:15 -0500)]
Update the TODO file to have more information in it.
Theodore Ts'o [Tue, 1 Mar 2005 22:10:51 +0000 (17:10 -0500)]
Change the debian version to be 1.36release-1 since we didn't do the WIP
version numbers correctly.
Theodore Ts'o [Sat, 5 Feb 2005 23:26:03 +0000 (18:26 -0500)]
ADD TAG: E2FSPROGS-1_36
Theodore Ts'o [Sat, 5 Feb 2005 23:26:03 +0000 (18:26 -0500)]
Update for release of e2fsprogs 1.36.
Theodore Ts'o [Sat, 5 Feb 2005 20:53:56 +0000 (15:53 -0500)]
Makefile util/gen-tarball executable after creating the file.
Theodore Ts'o [Sat, 5 Feb 2005 20:48:49 +0000 (15:48 -0500)]
Remove *.pc files on a "make distclean"
Remove emacs backup files in tests/Makefile on a "make clean"
Theodore Ts'o [Sat, 5 Feb 2005 15:28:15 +0000 (10:28 -0500)]
Remove support for --enable-clear-htree; this was
only needed during the early development of the htree patch.
Theodore Ts'o [Fri, 4 Feb 2005 15:43:58 +0000 (10:43 -0500)]
Add support for maintainer mode, which enables the makefile rules
to rebuild the configure script from configure.in, and to reubuild the
.gmo files in po directory.
Theodore Ts'o [Fri, 4 Feb 2005 15:36:37 +0000 (10:36 -0500)]
Makefile.in (clean): Remove tst_getsize when doing a make clean
Theodore Ts'o [Fri, 4 Feb 2005 14:50:41 +0000 (09:50 -0500)]
filefrag.c (frag_report): In verbose mode, print the first and
last block numbers; may be useful for some folks.
Theodore Ts'o [Fri, 4 Feb 2005 03:09:49 +0000 (22:09 -0500)]
Use inline instead of __inline__ in the blkid debugging code for
Solaris compatibility.
Theodore Ts'o [Fri, 4 Feb 2005 02:56:44 +0000 (21:56 -0500)]
Drop the sparc assembly bitwise operations; it's less efficient
than the GCC 3.4 compile code and triggers compiler warnings on
sparc64. Thanks to Matthias Andree for his analysis and suggestions.
(Addresses Debian Bug #232326)
Remove support for the --enable-old-bitops configure option which
was only for very old sparc systems.
Theodore Ts'o [Fri, 4 Feb 2005 01:38:52 +0000 (20:38 -0500)]
Define _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris.
Theodore Ts'o [Fri, 28 Jan 2005 17:33:01 +0000 (12:33 -0500)]
Update release notes and version.h for e2fsprogs 1.36-rc5 release.
Theodore Ts'o [Fri, 28 Jan 2005 17:27:35 +0000 (12:27 -0500)]
pass2.c (e2fsck_process_bad_inode): Fix a corner case involving
big-endian systems, long symlinks and i_file_acl set when
it shouldn't be. Without this bugfix, f_clear_xattr will
fail on big-endian machines.
Theodore Ts'o [Fri, 28 Jan 2005 16:46:05 +0000 (11:46 -0500)]
f_bad_inode, f_recnect_bad: Adjust test cases to take into
account the change which clears the i_file_acl field earlier.
Theodore Ts'o [Fri, 28 Jan 2005 16:45:28 +0000 (11:45 -0500)]
Fix two bugs found by the regression test suites. The bug was created when
we changed ext2fs_create_resize_inode to always create the resize inode,
even when s_reserved_gdt_blocks is zero. Mke2fs and e2fsck was calling
ext2fs_create_resize_inode() unconditionally, and depending on
s_reserved_gdt_blocks to be zero, instead of explicitly checking the
resize_inode feature.
Theodore Ts'o [Fri, 28 Jan 2005 02:40:53 +0000 (21:40 -0500)]
Fixed missing not_fixed branch in e2fsck so that if the frag size field in
the inode is not fixed, the inode_bad_map bitmap won't be cleared. Thanks to
Stephen Tweedie for pointing this out.
Theodore Ts'o [Fri, 28 Jan 2005 00:51:47 +0000 (19:51 -0500)]
blkid.c (main, compare_search_type): Make blkid -t work more
consistently when the blkid cache file is explicitly set
to /dev/null. (Addresses Debian Bug #292425)
Also expose blkid_verify() as a public function to the blkid library.
Theodore Ts'o [Fri, 28 Jan 2005 00:12:05 +0000 (19:12 -0500)]
mke2fs.c (PRS): Don't use a blocksize greater than 4k, even on
2.6 kernels, unless explicitly requested by the user; not
all 2.6 kernels (includeing stock 2.6 kernels as of this
writing) don't support blocksizes > 4k.
Theodore Ts'o [Fri, 28 Jan 2005 00:07:26 +0000 (19:07 -0500)]
mke2fs.c (PRS): If the device size is too big to be expressed
using a 1k blocksize, retry with a 4k blocksize.
(Addresses Sourceforge bug #
1106631)
Theodore Ts'o [Thu, 27 Jan 2005 23:47:51 +0000 (18:47 -0500)]
Create the resize inode is created even if the s_reserved_gdt_blocks is
zero; e2fsck will now complain and recreate the resize inode if i_links_count
is zero or if it is not a regular file.
Theodore Ts'o [Thu, 27 Jan 2005 23:13:33 +0000 (18:13 -0500)]
Cset exclude: tytso@think.thunk.org|ChangeSet|
20050123214956|52665
Theodore Ts'o [Thu, 27 Jan 2005 19:28:41 +0000 (14:28 -0500)]
Fix e2fsck to not delete symlinks that contain an extended attribute after
the ext_attr feature flag has been cleared. (Addresses Red Hat Bugzilla
#146284)
Theodore Ts'o [Wed, 26 Jan 2005 18:34:57 +0000 (13:34 -0500)]
Fix Solaris portability bug in the resize tests.
Theodore Ts'o [Wed, 26 Jan 2005 18:20:12 +0000 (13:20 -0500)]
Update version.h and release notes for the e2fsprogs 1.36-rc4 release.
Theodore Ts'o [Wed, 26 Jan 2005 18:16:06 +0000 (13:16 -0500)]
Add functions which allow an application program to do a run-time query
of the version of the blkid library.
Theodore Ts'o [Wed, 26 Jan 2005 18:03:55 +0000 (13:03 -0500)]
Fix "make uninstall" to make sure it removes everything that is installed.
Theodore Ts'o [Wed, 26 Jan 2005 17:59:25 +0000 (12:59 -0500)]
Add pkg-config files to e2fsprogs's libraries.
Theodore Ts'o [Wed, 26 Jan 2005 16:37:46 +0000 (11:37 -0500)]
e2image.c (scramble_dir_block): Make sure the unused space
in the '.' and '..' directory entries are cleared when
e2image -rs is specified.
Theodore Ts'o [Wed, 26 Jan 2005 15:03:56 +0000 (10:03 -0500)]
resize2fs.c: Fix bug where we don't release the blocks belonging
to the old inode table blocks when we move the inode
table. (Addresses Debian Bug: #290894)
Theodore Ts'o [Wed, 26 Jan 2005 04:42:56 +0000 (23:42 -0500)]
Add library support for large (EA in inode) inodes. Make sure that garbage
doesn't get written into the reserved portion when writing into filesystems
that have large inodes defined.
Theodore Ts'o [Tue, 25 Jan 2005 08:26:10 +0000 (03:26 -0500)]
probe.c: Windows can perform a "quick format" that doesn't clear
enough of the partition that the blkid probes can get
confused. Do the NTFS test first to deal with this
Windows misfeature. (Addresses Debian Bug #291990)
Theodore Ts'o [Tue, 25 Jan 2005 08:09:24 +0000 (03:09 -0500)]
E2fsck will now check the individual block group inode and block free counts,
as well as the filesystem-wide inode and block free counts. If any of the
free counts is too large, force a full filesystem check. (Addresses
Debian Bug #291571)
Theodore Ts'o [Tue, 25 Jan 2005 04:45:56 +0000 (23:45 -0500)]
Clarified the tune2fs man page about how the -c option works.
Theodore Ts'o [Sun, 23 Jan 2005 21:49:56 +0000 (16:49 -0500)]
Fix e2fsck so that it does not complain if the resize_inode feature is
enabled, but s_reserved_gdt_blocks is zero and there is no double indirect
block in the resize inode. If there are no blocks reserved for on-line
expansion, there is no need for the DIND block to be allocated in the resize
inode.
Theodore Ts'o [Sat, 22 Jan 2005 00:52:03 +0000 (19:52 -0500)]
Skip the r_resize_inode test if resize2fs is not compiled (due to
configure's --disable-resizer option)
Theodore Ts'o [Sat, 22 Jan 2005 00:11:05 +0000 (19:11 -0500)]
Make blkid -t display all devices that match the specified criteria,
not just the first one. (Addresses Debian Bug #290530)
Update the blkid man page's description of the -t option.
Theodore Ts'o [Fri, 21 Jan 2005 22:57:56 +0000 (17:57 -0500)]
Add support to the blkid library to recognize Oracle ASM volumes.
Theodore Ts'o [Fri, 21 Jan 2005 06:20:44 +0000 (01:20 -0500)]
Add new utility program, copy_sparse.c, which is very useful
for dealing with large sparse files (such as e2image files).
Theodore Ts'o [Fri, 21 Jan 2005 02:45:27 +0000 (21:45 -0500)]
set_fields.c: Add support for the jnl_blocks[] for set_super_value
Theodore Ts'o [Thu, 20 Jan 2005 22:37:01 +0000 (17:37 -0500)]
filefrag.c (frag_report): Fix filefrag so that it works
correctly with sparse files; unallocated blocks should not
be treated as a discontinuity.
Matthias Andree [Thu, 20 Jan 2005 02:17:31 +0000 (03:17 +0100)]
MCONFIG.in:
Rearrange -I options to give local includes precedence over
/usr/local/include, to unbreak the build when an older
e2fsprogs version (with includes) is installed under
/usr/local (for instance, on FreeBSD).
Theodore Ts'o [Thu, 20 Jan 2005 00:30:01 +0000 (19:30 -0500)]
Fix stupid typo in the CreateOS FreeBSD/Solaris changeset. Also included
changelogs which I forgot to include in the changeset.
Theodore Ts'o [Wed, 19 Jan 2005 23:18:44 +0000 (18:18 -0500)]
Add interpretation of OS Creator values for FreeBSD and Lites in mke2fs
and dumpe2fs.
Eventually, we should fold this into a single function for converting
numbers to creator os codes, and vice versa (in TODO file)
Theodore Ts'o [Wed, 19 Jan 2005 23:06:45 +0000 (18:06 -0500)]
r_resize_inode, m_dasd_bs, m_large_file, m_meta_bg, m_no_opt,
m_read_opt, m_std, run_mke2fs, filter_dumpe2fs: Make tests
portable so they pass correctly on a FreeBSD system.
Theodore Ts'o [Wed, 19 Jan 2005 18:57:40 +0000 (13:57 -0500)]
Miscellaneous gcc -Wall cleanups. Use fixed rather than floating point
math to avoid rounding issues.
Theodore Ts'o [Wed, 19 Jan 2005 18:26:38 +0000 (13:26 -0500)]
Cleanup C code in debugfs's setfield. Added missing return statement (turned
out it didn't cause a functional bug) and added #define _XOPEN_SOURCE on
non-Solaris systems to pick up strptime()'s definition.
Theodore Ts'o [Wed, 19 Jan 2005 17:59:48 +0000 (12:59 -0500)]
configure.in: Clean up checks for dirent.d_reclen, ssize_t,
llseek, lseek64, sockaddr.sa_len and make the lseek checks
immune to compiler warnings, so that they can be compiled
with Intel C++ 8.1.
Patch from: Matthias Andree <matthias.andree@gmx.de>