Commit Graph

910 Commits (1a6bb6274fc0a0fff9072dd63b39e716cb94d4ed)

Author SHA1 Message Date
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
Theodore Ts'o 177a9acef4 badblocks.8.in: Fix spelling typo. (Addresses Debian bug #110621) 2001-08-30 18:07:40 -04:00
Theodore Ts'o eddeb56f9f getsize.c (ext2fs_get_device_size): Back out BLKGETSIZE64
changes, since the ioctl number has been reused by another
	unofficial patch.
2001-08-30 17:24:02 -04:00
Theodore Ts'o 22a2866d34 libext2fs.texinfo: Remove texinfo warnings by adding white space
after the function name and before the open parenthesis.
2001-08-30 16:43:07 -04:00
Theodore Ts'o b1f204f7f9 pass1.c (e2fsck_pass1): For EXT2_RESIZE_INO, allow its i_mode to
either be zero or a regular file (for compatibility with
	Andreas's on-line resizing programs).
2001-08-30 16:42:09 -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 943ed874fc Add missing log entry showing when we released e2fsprogs 1.23 2001-08-27 12:29:22 -04:00
Theodore Ts'o 53abed0afa Deal with libc5's lack of strnlen.
Stop checking for strdup in the configure script since we don't 
care about that symbol.
2001-08-27 12:18:16 -04:00
Theodore Ts'o b1c9a00071 Update makefile dependencies. 2001-08-18 14:31:41 -04:00
Theodore Ts'o e843c76016 Minor fixups to Andreas' changeset. Removed unused variable
from tune2fs and added missing function prototype.
2001-08-18 14:22:25 -04:00
Andreas Dilger 2d15576dfe get_device_by_label.[ch], fsck.c, util.c: New interpret_spec()
function in get_device_by_label.c to allow the use of
        UUID= or LABEL= when creating filesystems which use external
        journal dev (e.g.  mke2fs -J device=LABEL=<journal_label>).

tune2fs.c: Use superblock s_journal_uuid to locate an external
        journal device instead of s_journal_dev when removing it.
        Allow opening journal devices to set the label and UUID
        in the ext2 superblock.

mke2fs.c, tune2fs.c: Free journal_device after use, as it is
        malloc'd in interpret spec.
2001-08-17 03:48:11 -06:00
Theodore Ts'o f27728adac ADD TAG: E2FSPROGS-1_23 2001-08-15 21:02:23 -04:00
Theodore Ts'o c4ac9e14c4 Update for 1.23 release. 2001-08-15 21:02:23 -04:00
Theodore Ts'o 7141b54b1a * tune2fs.c: Make sure that error messages are sent to stderr, and
normal messages are sent to stdout.  (Addresses Debian bug
	#108555.)
2001-08-15 19:17:37 -04:00
Theodore Ts'o 1d349cce2d fsck.8.in: Fixed error in synopsis of the man page. 2001-08-15 19:06:55 -04:00
Theodore Ts'o 685c13f6d7 fsck.c (main): Print a warning message if there are no devices to
be checked.  (Addresses Debian bug #107458.)
2001-08-15 19:04:59 -04:00
Theodore Ts'o 88f8af61a4 fsck.c (check_all): Don't bother to interpret a device where the
pass number is zero.  (Addresses Debian bug #106696).
2001-08-15 18:39:51 -04:00
Theodore Ts'o f3561ed519 mke2fs.c (PRS): Handle -O and -s options in line in the getopt
loop, so that -s and -O handling are a bit more intuitive.
	(Not that they should be mixed anyway; -s is deprecated.)
2001-08-15 11:58:16 -04:00
Theodore Ts'o d258668d58 Give an error if -O is specified more than once to tune2fs. 2001-08-15 11:03:58 -04:00
Theodore Ts'o eb4ab51044 super.c (release_orphan_inodes): If the filesystem contains
errors, don't run the orphan * list, since the orphan list
	can't be trusted.
2001-08-13 10:58:41 -04:00