Commit Graph

979 Commits (b9f409255eec6ccaa7d297bcbf5e2a6478a02735)

Author SHA1 Message Date
Theodore Ts'o 571fc5a89c Fixes necessary for e2fsprogs to work using the diet libc.
- Renamed linux/list.h to be linux/linked_list.h to work around a
  problem caused by diet libc insistence to search the kernel
  header files ahead of all other files in the include path, 
  including the user specified include files.

- Worked around a bug in diet libc which core dumps when using 
  putc with stderr by using fputs instead.  As a bonus, this
  also shaved a few bytes off of com_err.o.

- Fixed a real bug in debugfs which was detected because diet libc
  was more sensitive than glibc when incorrectly using fclose()
  where pclose() is required.
2001-12-02 17:23:27 +01:00
Gabriel Paubert b3b3d465b1 journal.c: fix an endianness bug.
f_badorphan: revert previous, erroneous change.
2001-11-30 13:45:28 +01:00
Theodore Ts'o c618094bf6 ADD TAG: WIP-20011130 2001-11-30 12:02:46 +01:00
Theodore Ts'o 0221472217 Update for 1.26 WIP release. 2001-11-30 12:02:46 +01:00
Theodore Ts'o 24934b597b f_badorphan, f_journal: Update expect files to reflect the fact
that new e2fsck's will move the .journal file to a hidden
	inode.
2001-11-30 11:52:46 +01:00
Theodore Ts'o e89818835b debugfs.c (finish_range, dump_blocks): Fixed bug in Andreas's >
2GB support changes: you need to use %lld when printf'ing
	an long long variable.
2001-11-30 11:51:30 +01:00
Theodore Ts'o cd1a79a5ce Update for 1.26-WIP release. 2001-11-27 03:36:42 -05:00
Theodore Ts'o 8880e7599c unix_io.c (unix_open): Work around a bug in 2.4.10+ kernels by
trying to unset the filesize limit if at all possible,
	if a block device is getting opened.  (The filesize limit
	shouldn't be applied against writes to a block device, but
	starting in 2.4.10, the kernel is doing this.)
2001-11-26 21:05:36 -05:00
Theodore Ts'o aa4a58ba24 f_miss_blk_bmap: Add new test which checks for bug in e2fsck
where it wouldn't allocate a missing block bitmap on
	filesystems with a blocksize of 2k or 4k.
