Commit Graph

1699 Commits (813b901d419cd700cf2fc65048142b024da49808)

Author SHA1 Message Date
Theodore Ts'o 813b901d41 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)
2005-03-31 00:01:33 -05:00
Theodore Ts'o d4f28f9a6a ADD TAG: E2FSPROGS-1_37 2005-03-21 22:55:18 -05:00
Theodore Ts'o ac43a437ee Update LSM file for 1.37 release. 2005-03-21 22:55:18 -05:00
Theodore Ts'o fd4b28efd3 Update for the e2fsprogs 1.37 release. 2005-03-21 22:37:03 -05:00
Theodore Ts'o 65ffef3689 Ignore the BLKID_FILE environment variable if blkid_get_cache() is
called from a setuid program.
2005-03-21 22:13:32 -05:00
Theodore Ts'o d72e954f45 Fix the test image so that it actually has an ea-in-inode. 2005-03-21 17:15:18 -05:00
Theodore Ts'o ddbe33107e Add new test case which exercises the ea-in-inode checker in e2fsck. 2005-03-21 16:41:35 -05:00
Theodore Ts'o cebe48a1ec 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.
2005-03-21 13:15:45 -05:00
Theodore Ts'o c9ae3f9a49 Make debugfs's stat command print the size of the extra inode fields,
if any.
2005-03-21 01:08:10 -05:00
Theodore Ts'o e27b45639a 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.
2005-03-21 01:02:53 -05:00
Theodore Ts'o 89db86d33c Make e2fsck check the superblock's inode_size to make sure it is
sane before we start depending on it!
2005-03-20 22:47:54 -05:00
Theodore Ts'o 030970ed75 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.
2005-03-20 20:05:22 -05:00
Theodore Ts'o ea822eeba3 Enhance debugfs's stat command so it can dump extended attributes
which are stored in the inode body.
2005-03-20 18:03:58 -05:00
Theodore Ts'o dc71f23e63 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.
2005-03-20 16:57:10 -05:00
Theodore Ts'o 6325394630 Add new functions which convert between a string and os_type: e2p_os2string()
and e2p_string2os() in the e2p library.
2005-03-19 01:13:22 -05:00
Theodore Ts'o 06ce1f6b28 Fix clean target to remove tst_getsectsize.
Remove useless -DDEBUG when linking tst_getsectsize.
2005-03-18 23:50:32 -05:00
Theodore Ts'o 3d16b3f4bb 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.
2005-03-18 20:37:45 -05:00
Theodore Ts'o 283df83e7e 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.
2005-03-18 20:11:59 -05:00
Theodore Ts'o be5a72daa7 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)
2005-03-17 01:16:34 -05:00
Theodore Ts'o b22ea17742 getsize.c (blkid_get_dev_size): Fix compilation problem on
Darwin systems.
2005-03-16 23:38:14 -05:00
Theodore Ts'o 4aad4daee4 gen_tarball.in: Don't remove the .gmo files from the generated tarball;
they are now treated as source files instead of generated files.
2005-03-02 12:57:51 -05:00
Theodore Ts'o 19a868e025 Update the TODO file to have more information in it. 2005-03-01 17:15:33 -05:00
Theodore Ts'o b008e60648 Change the debian version to be 1.36release-1 since we didn't do the WIP
version numbers correctly.
2005-03-01 17:10:51 -05:00
Theodore Ts'o 674a8262e9 ADD TAG: E2FSPROGS-1_36 2005-02-05 18:26:03 -05:00
Theodore Ts'o 3eee5e9eed Update for release of e2fsprogs 1.36. 2005-02-05 18:26:03 -05:00
Theodore Ts'o ee683a13f6 Makefile util/gen-tarball executable after creating the file. 2005-02-05 15:53:56 -05:00
Theodore Ts'o b7aa0d653e Remove *.pc files on a "make distclean"
Remove emacs backup files in tests/Makefile on a "make clean"
2005-02-05 15:48:49 -05:00
Theodore Ts'o 33db8f80f2 Remove support for --enable-clear-htree; this was
only needed during the early development of the htree patch.
2005-02-05 10:28:15 -05:00
Theodore Ts'o 98919bdb2e 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.
2005-02-04 10:43:58 -05:00
Theodore Ts'o dbb2a1014a Makefile.in (clean): Remove tst_getsize when doing a make clean 2005-02-04 10:36:37 -05:00
Theodore Ts'o 7f1faaa482 filefrag.c (frag_report): In verbose mode, print the first and
last block numbers; may be useful for some folks.
2005-02-04 09:50:41 -05:00
Theodore Ts'o dbe9c71a17 Use inline instead of __inline__ in the blkid debugging code for
Solaris compatibility.
2005-02-03 22:09:49 -05:00
Theodore Ts'o 7004b4af6e 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.
2005-02-03 21:56:44 -05:00
Theodore Ts'o 07f031fd1d Define _XOPEN_SOURCE to be 500 to fix compilation problems on Solaris. 2005-02-03 20:38:52 -05:00
Theodore Ts'o 8ceb55f0e5 Update release notes and version.h for e2fsprogs 1.36-rc5 release. 2005-01-28 12:33:01 -05:00
Theodore Ts'o a894eb4795 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.
2005-01-28 12:27:35 -05:00
Theodore Ts'o 1e87f8aea2 f_bad_inode, f_recnect_bad: Adjust test cases to take into
account the change which clears the i_file_acl field earlier.
2005-01-28 11:46:05 -05:00
Theodore Ts'o ea77431563 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.
2005-01-28 11:45:28 -05:00
Theodore Ts'o 7e0282c5f2 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.
2005-01-27 21:40:53 -05:00
Theodore Ts'o 18d1296333 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.
2005-01-27 19:51:47 -05:00
Theodore Ts'o 8430203590 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.
2005-01-27 19:12:05 -05:00
Theodore Ts'o 20953129e6 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)
2005-01-27 19:07:26 -05:00
Theodore Ts'o d4dc0a9e29 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.
2005-01-27 18:47:51 -05:00
Theodore Ts'o 5780ead245 Cset exclude: tytso@think.thunk.org|ChangeSet|20050123214956|52665 2005-01-27 18:13:33 -05:00
Theodore Ts'o 6c313fd473 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)
2005-01-27 14:28:41 -05:00
Theodore Ts'o 06a6cbd2c8 Fix Solaris portability bug in the resize tests. 2005-01-26 13:34:57 -05:00
Theodore Ts'o dc2569739d Update version.h and release notes for the e2fsprogs 1.36-rc4 release. 2005-01-26 13:20:12 -05:00
Theodore Ts'o 32923fa402 Add functions which allow an application program to do a run-time query
of the version of the blkid library.
2005-01-26 13:16:06 -05:00
Theodore Ts'o f923bf2a81 Fix "make uninstall" to make sure it removes everything that is installed. 2005-01-26 13:03:55 -05:00
Theodore Ts'o e644186542 Add pkg-config files to e2fsprogs's libraries. 2005-01-26 12:59:25 -05:00