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
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
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
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
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
544349270e
Fix gcc -Wall nitpicks
2003-12-07 01:28:50 -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
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
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
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
113e405bb6
unix.c (show_stats), e2fsck.h: Use ngettext (abbreivated with
...
the macro P_(str1, str2, n)) to simplify the statistics
reporting.
2003-05-17 21:00:46 -04:00
Theodore Ts'o
2a29f1354f
Add --enable-test-io-debug configure option which causes e2fsck and
...
tune2fs to use the test I/O manager.
The test I/O manager has been changed to not do anything extra by
default, unless the TEST_IO_FLAGS and/or TEST_IO_BLOCK environment
variables are set, which controls what I/O operations are logged and
a block number to watch, respectively. The log messages are sent to
stderr by default, unless a filename is specified via the
TEST_IO_LOGFILE environment variable.
2003-05-05 12:08:47 -04:00
Theodore Ts'o
ddc32a045b
Add Czech translation.
...
Remove "NYC" translation. Add Czech translation from Miloslav
Trmac <mitr@volny.cz>
Random NLS and other display fixes from Miloslav.
2003-05-03 18:45:55 -04:00
Theodore Ts'o
520ead378e
Fix gcc -Wall warnings.
2003-04-19 13:48:27 -04:00
Theodore Ts'o
908b785c3f
Use setvbuf instead of setbuf to force stdout and
...
stderr to be non-buffered when the stdout/stderr are a pipe.
This fixes a cosmetic problem when using e2fsck under logsave.
2003-04-16 15:20:13 -04:00
Theodore Ts'o
bc34d6be65
* Add support for the -a and -s options to logsave.
...
* Change e2fsck to bracket its progress bar output with ctrl-A and ctrl-B
characters, so that logsave -s can omit writing the progress bar output
to the log file.
2003-04-16 14:05:06 -04:00
Theodore Ts'o
fff45483ed
Add portability enhancements for Cygwin32 environment.
2003-04-13 00:44:19 -04:00
Theodore Ts'o
e71d87317a
Add Apple/Darwin patches.
2003-03-14 02:13:48 -05:00
Theodore Ts'o
b0700a1b60
Change e2fsck to detect and offer to delete or rename duplicate
...
filenames in directories when rebuilding directories using
"e2fsck -fD /dev/XXX"
2003-03-14 01:43:56 -05:00
Theodore Ts'o
f364093b19
Update debugfs and e2fsck to use the blkid library.
2003-03-01 19:47:44 -05:00
Theodore Ts'o
19445ef970
Fixed up minor documentation issues (man page for badblocks and usage
...
message for e2fsck).
2003-01-29 21:04:52 -05:00
Theodore Ts'o
b92ae1535c
Detect if there is an attempt to run the journal twice, and
...
abort the e2fsck run with an error if this is the case.
(Address IBM Bugzilla bug #1226 )
2003-01-02 16:53:54 -05:00
Theodore Ts'o
8161a7484f
Print an error if more than one of the -p/-a, -n or -y options
...
are passed to e2fsck.
2003-01-02 16:36:44 -05:00
Theodore Ts'o
c1637bd371
unix.c (main): Fix a bug where e2fsck could erroneously mark a
...
filesystem as being valid if it was being checked and it
is interrupted with a ^C. (Bug introduced in e2fsprogs
1.28.)
2002-11-08 15:55:17 -05:00
Theodore Ts'o
5e72cdbeb9
unix.c (PRS), journal.c: Set the default level of journal
...
debugging to be 0, and allow the user to set the level of
journal debugging by using the E2FSCK_JBD_DEBUG
environment variable.
2002-11-08 15:35:13 -05:00
Theodore Ts'o
ee895139d7
e2fsck.h, unix.c (main, check_mount): Fix e2fsck so that it
...
returns the appropriate exit code, so that the boot
scripts will be told that they need to automatically
reboot.
2002-11-07 16:16:55 -05:00
Theodore Ts'o
4fd6834c68
unix.c (usage), e2fsck.8.in: Add the -D option to the usage and
...
command synopsis. (Addresses Debian bug #167108 )
(missed this file in the previous checkin)
2002-10-31 19:39:03 -05:00
Theodore Ts'o
3e69906495
Fix gcc -Wall nits.
...
Fix format bug if NLS is in use.
Add extra so that the info directory looks OK on OpenWall.
2002-10-13 23:56:28 -04:00
Theodore Ts'o
e70ae99e07
Add a more sophisticated algorithm to e2fsck to salvage corrupted
...
directories.
Speed up e2fsck slightly by only updating the master superblock;
there is no point to update the backup superblocks.
Fix a small bug in the rehashing code which could leave the indexed
flag set even after the directory was compressed instead of indexed.
(Not fatal, since the kernel will deal with this, but technically
it filesystem isn't consistent, and the filesystem will be marked
as being in error when the kernel comes across the directory. It
should also never happen in real life, since directories that small
will never be indexed, but better safe than sorry.)
Also change the threshold of when directories are indexed, so that
directories of size 2 blocks will be indexed. Otherwise they will
never be indexed by the kernel when they grow.
2002-09-28 09:16:28 -04:00
Theodore Ts'o
0684a4f33b
Overhaul extended attribute handling. Should now be correct with
...
respect to the latest V2 bestbits ACL code.
2002-08-17 10:19:44 -04:00
Theodore Ts'o
850d05e9aa
Add e2fsck -D option which optimizes/compresses directories.
...
General cleanup of rehash code. (Fixed a few bugs, reformatted
code to make it more maintainable, etc.)
2002-07-25 00:00:08 -04:00
Theodore Ts'o
4cae04529e
Add SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,
...
make sure we gracefully clean up and only exit at safe points.
For fsck, we pass the SIGINT/SIGTERM signal to the child processes,
so they can do their own cleanup.
2002-07-21 14:14:03 -04:00
Theodore Ts'o
8fdc9985c1
Add initial support for htree directories.
2002-06-25 23:26:34 -04:00
Andreas Dilger
932a489cdf
Add support for creating and checking 8192-byte blocksize filesystems.
...
We complain if you try to create such a filesystem on a system with 4096
byte PAGE_SIZE.
Add checks for valid inode size for undocumented -I option.
2002-05-16 03:20:07 -06:00
Theodore Ts'o
f2d5c93703
Fixed the journal handling so that an offer is made to clear the
...
journal filesystem in all cases.
Fixed a bug in e2fsck which caused it to give spurious I/O manager
bad messages right before crashes.
2002-03-07 03:13:07 -05:00
Theodore Ts'o
14308a5398
Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.
2002-03-05 03:26:52 -05:00
Theodore Ts'o
3ed57c27df
In mke2fs and e2fsck, specifying the -c option twice will now do
...
a read/write test on the disk. Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o
f1a1761d67
Enhnaced the get backup superblock function so that it does
...
the right thing if the filesystem superblock is unavailable;
it will search for the superblock by iterating over possible
blocksizes.
2001-12-23 22:27:52 -05:00
Theodore Ts'o
d37066a9fa
Give the opportunity for e2fsck to run the journal even if
...
recovery flag is cleared. If we're using a backup
superblock, run the journal by default.
2001-12-21 23:28:54 -05:00
Theodore Ts'o
4ea7bd0439
Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogus
...
error message could be printed on an malloc() failure, and e2image
was optimized to avoid needless system calls by using the stashed
inode functions.
2001-12-16 23:23:37 -05:00
Theodore Ts'o
ae6cdcf74a
e2fsck: If a superblock is specified explicitly by the
...
user, don't try to automatically fall back to an
alternate superblock.
2001-09-19 15:17:25 -04:00
Theodore Ts'o
0f8973fb09
Remove EXT2FS_VERSION from the version display, since it
...
only confuses people.
Make fsck's version display be consistent with the other e2fsprogs
programs.
2001-08-27 12:44:23 -04:00
Theodore Ts'o
2b94c658c7
unix.c (show_stats): Print the number of large files in verbose mode.
2001-08-09 04:08:52 -04:00
Theodore Ts'o
83e6ac84c7
unix.c (check_mount): Remove the code in e2fsck which tested for the
...
root filesystem being mounted read-only, and depend on the
results flags from ext2fs_check_if_mounted.
2001-07-30 16:29:52 -04:00
Theodore Ts'o
0628ae3948
unix.c (main): Move the final print_resource_track call after
...
the filesystem and context handle are closed
2001-07-29 12:26:46 -04:00