2001-11-26 20:00:07 -05:00
Theodore Ts'o 24bfb443fc super.c (check_super_block): Make sure that if the inode table
or allocation bitmap is zero, that it is marked as
	invalid, so that in pass #1, a new bitmap/inode table gets
	properly allocated.  (Addresses Debian Bug #116975)
2001-11-26 15:51:14 -05:00
Theodore Ts'o 1e9a7e0278 2fsck.8.in: Fix minor typo in man page and clarify device
specification.
2001-11-24 16:40:57 -05:00
Theodore Ts'o a36cf92009 e2image.8.in: Fix cut-and-paste typo (Addresses Debian bug #119624) 2001-11-24 16:13:49 -05:00
Theodore Ts'o 6e96adcb1c debugfs.8.in: Update manual page to document the set_super_value
and logdump commands, and move the "specifying files"
	section closer to the beginning of the man page so people
	won't miss it.

setsuper.c (print_possible_fields): "set_super_value -l" now
	prints out the list of valid superblock fields which the
	ssv command can set.
2001-11-24 16:10:52 -05:00
Theodore Ts'o 6ef3920a82 util.c (check_plausibility): Use stat64 if available so that
check_plausibility() works with files > 2GB.
2001-11-13 18:49:09 -05:00
Theodore Ts'o 5bc28df0fa mkjournal.c (ext2fs_add_journal_inode): When creating a .journal
file on adding a journal to an already-mounted filesystem,
	try to clear the ext2 file attributes on an already
	existing .journal file so that we don't fail if on a
	partially added journal to the filesystem.
2001-11-09 17:34:54 -05:00
Theodore Ts'o b3f5b4c229 Define a new ext2 file attribute, EXT2_NOTAIL_FL,
which signals that a particular inode should not have the
last bits of data (the "tail") be merged with another
file.  This is necessary to keep programs like LILO happy.
2001-11-05 19:22:02 -05:00
Theodore Ts'o 6430bd67ce fsck.c (interpret_type): If the "auto" type is specified, make
sure interpet_device() is called so that device
	specifications which use LABEL= or UUID= are translated
	into a real device name.
2001-11-05 18:58:46 -05:00
Theodore Ts'o e3ef3502f7 e2image.c (output_meta_data_blocks): Optimize away excess
lseek() calls when creating a sparse file.  Fewer system
	calls are a good thing.  <g>
2001-11-05 18:57:43 -05:00
Andreas Dilger 89e25cfdbf Support very large files with debugfs (first pass).
If a file is created with "dd if=/dev/zero of=<file> bs=1k skip=2047M"
it is created properly by the kernel, but fails to be seen properly
by debugfs - the blocks are not shown by stat <inum>, nor can they
be found by icheck.  This change fixes that.
2001-11-08 17:56:12 -07:00
Andreas Dilger 1a6bb6274f Change the i_size calculation to match current kernel policy of only
allowing large files for regular files, as opposed to non-directories.
2001-11-08 17:52:26 -07:00
Andreas Dilger 6a138ed42a Allow a single user for internal journals (the current filesystem)
since this is how the filesystem is created.
2001-11-08 17:50:50 -07:00
Andreas Dilger 568101f774 mke2fs.c(main): Always exit with non-zero code in case of error.
mke2fs.c(zap_sector): Check that buffer allocation succeeded.
2001-10-13 01:22:25 -06:00
Andreas Dilger 4941fe80d3 Add libuuid man pages to the RPM spec file.
Add a copyright statement to the libuuid man page which identifies it
as being under LGPL.  While this is conveyed in the source code, it is
not mentioned anywhere in the man pages or other documentation.
2001-10-01 16:02:20 -06:00
Andreas Dilger d6903eccf9 Update findsuper to support > 2GB device sizes.
Add extra validity checks over just ext2 magic detection.
Add progress meter.
2001-10-01 15:38:14 -06:00
Theodore Ts'o 6e71e67b11 Added new Turkish translation file and updated e2fsprogs.pot file. 2001-10-08 12:51:00 -04:00
Theodore Ts'o 62e3e7fe4f journal.c (clear_v2_journal_fields, e2fsck_journal_load): If the
V2 fields are set on a V1 journal superblock, or an
	internal V2 journal has s_nr_users is non-zero, clear the
	entire journal superblock beyond the V1 superblock.  This
	fixes botched V1->V2 updates.

problem.c, problem.h (PR_0_CLEAR_V2_JOURNAL): Add new problem code.

f_bad_local_jnl: New test which tests for a V2 journal with bad 
	fields caused by a botched V1->V2 upgrade.
2001-10-07 02:13:30 -04:00
Theodore Ts'o 773fd8a1d4 e2fsck.h, journal.c (e2fsck_move_ext3_journal): Add new function
which will automatically relocate the ext3 journal from a
	visible file to an invisible journal file if the
	filesystem has been opened read/write.

super.c (check_super_block): Add call to e2fsck_move_ext3_journal

problem.c, problem.h (PR_0_MOVE_JOURNAL, PR_0_ERR_MOVE_JOURNAL):
	Add new problem codes.
2001-10-06 21:26:27 -04:00
Stephen Tweedie ff63f2686f Fix debugfs/logdump.c to compile with configure --disable-swapfs. 2001-09-27 15:48:56 +01:00
Theodore Ts'o 5ad8e7a672 ADD TAG: E2FSPROGS-1.25 2001-09-20 10:50:04 -04:00
Theodore Ts'o 07b1d9c4cd Update .lsm file for 1.25 release. 2001-09-20 10:50:04 -04:00
Theodore Ts'o fbf9111216 Update changelogs for 1.25 release. 2001-09-20 10:47:47 -04:00
Theodore Ts'o d08a4cec6f Update for 1.25 release. 2001-09-20 09:47:42 -04:00
Theodore Ts'o f6a6afcef4 Remove dead code that wasn't in use from tune2fs. 2001-09-19 18:27:39 -04:00
Theodore Ts'o 39567c4493 tune2fs.8.in: Update man page to reflect the fact that adding or
removing a journal doesn't require running e2fsck.
2001-09-19 15:28:21 -04:00
Theodore Ts'o ea97be5a28 Remove use of AC_REQUIRE which had been used to prevent AC_CANONICAL_HOST
from being called twice, since it gives recent autoconf programs
heartburn (and doesn't seem to be required anymore), anyway.
2001-09-19 15:20:12 -04: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 2038b636b2 ismounted.c (check_mntent_file): We now validate the entry in
/etc/mtab to make sure the filesystem is really mounted,
	since some broken distributions (read: Slackware) have
	buggy boot scripts that don't initialize /etc/mtab before
	checking non-root filesystems.  (Slackware also doesn't
	check the root filesystem separately, and reboot if the
	root filesystem had changes applied to it, which is
	dangerous and broken.)
2001-09-14 07:44:25 -04:00
Theodore Ts'o 3f85f65c98 mke2fs.c (zap_sector): Allocate sufficient space for zero-filled
buffer.
2001-09-17 10:38:06 -04:00
Theodore Ts'o 7746cad695 ext2_ext_attr.h: Remove unneeded #include of <linux/config.h>
which was breaking the build on the hurd.  (Addresses
	Debain bug #112414)
2001-09-17 00:02:21 -04:00
Theodore Ts'o 7eb0669dd7 Make compile_et and mk_cmds safe from directory pathnames that
contain spaces.
2001-09-16 23:29:17 -04:00
Theodore Ts'o 6197c63001 Update debian directory. 2001-09-13 11:09:20 -04:00
Theodore Ts'o 5966f36f4c com_err.texinfo: Add appropriate @node and @menu lines so that
the a valid .info file can be made.  Use @deftypefun to
	define functions.  Change the e-mail address where bug
	reports to be sent to be is the e2fsprogs maintainer.
2001-09-11 00:38:03 -04:00
Theodore Ts'o ce2722f86d compare.c (uuid_compare), copy.c (uuid_copy),
isnull.c (uuid_is_null), pack.c (uuid_pack), 
	parse.c (uuid_parse), unpack.c (uuid_unpack),
	unparse.c (uuid_unparse), uuid.h, uuidP.h, 
	uuid_time.c (uuid_time, uuid_type, uuid_variant):
	Use const for pointer variables that we don't modify.  Add
	the appropriate ifdef's in uuid.h to make it be C++ friendly.
2001-09-10 20:30:09 -04:00
Theodore Ts'o 761da73ad1 ADD TAG: E2FSPROGS-1_24a 2001-09-04 15:00:37 -04:00
Theodore Ts'o fb70775b0f Update for 1.24a release 2001-09-04 15:00:37 -04:00
Andreas Dilger 9d8e634632 Fix version format string. 2001-08-31 10:24:46 -06:00
Theodore Ts'o 71ba5aa12f ADD TAG: E2FSPROGS-1_24 2001-08-31 00:59:55 -04:00
Theodore Ts'o 109624a133 Update for 1.24 release. 2001-08-31 00:59:55 -04:00
Theodore Ts'o 04a968579e mke2fs.c (zap_sector): Now takes a third argument, which is how
many sectors to clear out.  Fixed up Andreas's patch to
	make it a bit more efficient/compact.
2001-08-30 21:55:26 -04:00
Andreas Dilger 59f27247f8 mke2fs.c (main): Zap the second sector of the disk, along with
any sectors in the same filesystem block after the superblock.
        The latter will remove (for example) swapspace signatures
        on 4kB+ blocksize filesystems.  Also when zeroing the "end"
        of the filesystem don't actually zero the start of a very
        small device (less than 128kB).
2001-08-30 15:39:04 -06:00