Commit Graph

1400 Commits (817cc0358c8d128015c80ed30171a69ff1e1d2fc)

Author SHA1 Message Date
Theodore Ts'o 817cc0358c Fix test for /etc/mkinitrd/scripts/e2fsprogs to make sure it gets
removed.  (Addresses Debian Bug #213275)
2003-12-07 12:45:49 -05:00
Theodore Ts'o 0003f99d41 ADD TAG: E2FSPROGS-1_35-WIP-1207 2003-12-07 12:17:27 -05:00
Theodore Ts'o 2f853099bc Remove warning message about using NLS. 2003-12-07 12:17:27 -05:00
Theodore Ts'o 1e6e4c5e5c mke2fs.c (PRS): Fix mke2fs -V so that it prints the version banner. 2003-12-07 02:28:24 -05:00
Theodore Ts'o c4c30b20f9 Update for WIP release December 7, 2003. 2003-12-07 02:16:43 -05:00
Theodore Ts'o e254d05b95 Add libuuid1-udeb (Closes: #221777) 2003-12-07 01:57:04 -05:00
Theodore Ts'o 544349270e Fix gcc -Wall nitpicks 2003-12-07 01:28:50 -05:00
Theodore Ts'o 3de085dd41 recovery.c, jfs_user.h: Sync recovery.c with latest 2.5 kernel
version.
2003-12-07 01:00:02 -05:00
Theodore Ts'o 3ddf2f662e When testing a disk using e2fsck -c, use the list
of new bad blocks to replace the current list of bad
blocks.  This way "e2fsck -c" can be used to recover from
a corrupted bad block inode.
2003-12-02 07:56:42 -05:00
Theodore Ts'o 068cab5bd1 et_c.awk: Add declaration of the Heimdal initialization routine
to avoid gcc -Wall complaints

(Incomplete checkin --- see previous changeset as well)
2003-11-28 09:38:13 -05:00
Theodore Ts'o 52501d440d et_c.awk: Add declaration of the Heimdal initialization routine
to avoid gcc -Wall complaints

Rename test cases to spell Heimdal correctly (only one 'l').
2003-11-28 09:36:37 -05:00
Theodore Ts'o 2540bb79b7 com_err.h, com_err.c: Use GCC attributes to mark com_err and
default_com_err_proc as taking printf-style format
	strings.
2003-11-26 23:19:28 -05:00
Theodore Ts'o 032a763f97 MCONFIG.in: Make the gcc-wall print more warnings to catch
signed vs. unsigned problems.
2003-11-26 23:18:56 -05:00
Theodore Ts'o 8ce230959c com_err.h: Retore the type of n_msgs in the error_table
structure to "int" from "unsigned int" fix a core dumping 
	bug in the com_right() function.  (Addresses Debian bug 
	#213450)
2003-11-22 13:54:38 -05:00
Theodore Ts'o f419fdf536 pl.po: Added new Polish translation.
sv.po: Updated Sweedish translation.
2003-11-21 12:56:32 -05:00
Theodore Ts'o 196a8a618a de.po: Fixed and updated German translations from Marc Langer.
(Addresses Debian bug #200086)
2003-11-21 12:46:04 -05:00
Theodore Ts'o 015b03df7d In e2fsck, given an extra grace period before actually forcing
a filesystem check if a laptop system reports it is running on
battery.  This way the laptop will be biased to waiting until
it is on AC power before doing a filesystem check.  (Addresses
Debian bug #205177)
2003-11-21 11:02:22 -05:00
Theodore Ts'o 6de289cb10 In e2fsck, if the number of mounts until the next forced filesystem
check is 5 or less, mention this to the user.  (Addresses 
Debian bug #157194)
2003-11-21 10:54:54 -05:00
Theodore Ts'o 000ba4046f pass1.c (e2fsck_pass1), problem.h (PR_1_BB_FS_BLOCK),
problem.c (PR_1_BB_FS_BLOCK, PR_1_BBINODE_BAD_METABLOCK_PROMPT): 
	Fix up the handling of corrupted indirect blocks in the 
	bad block.  We now correctly handle the case where there
	is an overlap between a block group descriptor or
	a superblock and a bad block indirect block.  In the case
	where the indirect block is corrupted, we now suggest
	"e2fsck -c".
2003-11-21 10:41:58 -05:00
Theodore Ts'o 817e49e3ce Check the returned name from blkid_get_devname in tune2fs and
e2fsck, and print an error if the requested LABEL/UUID does 
not exist (previously, we core dumped!)
2003-11-21 09:10:29 -05:00
Theodore Ts'o ef344e13d2 Centeralize calculation of which blocks are reserved/used for
the superblock and block group descriptors into two functions:
ext2fs_reserve_super_and_bgd, found in lib/ext2fs/alloc_sb.c, and
ext2fs_super_and_bgd_lock, found in lib/ext2fs/close.c.

Change e2fsck/pass1.c (mark_table_blocks), lib/ext2fs/closefs.c
(ext2fs_flush), lib/ext2fs/initialize.c (ext2fs_initialize),
and misc/dumpe2fs.c (list_desc) to use these functions.

e2fsck/ChangeLog
    pass1.c (mark_table_blocks): Use the new function
    	ext2fs_reserve_super_and_bgd to calculate the blocks to be
    	reserved.

lib/ext2fs/ChangeLog
    closefs.c (ext2fs_super_and_bgd_loc): New function which
    	centralizes the calculation of the superblock and block
    	group descriptors.
    	(ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure
    	out where to write the superblock and block group
    	descriptors.
    
    alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which
    	reserves space in the block bitmap using
    	ext2fs_super_and_bgd_loc.
    
    initialize.c (ext2fs_initialize): Use
    	ext2fs_reserve_super_and_bgd to initialize the block bitmap.

misc/ChangeLog
    dumpe2fs.c (list_desc): Use ext2fs_super_and_bgd_loc to
    	determine the locations of the superblock and block group
     	descriptors.
2003-11-21 09:02:21 -05:00
Theodore Ts'o d07b150371 util.c (check_plausibility): Support 2.6 kernel header files,
instead of having the build to crash.  (Addresses Debian
	bug #221778)
2003-11-20 18:34:20 -05:00
Theodore Ts'o 89e9fc4d3c m_meta_bg: New test case to test the meta block group feature.
m_raid_opt: New test case to test raid striping

m_large_file: Fix description

run_e2fsck, run_mke2fs, filter_dumpe2fs: Add dumpe2fs output to
	the test output for comparison.  Add support for
	compressed expect scripts.
2003-09-03 09:51:52 -04:00
Theodore Ts'o 1cca86f5d8 Add regression tests for mke2fs.
Mke2fs has been modified to honor the MKE2FS_SKIP_PROGRESS, 
MKE2FS_DEVICE_SECTSIZE, and MKE2FS_SKIP_CHECK_MSG in order 
facilitate the regression testing.
2003-09-01 09:28:18 -04:00
Theodore Ts'o 2a3a52367e Update debian changelog
Force e2fsprogs to use the most current version of e2fslibs.  (Closes 
Debian bug #208103.
2003-08-31 23:07:16 -04:00
Theodore Ts'o 79120f8002 mke2fs.c (set_fs_defaults): Fix bug which caused -T largefile or
-T largefile4 to core dump due to a division by zero
	error.  (Addressed Debian bug #207082)
2003-08-31 20:56:57 -04:00
Theodore Ts'o 557ddb2fdf util.c (get_backup_sb): Check to make sure the context is passed
in non-NULL before trying to dereference it.  Otherwise we
	might core dump when called to expand %S in a problem
	description.
2003-08-24 21:36:38 -04:00
Theodore Ts'o a7ac1df34f Adjust description line so that apropos "ext2" or "ext3" will
find all of the e2fsprogs man pages.  (Addresses Debian Bug #206845)
2003-08-24 17:56:41 -04:00
Theodore Ts'o 2ff2971275 Change the priority of libblkid1-udeb to be required instead of
standard, to match the override file.

Update the debian changelog file.
2003-08-21 09:00:14 -04:00
Theodore Ts'o 27479eb227 journal.c (e2fsck_move_ext3_journal): When moving the journal or
backing up the journal inode, make sure it gets written to
	all the superblocks.
2003-08-21 08:59:38 -04:00
Theodore Ts'o 91a7766ace ADD TAG: E2FSPROGS-1_35-WIP-0821 2003-08-21 02:14:44 -04:00
Theodore Ts'o 6826bde546 Update for 1.35-WIP 21-Aug-2003 release. 2003-08-21 02:14:44 -04:00
Theodore Ts'o f27eb6e8c0 Update po files. 2003-08-21 02:11:44 -04:00
Theodore Ts'o 1d658a1361 Fix misc. debian packaging problems.
* Move the initrd script from /etc/mkinitrd/scripts to
  /usr/share/initrd-tools/scripts so that mkinitrd will not remove
  the file when it is uninstalled.  (Addresses Debian bug #204019)

* Remove unneeded files in debian directory: blkid-dev.substvars and
   e2fsprogs-bf.lintian-overrides.  (Addresses Debian bug #203914)

* Support "noopt" in DEB_BUILD_OPTIONS instead of "debug".  
   (Addresses Debian bug #203914)
2003-08-21 01:53:07 -04:00
Theodore Ts'o a435ec3449 Add support for backing up the journal inode location in the
superblock.  E2fsck will automatically save the journal information
in the superblock if it is not there already, and will use it if the
journal inode appears to be corrupted.  ext2fs_add_journal_inode() 
will also save the backup information, so that new filesystems
created by mke2fs and filesystems that have journals added via
tune2fs will also have journal location written to the superblock as
well.  Debugfs's logdump command has been enhanced so that it can
use the journal information in the superblock.

The debugfs man page has been improved to more fully describe the
logdump command.

Added two new functions, ext2fs_file_open2() and 
ext2fs_inode_io_intern2() which take a pointer to an inode structure;
this is needed so that e2fsck and debugfs can synthesize a
fake journal inode and use it to access the journal.
2003-08-21 00:40:26 -04:00
Theodore Ts'o 51bc084517 Makefile.in: Delete com_err.info on a make clean
testcases: Update to reflect fixed prototype for
	initialize_xxx_err_table_r.
2003-08-20 12:54:31 -04:00
Theodore Ts'o 54a31a3b2e e2fsck.h, unix.c (PRS, e2fsck_clear_progbar,
e2fsck_simple_progress): Don't print the ^A and ^B
	characters which bracket the progress bar when the e2fsck
	program is talking directly to a tty, but only when it is
	being piped to another program.  (Addresses Debian bug
	#204137)
unix.c: Move some initialized variables to the BSS segment to 
	shrink the size of the e2fsck executable.
2003-08-19 10:08:34 -04:00
Theodore Ts'o 924b083a3e et_h.awk: Fix wrong prototype for initialize_xxx_err_table_r.
(Thanks to Gombas Gabor for pointing this out, addresses
	Debian bug #204332)
2003-08-19 08:36:48 -04:00
Theodore Ts'o 68ea43e0a6 ADD TAG: E2FSPROGS-1_35-WIP-0801 2003-08-02 20:48:35 -04:00
Theodore Ts'o 858dd7b112 Update for 1.35-WIP 01-Aug-2003 release. 2003-08-02 20:48:35 -04:00
Theodore Ts'o 0c193f8204 Include inttypes.h if present. New macros INT_TO_VOIDPTR and
VOIDPTR_TO_INT.  Use them throughout for int<->void *
	casts to fix 64-bit warnings.
2003-08-01 14:26:23 -04:00
Theodore Ts'o 8b949fb581 Fix tests so that they work even with --disable-htree.
f_salveage_dir: Remove HTREE flag from the test image's
	superblock.  (It is not needed).

f_h_reindex: Skip this test of the htree is not enabled

f_dup_de: If htree is not enabled, clear the htree flag, and use
	alternate expect scripts for the test.
2003-08-01 13:25:26 -04:00
Theodore Ts'o 74832b53a0 fs_ext2.c (fs_cleanup, fs_init_task, fs_set_volumes): Use an
ugly union to fix pointer aliasing problems in lib/evms.
2003-08-01 11:02:24 -04:00
Theodore Ts'o c4e3d3f374 ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem()
all now take a 'void *' instead of a 'void **' in order to 
avoid pointer aliasing problems with GCC 3.x.
2003-08-01 09:41:07 -04:00
Matthias Andree 0ec1b153ba Use $(MAKE) rather than hardcoded "make", to aid build process on
systems that expect GNU make as "gmake".
2003-08-01 15:09:15 +02:00
Theodore Ts'o 44104b2b37 Add Heimdal compile_et extensions from Philipp Thomas <pthomas@suse.de> 2003-08-01 08:59:40 -04:00
Theodore Ts'o 1f9a60c251 badblocks.c (set_o_direct): Add check to make sure the file
offset of the device is page aligned.  (Addresses Debian
	Bug #203713)

badblocks.c (test_ro, test_rw): Add code to recover after an
	error so that we continue reading on page-aligned
	boundaries.  (Thanks to Philippe Troin <phil@fifi.org> for
	the patch.)
2003-08-01 00:58:00 -04:00
Theodore Ts'o 56dc917d85 Changed priority of libblkid1-udeb to be standard, not required. 2003-07-30 19:48:01 -04:00
Theodore Ts'o 8badf17f2e Explicitly specify the version of libblkid1 needed in e2fsprogs.shlibs.local
in order to avoid picking up the wrong depedency.  (Debian packaging
issue, closes Debian bug #203157)
2003-07-29 23:35:22 -04:00
Theodore Ts'o 88a8e83db8 Fix erroneous reference to /usr/share/doc/e2fsprogs/html-info in
/usr/share/doc-base/libext2fs (Closes: #203157)
2003-07-29 23:13:14 -04:00