Commit Graph

941 Commits (f1a1761d678a5ac539419f62676ce4c1bbd0767e)

Author SHA1 Message Date
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 19007e51a5 Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the
system header file version of hbd.h when using diet glibc
(since it forcibly adds /usr/include to the beginning of include
search path.)
2001-12-23 19:33:51 -05:00
Theodore Ts'o 344368911e Update the group descriptor free block and inode counts when
deleting or killing a file.
2001-12-22 13:06:02 -05:00
Theodore Ts'o eaf4dc5c98 Add support to read out information from the LVM proc hierarchy,
so that the UUID cache can search the LVM logical volumes for 
UUID's, labels, etc.
2001-12-22 00:04:22 -05:00
Theodore Ts'o 0655b104e6 Change dumpe2fs to not die if the listing of the bad blocks
can't be found.  Slimmed down dumpe2fs by eliminating duplicate 
code paths.
2001-12-21 23:59:46 -05:00
Theodore Ts'o 6a50c5ed57 Use ctx->filesystem_name if the ctx->device_name is NULL in e2fsck. 2001-12-21 23:29:35 -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 8cf93332d1 Fix e2fsck's handling of external journals,and update journal
recovery files from 2.4.17-pre8.
2001-12-16 02:23:36 -05:00
Theodore Ts'o 5d57ad14f3 * Add new descriptions for the following functions:
ext2fs_block_iterate, ext2fs_block_iterate2,
	ext2fs_read_dir_block, ext2fs_write_dir_block,
	ext2fs_new_dir_block, ext2fs_dir_iterate, ext2fs_mkdir, 
	ext2fs_expand_dir, ext2fs_link, ext2fs_unlink,
	ext2fs_clear_block_bitmap, ext2fs_set_block_bitmap,
	ext2fs_group_of_blk, ext2fs_group_of_ino.
2001-12-11 10:15:31 -05:00
Theodore Ts'o bd27880b4b unix_io.c (unix_open): Make sure the ulimit workaround works
regardless of the version of glibc which is used to
	compild e2fsprogs.
2001-12-03 05:47:32 +01:00
Theodore Ts'o a5f0bb9d1b Pull up dumpe2fs cleanup patch from the experimental branch. 2001-12-02 19:29:35 +01:00
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