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
3eee5e9eed
Update for release of e2fsprogs 1.36.
2005-02-05 18:26:03 -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
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
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
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
550a4afa24
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 )
2005-01-25 03:09:24 -05:00
Theodore Ts'o
2d09601006
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.
2005-01-23 16:49:56 -05:00
Theodore Ts'o
9214dccbfb
Miscellaneous gcc -Wall cleanups. Use fixed rather than floating point
...
math to avoid rounding issues.
2005-01-19 13:57:40 -05:00
Theodore Ts'o
ecd0d8fe2a
Clean up Matthais's "fix crash when /proc/acpi/ac_acapter is not present"
...
patch.
2005-01-17 13:59:18 -05:00
Matthias Andree
4b13704cbe
Fix crash when /proc/acpi/ac_adapter/ is not present, for instance,
...
on pre-ACPI and non-Linux systems.
2005-01-13 03:35:29 +01:00
Theodore Ts'o
d2ee56d86e
Fix configure.in to use AC_CHECK_TYPES instead of the "broken by design"
...
autoconf 2.13 version of AC_CHECK_TYPE. Otherwise, on some platforms
intptr_t might get erroneously #define'd to be long. (Addresses
Debian Bug #289133 )
2005-01-09 00:57:45 -05:00
Theodore Ts'o
22ba4c1ded
Make tune2fs and e2fsck consistent about allowing at most 50% of the blocks
...
in a filesystem to be reserved for allocation by the root user.
2005-01-06 14:05:17 -05:00
Theodore Ts'o
dc8ce34637
Fix resize inode handling on big endian systems, by adding new routines
...
that read/write indirect blocks, byte swapping them if necessary.
2005-01-06 00:04:24 -05:00
Theodore Ts'o
c3ffaf833b
Add support to detect corrupted resize_inode's to e2fsck.
2004-12-24 01:42:22 -05:00
Theodore Ts'o
71669d0541
Avoid some potential inode cache coherency problem caused by using the
...
byte-swapping options to e2fsck. This was the cause of some hard to
reproduce problems that had been reported in the past, and which the
resize_inode changes tickled in a much more repeatable fashion.
2004-12-23 21:49:05 -05:00
Theodore Ts'o
e75cfc5da8
Fix e2fsck so that it will clean up filesystesm that have the
...
resize_inode capability disabled, but which still have the
s_reserved_gdt_blocks field set in the superblock, or which
still have blocks in the inode #7 (the resize inode).
2004-12-16 20:13:45 -05:00
Theodore Ts'o
22c6821a24
Supplied changelog for resize inode patch.
2004-12-15 17:26:32 -05:00
Theodore Ts'o
d323f8fb36
Add support for on-line resizing ala the resize inode. This patch
...
is taken from Fedora Core 3's e2fsprogs 1.35-11.2.src.rpm's
e2fsprogs-resize.patch.
2004-12-15 14:39:16 -05:00
Theodore Ts'o
acb79d9d19
Fix stupid core dumping bug if the TZ environment variable isn't set.
2004-12-15 12:21:41 -05:00
Theodore Ts'o
522798d342
Add install-strip and install-shlibs-strip targets
...
Use Linux-kernel-style makefile output for "make install"
Update intl/Makefile.in to version from gettext 0.14.1
2004-12-15 11:28:55 -05:00
Theodore Ts'o
6d4022786d
Use MKINSTALLDIRS macro so that the Makefiles can find the script
...
correctly.
Update Makefile dependencies.
Update "make depend" production so that it filters out comments
inserted by newer gcc compilers.
Remove sync from e2fsck's "make all" target.
2004-12-14 21:46:26 -05:00
Theodore Ts'o
8ff1a86005
If the TZ environment variable is set to GMT, use gmtime()
...
instead of localtime() or ctime() to force the use of GMT.
This is because the dietlibc doesn't honor the TZ environment
variable.
2004-11-30 19:57:20 -05:00
Theodore Ts'o
2e8ca9a26b
Add support for passing options to the io layer using the URL syntax. For
...
example, /tmp/test.img?offset=1024. Multiple options can separated using
the & character, although at the moment the only option implemented is
the offset option in the unix_io layer.
2004-11-30 14:07:11 -05:00
Theodore Ts'o
47204ff983
Use Linux-kernel-style makefile output to make it easier to
...
see errors/warnings.
2004-11-30 10:52:27 -05:00
Richard Mortimer
6e4fbbeb50
Attempt recovery if the journal contains illegal blocks
2004-10-04 17:56:24 +01:00
Theodore Ts'o
8421fb67f2
pass1.c (process_block): Change the limit of directory size from
...
32 MB to 2GB.
2004-07-26 20:11:49 -04:00
Theodore Ts'o
93effaa456
Fixed potential ordering constraint problem in e2fsck's journal
...
recovery code by implementing the sync_blockdev function. Thanks to
Junfeng Yang from the Stanford Metacompilation group for pointing this
out.
2004-05-26 20:58:45 -04:00
Theodore Ts'o
aa5c0a4562
Remove .cvsignore files; they were out of date, and causes lintian
...
to flame about their presence in the source tarball.
2004-05-05 09:02:36 -04:00
Theodore Ts'o
66fbee8cbb
unix.c (check_if_skip): If the checkinterval is zero, then
...
disregard it when calculating when the next check will
take place by e2fsck.
2004-05-04 20:38:17 -04:00
Theodore Ts'o
c07f9f2639
In e2fsck, when trying to determine if the system is running on
...
battery, be more flexible about the name of the ACPI device that
corresponds to the AC adapter. (Addresses Debian bug #242136 )
2004-04-12 00:16:44 -04:00
Theodore Ts'o
dd60705665
Refine the build process to avoid re-running subst all the time on
...
some generated files, by having subst update the modtime on these
files even when the generated file hasn't changed. We do this with
generated files that do not have any downstream dependencies.
2004-04-03 13:53:46 -05:00
Matthias Andree
83e692e88b
unix_io.c, pass1.c:
...
int -> unsigned for 1 bit wide bitfields - we cannot have a value and a sign in 1 bit.
Fixes some of the Intel C++ 8.0 warnings (-w1 level).
2004-03-30 04:17:14 +02:00
Theodore Ts'o
b70b1167fe
Update version number for e2fsprogs 1.35 release.
2004-02-28 10:52:35 -05:00
Theodore Ts'o
bc69f82db8
Add missing break statement so e2fsck -k actually works.
...
(Addresses Debian Bug #234993 )
2004-02-27 10:39:27 -05:00
Theodore Ts'o
4fb9d52ba6
unix.c (main, PRS), e2fsck.8.in: Add a new -k option which keeps
...
the existing badblocks list when using the -c option.
(Addresses Debian bug #229103 )
2004-02-24 00:16:09 -05:00
Theodore Ts'o
ed52f62bbd
Makefile.in (PROFILED_LIBS, PROFILED_DEPLIBS): Fix reference to
...
libblkid so that the build will work with --enable-profile
(Addresses Sourceforge bug #811408 )
2004-02-23 21:26:23 -05:00
Theodore Ts'o
151786fc55
Fix up preen mode messages during pass 1B/C/D.
2004-02-22 15:41:11 -05:00
Theodore Ts'o
bbbc92f2ed
e2fsck.c (e2fsck_run): Clear the SETJMP_OK flag when returning
...
so we don't double longjump into an invalid stack frame.
(Thanks to Matthias Andree for providing this fix.)
2004-02-21 20:53:03 -05:00
Theodore Ts'o
489f00248f
problem.c (fix_problem): Don't call print_e2fsck_message if the
...
message is empty; otherwise, the NLS substitution will
print the .po header, which is Just Wrong.
2004-01-31 21:24:51 -05:00
Theodore Ts'o
1ba7a2f2b6
Fix a byte swap bugs, including one which caused e2fsck to
...
incorrectly treat as valid symlinks created with SE Linux
(Debian bug #228723 ) as well as failing the f_journal test case on
big endian systems due to the backup journal blocks not being swapped.
2004-01-30 01:48:06 -05:00
Matthias Andree
b34cbddbd6
Re-add FreeBSD support.
...
Tested on FreeBSD 5.2-CURRENT as of 2003-12-28.
Tested on FreeBSD 4.9-STABLE as of 2003-12-27.
2003-12-28 18:21:26 +01:00
Matthias Andree
b969b1b8a5
Fix more compiler warnings.
2003-12-28 13:04:35 +01:00
Theodore Ts'o
2e5fcce05e
Fix bug in e2fsck: When reconnecting a directory, we may
...
need to create a lost+found directory. This may
invalidate our pointer to the directory information, so we
must look it up again after calling
e2fsck_reconnect_file(). (Addresses Debian bug #219640 ).
2003-12-12 03:00:56 -05:00
Theodore Ts'o
6c7d61da00
e2fsck.h (E2F_FLAG_RESTARTED): Assign a unique flag bitfield to
...
E2F_FLAG_RESTARTED. This fixes a bug where if the user
specifies an alternate superblock, and the journal needs
to be replayed, e2fsck would erroneously assume that
journal had been run already without clearing the
NEEDS_RECOVERY flag, and bomb out with an error.
2003-12-11 01:00:21 -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