summaryrefslogtreecommitdiff
path: root/e2fsck/unix.c
AgeCommit message (Collapse)AuthorFilesLines
2005-06-20Fix e2fsprogs messages for grammar and consistency, based on suggestionsTheodore Ts'o1-8/+11
from Benno Schulenberg. Add missing _() so all strings can be internationalized.
2005-04-14Use a centrally stored current time for "now" which Theodore Ts'o1-6/+5
can be overridden using the E2FSCK_TIME environment variable, for better reproducibility for regression tests.
2005-01-25E2fsck will now check the individual block group inode and block free counts,Theodore Ts'o1-1/+3
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-19Miscellaneous gcc -Wall cleanups. Use fixed rather than floating pointTheodore Ts'o1-13/+12
math to avoid rounding issues.
2005-01-17Clean up Matthais's "fix crash when /proc/acpi/ac_acapter is not present"Theodore Ts'o1-16/+17
patch.
2005-01-13Fix crash when /proc/acpi/ac_adapter/ is not present, for instance,Matthias Andree1-1/+2
on pre-ACPI and non-Linux systems.
2004-11-30Add support for passing options to the io layer using the URL syntax. For Theodore Ts'o1-8/+17
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-05-04unix.c (check_if_skip): If the checkinterval is zero, thenTheodore Ts'o1-1/+2
disregard it when calculating when the next check will take place by e2fsck.
2004-04-12In e2fsck, when trying to determine if the system is running on Theodore Ts'o1-4/+22
battery, be more flexible about the name of the ACPI device that corresponds to the AC adapter. (Addresses Debian bug #242136)
2004-02-27Add missing break statement so e2fsck -k actually works. Theodore Ts'o1-0/+1
(Addresses Debian Bug #234993)
2004-02-24unix.c (main, PRS), e2fsck.8.in: Add a new -k option which keepsTheodore Ts'o1-2/+5
the existing badblocks list when using the -c option. (Addresses Debian bug #229103)
2003-12-07Fix gcc -Wall nitpicksTheodore Ts'o1-11/+11
2003-12-02When testing a disk using e2fsck -c, use the listTheodore Ts'o1-1/+1
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-11-21In e2fsck, given an extra grace period before actually forcingTheodore Ts'o1-0/+31
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-21In e2fsck, if the number of mounts until the next forced filesystemTheodore Ts'o1-3/+20
check is 5 or less, mention this to the user. (Addresses Debian bug #157194)
2003-11-21Check the returned name from blkid_get_devname in tune2fs andTheodore Ts'o1-0/+5
e2fsck, and print an error if the requested LABEL/UUID does not exist (previously, we core dumped!)
2003-08-19e2fsck.h, unix.c (PRS, e2fsck_clear_progbar, Theodore Ts'o1-19/+24
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-05-17unix.c (show_stats), e2fsck.h: Use ngettext (abbreivated withTheodore Ts'o1-81/+35
the macro P_(str1, str2, n)) to simplify the statistics reporting.
2003-05-05Add --enable-test-io-debug configure option which causes e2fsck andTheodore Ts'o1-3/+3
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-03Add Czech translation.Theodore Ts'o1-1/+1
Remove "NYC" translation. Add Czech translation from Miloslav Trmac <mitr@volny.cz> Random NLS and other display fixes from Miloslav.
2003-04-19Fix gcc -Wall warnings.Theodore Ts'o1-7/+1
2003-04-16Use setvbuf instead of setbuf to force stdout andTheodore Ts'o1-3/+3
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 * Add support for the -a and -s options to logsave.Theodore Ts'o1-4/+5
* 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-13Add portability enhancements for Cygwin32 environment.Theodore Ts'o1-0/+2
2003-03-14Add Apple/Darwin patches.Theodore Ts'o1-0/+2
2003-03-14Change e2fsck to detect and offer to delete or rename duplicate Theodore Ts'o1-46/+67
filenames in directories when rebuilding directories using "e2fsck -fD /dev/XXX"
2003-03-01Update debugfs and e2fsck to use the blkid library.Theodore Ts'o1-23/+10
2003-01-29Fixed up minor documentation issues (man page for badblocks and usageTheodore Ts'o1-1/+1
message for e2fsck).
2003-01-02Detect if there is an attempt to run the journal twice, and Theodore Ts'o1-0/+12
abort the e2fsck run with an error if this is the case. (Address IBM Bugzilla bug #1226)
2003-01-02Print an error if more than one of the -p/-a, -n or -y options Theodore Ts'o1-3/+9
are passed to e2fsck.
2002-11-08unix.c (main): Fix a bug where e2fsck could erroneously mark aTheodore Ts'o1-12/+13
filesystem as being valid if it was being checked and it is interrupted with a ^C. (Bug introduced in e2fsprogs 1.28.)
2002-11-08unix.c (PRS), journal.c: Set the default level of journalTheodore Ts'o1-0/+8
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-07e2fsck.h, unix.c (main, check_mount): Fix e2fsck so that itTheodore Ts'o1-9/+7
returns the appropriate exit code, so that the boot scripts will be told that they need to automatically reboot.
2002-10-31unix.c (usage), e2fsck.8.in: Add the -D option to the usage andTheodore Ts'o1-1/+1
command synopsis. (Addresses Debian bug #167108) (missed this file in the previous checkin)
2002-10-13Fix gcc -Wall nits.Theodore Ts'o1-1/+1
Fix format bug if NLS is in use. Add extra so that the info directory looks OK on OpenWall.
2002-09-28Add a more sophisticated algorithm to e2fsck to salvage corruptedTheodore Ts'o1-5/+6
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-08-17Overhaul extended attribute handling. Should now be correct withTheodore Ts'o1-2/+64
respect to the latest V2 bestbits ACL code.
2002-07-25Add e2fsck -D option which optimizes/compresses directories. Theodore Ts'o1-5/+8
General cleanup of rehash code. (Fixed a few bugs, reformatted code to make it more maintainable, etc.)
2002-07-21Add SIGINT and SIGTERM handling to fsck and e2fsck. For e2fsck,Theodore Ts'o1-9/+29
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-06-25Add initial support for htree directories.Theodore Ts'o1-1/+10
2002-05-16Add support for creating and checking 8192-byte blocksize filesystems.Andreas Dilger1-6/+4
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-03-07Fixed the journal handling so that an offer is made to clear theTheodore Ts'o1-1/+0
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-05Newer libintl needs LC_CTYPE to be set in addition to LC_MESSAGES.Theodore Ts'o1-0/+1
2001-12-24In mke2fs and e2fsck, specifying the -c option twice will now doTheodore Ts'o1-2/+8
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-23Enhnaced the get backup superblock function so that it doesTheodore Ts'o1-5/+5
the right thing if the filesystem superblock is unavailable; it will search for the superblock by iterating over possible blocksizes.
2001-12-21Give the opportunity for e2fsck to run the journal even if Theodore Ts'o1-3/+3
recovery flag is cleared. If we're using a backup superblock, run the journal by default.
2001-12-16Fix various gcc -Wall nits. Fixed a bug in mke2fs where a bogusTheodore Ts'o1-3/+2
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-09-19e2fsck: If a superblock is specified explicitly by theTheodore Ts'o1-1/+3
user, don't try to automatically fall back to an alternate superblock.
2001-08-27Remove EXT2FS_VERSION from the version display, since it Theodore Ts'o1-3/+2
only confuses people. Make fsck's version display be consistent with the other e2fsprogs programs.
2001-08-09unix.c (show_stats): Print the number of large files in verbose mode.Theodore Ts'o1-0/+3