Commit Graph

361 Commits (9bf19713c8b4e5b325ad33c1b14271a2881fa381)

Author SHA1 Message Date
Theodore Ts'o 5e38fed9c5 fsck.c (wait_many): Rename wait_all() to wait_many(), and have
new semantics: WAIT_ALL vs. WAIT_ATLEAST_ONE.  This fixes
	a bug where when fsck is waiting for another partition on
	the same spindle, it spins wasting a lot of CPU.
2003-07-21 20:43:21 -04:00
Theodore Ts'o 1c29b0979a badblocks.c (do_read, do_write, test_rw): Change the read/write
test to honor the -c option (number of blocks at a time).
	do_read and do_write will try to turn on the O_DIRECT flag
	if it appears that it is possible to use it.  (Addresses
	Debian bug #198006)
2003-07-12 16:01:45 -04:00
Theodore Ts'o 11393006c6 mke2fs.c (set_fs_defaults): If sector_size is 0, don't use it to
set the blocksize to zero.  This causes MD devices to fail
	since they don't support the BLKSSZGET ioctl.  (Addresses
	Debian bug #196734)
2003-07-12 01:58:12 -04:00
Theodore Ts'o a7ccdff8e1 In mke2fs and resize2fs, round the default size of the filesystem to
be an even multiple of the pagesize to work around a potential
Linux kernel bug.

Use the testio manager in mke2fs if CONFIG_TESTIO_DEBUG is set.
2003-07-08 18:03:48 -04:00
Theodore Ts'o 48e6e81362 Fixx gcc -Wall nitpicks. 2003-07-06 00:36:48 -04:00
Theodore Ts'o 93d5c38791 mke2fs.c (PRS, set_fs_defaults): If the sector size of the
device is larger than the default block size, then use the
	sector size of the device as the default block size.

getsectsize.c (ext2fs_get_device_sectsize): New function which
   	returns the hardware sector size (if it is available).
2003-05-21 17:28:29 -04:00
Theodore Ts'o 84c054577f badblocks.c: Use an unsigned integer to support 4-byte test
patterns with the high bit set.  Let the user explicitly
	specify a random pattern with the argument "random".
2003-05-18 01:11:52 -04:00
Theodore Ts'o 849b6bc8ec badblocks.c, badblocks.8.in: Functional enhancements contributed
by Thayne Harbaugh.  These patches allow the -t option to
	control the test pattern(s) used when checking the disk.
	Test patterns may be specified in all modes (r/w, r/o and
	non-destructive).
2003-05-07 09:52:14 -04:00
Theodore Ts'o 6d40f568cd badblocks.c (test_rw): Fix minor memory leak with test_rw() is
called for multiple passes.
	(test_nd): Fix bug in chosing randomness for the
	non-destructive test.  We were only using 1 bit of
	randomness per byte instead of 8 due to a bit-shift bug.
	Also, initialize the random number generator from the time
	in main().  Thanks to Thayne Harbaugh for pointing out
	these bugs.
2003-05-07 08:35:38 -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 bc7c14e040 tune2fs.c (parse_time): Add portability code to work around lack
of strptime().
2003-05-03 16:40:09 -04:00
Theodore Ts'o a04eba3f88 Update to gettext 0.11.5. We now enable NLS support by default.
Fixed up support for using the internal intl library.
2003-05-03 16:35:17 -04:00
Theodore Ts'o 71df0dc393 Update for 1.33 release.
Fix typo's in README.subset

Change debian control file so it doesn't bomb out if the EVMS FSIM
is not there, since it is not built on the Hurd.  Resolves Debian
bug #189687.
2003-04-21 16:17:09 -04:00
Theodore Ts'o fc56eee2ea Makefile.in (uuidgen): Avoid linking lsattr and chattr against
libext2fs, and avoid linking blkid against any of the ext2
	libraries.
2003-04-18 07:32:00 -04:00
Theodore Ts'o 814dc05673 Fsck does not need to linked against the ext2 libraries anymore. 2003-04-17 21:58:27 -04:00
Theodore Ts'o 2ecaaf6557 Put stdout and stderr into non-buffered mode to
avoid cosmetic problems when running fsck under logsave.
2003-04-16 16:13:58 -04:00
Theodore Ts'o 3879857e86 Avoid printing the version banner for mke2fs if
the -q option is specified.  (Addresses Debian bug #172716)
2003-04-16 15:29:39 -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 16fa86b9c5 Remove the debian-special legal permission notes. 2003-04-14 20:40:49 -04:00
Theodore Ts'o f9ddad5982 Add logsave, a new program which saves the output of a command
in a log file, even if the containing directory hasn't been
mounted yet (in which case the it saves the output in
memory until it can write out the logfile).
2003-04-14 18:05:12 -04:00
Theodore Ts'o c5290fae39 Mke2fs can be given a minimum block size by passing in a negative
number to the -b option.
2003-04-11 22:10:50 -04:00
Theodore Ts'o 5e05541ad0 mke2fs.8.in: Document the -g option. (Addresses Debian bug #188318) 2003-04-11 14:00:53 -04:00
Theodore Ts'o 5e804b72b6 Fix bug where mke2fs was incorrectly checking
the argument to the -g option, if the default block size
is used.  (Addresses Debian bug #188319)
2003-04-11 13:46:57 -04:00
Theodore Ts'o ccbed85afe tune2fs.8.in, mke2fs.8.in: Document the dir_index filesystem
feature which can be used with the -O option.
2003-04-11 13:32:31 -04:00
Theodore Ts'o ee828a9d1e fsck.c (parse_fstab_line, interpret_type, fsck_device, ignore,
main): Don't evaluate the filesystem type when loading the
	fstab file, since that might cause fsck to hang trying to
	read from a floppy disk.  (Addresses Debian bug #187812)
	Add tmpfs and devpts to filesystems that should be
	ignored, and add jfs, reseirfs, and xfs as filesystems
	types where we should complain if we can't find the fsck
	program for that filesystem type.
2003-04-06 23:08:47 -04:00
Theodore Ts'o cc4f98ed2d badblocks.c (bb_output): Flush output to the badblocks
output file as bad blocks are discovered.
2003-04-03 11:37:46 -05:00
Theodore Ts'o fc05eb08ba Fixed chattr man page to clarify description of the 't' (no tail)
attribute.
2003-03-25 23:02:34 -05:00
Theodore Ts'o e71d87317a Add Apple/Darwin patches. 2003-03-14 02:13:48 -05:00
Theodore Ts'o eca53e3c4e e2image.c (write_raw_image_file): Include blocks from slow
symbolic links in the raw image file.
2003-03-14 00:38:45 -05:00
Theodore Ts'o 332f2c2382 tune2fs.c (parse_tune2fs_options, parse_e2label_options): Allow
the device name to be specified using LABEL=xxx or
	UUID=xxx, since we're including the blkid library anyway.
	(Addresses Debian bugs #166048, #179671)
2003-03-06 12:58:33 -05:00
Theodore Ts'o 77be4d2df1 Minor man page fixes (Addresses Debian bugs #173612, #175233,
#175113, and #170497)
2003-03-06 12:39:55 -05:00
Theodore Ts'o ed78c021c3 Fix up lots of portability problems that caused e2fsprogs not to build successfully
under Solaris.
2003-03-06 11:09:18 -05:00
Theodore Ts'o ed1b33e8fb Minor bug fixes in the blkid library.
Convert mke2fs, fsck, and tune2fs to use the blkid library.
2003-03-01 19:29:01 -05:00
Theodore Ts'o 98999c399d Rename blkid_get_devname() to blkid_get_dev(), and blkid_get_token()
to blkid_get_devname().
2003-02-16 00:47:07 -05:00
Theodore Ts'o 50b380b4d4 Wholesale changes to blkid library to simplify the implementation
and shrink its size.  Change library version to be 1.0.
2003-02-12 23:51:21 -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 7a603aa89f Separate public and private interfaces into separate header files.
Start separating internal implementation details from the
publically exported interface of the blkid library.
2003-01-26 01:54:39 -05:00
Theodore Ts'o e12f2ae74c Integrate new blkid library. 2003-01-23 16:45:16 -05:00
Theodore Ts'o 76ea3a2c7f fsck.c (parse_fstab_line, parse_escape): Add support for
backslash escaping in /etc/fstab.  (i.e., so that \040
	will work.)
2003-01-22 19:55:59 -05:00
Theodore Ts'o 54779c66e0 Update to deal with the fact that the INDEX_FL code in the ext2 2.4
code accidentally had the INDEX_FL backwards compatibility code
removed.   E2fsck will now fix HTREE corruptions in preen mode, and
mke2fs will not create filesystems with the dir_index flag set
by default.  (The user has to specifically request it.)
2002-11-13 07:00:16 -05:00
Theodore Ts'o 38513011b9 Update files for 1.32 release. 2002-11-09 15:00:56 -05:00
Theodore Ts'o ae65b29f11 Update files for 1.31 release. 2002-11-08 20:08:48 -05:00
Theodore Ts'o 51f8f8d260 chattr.1.in: Update man page 2002-11-08 20:02:21 -05:00
Theodore Ts'o 5d823a478f Update files for 1.30 release. 2002-11-01 02:13:53 -05:00
Theodore Ts'o a2c8bf9483 ext2_fs.h: Add support for a new inode flag, which is to be used
for indicating the top of directory hierarchies for the
	Orlov block allocator.
2002-11-01 02:01:41 -05:00
Theodore Ts'o 15f9011add Add support for a new inode flag, which is to be used
for indicating the top of directory hierarchies for the
Orlov block allocator.
2002-11-01 01:53:52 -05:00
Theodore Ts'o f68b3b0bda get_device_by_label.c (read_partitions): Pay attention to
partitions returned in /proc/partitions that begin with
	with the string "lvm".
2002-10-31 15:30:26 -05:00
Theodore Ts'o 482afc442d Makefile.in (install): Search all compression extensions when
deleting old man pages.
2002-10-31 03:32:34 -05:00
Theodore Ts'o 76dd5e5c28 Add support for the meta_bg feature flag to the resize2fs program.
Fix bug in meta_bg support in mke2fs, e2fsck, and dumpe2fs; we were 
incorrectly reserving the legacy block groups desriptor blocks.
2002-10-30 23:07:21 -05:00