1. 17 Apr, 2001 4 commits
    • Theodore Ts'o's avatar
      ChangeLog, Makefile.in, ismounted.c: · 52db0b41
      Theodore Ts'o authored
        ismounted.c (check_mntent): Check /proc/mounts on Linux systems before
        	checking /etc/mtab.  The EXT2_MF_READONLY flag is now set from the
        	/etc/mtab options field for all filesystems, not just the root
        	filesystem.  Add debugging code to make it easier to test
        	ext2fs_check_if_mounted().
      52db0b41
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.c, tune2fs.c: · 1d08d9bf
      Theodore Ts'o authored
        mke2fs.c, tune2fs.c: Add newlines to error messages so that they look
        	nicer.
      1d08d9bf
    • Theodore Ts'o's avatar
      ChangeLog, ext2_err.et.in, mkjournal.c: · 03603946
      Theodore Ts'o authored
        mkjournal.c (ext2fs_create_journal_superblock): Add safety check;
        	return an error if there's an attempt to create a journal less than
        	1024 filesystem blocks.
        ext2_err.et.in, mkjournal.c: Change EXT2_JOURNAL_NOT_BLOCK and
        	EXT2_NO_JOURNAL_SB to be EXT2_ET_*.
      03603946
    • Theodore Ts'o's avatar
      ChangeLog, super.c: · ef059870
      Theodore Ts'o authored
        super.c (check_super_block): Fix bad calculation of inodes_per_block,
        	and tighten min/max checks to be a bit more paranoid.  Thanks to
        	Andreas Dilger for pointing out this bug.
      ef059870
  2. 29 Mar, 2001 7 commits
    • Theodore Ts'o's avatar
      Many files: · da81e3fc
      Theodore Ts'o authored
        debugfs.c (dump_blocks, dump_inode, internal_dump_inode): Add
        	internal_dump_inode() interface for the logdump command.
        logdump.c: Imported code from Stephen Tweedie to dump the ext3 journal.
      da81e3fc
    • Theodore Ts'o's avatar
      ChangeLog, jfs_user.h, journal.c: · 15986f79
      Theodore Ts'o authored
        journal.c (mark_buffer_uptodate): Add emulation of kernel function
        	mark_buffer_uptodate.
      15986f79
    • Theodore Ts'o's avatar
      jfs.h: · 50286ad4
      Theodore Ts'o authored
        Move things around so that user-mode stuff is outside #ifdef LINUX,
        and stuff which is kernel-only into #ifdef LINUX.  (Should be synced up
        with sct).
      50286ad4
    • Theodore Ts'o's avatar
      revoke.c: · 78eccb85
      Theodore Ts'o authored
        Make insert_revoke_hash static (since it's not used outside this function).
      78eccb85
    • Theodore Ts'o's avatar
      ChangeLog, recovery.c, revoke.c: · 1f735038
      Theodore Ts'o authored
        recovery.c, revoke.c: Synchronize with 0.6b ext3 files.
      1f735038
    • Theodore Ts'o's avatar
      .del-jfs_e2fsck.h~c0cc80d6: · 1833186c
      Theodore Ts'o authored
        Remove obsolete header file.
      1833186c
    • Theodore Ts'o's avatar
      jfs.h: · 8bc85c0d
      Theodore Ts'o authored
        Update to synchronize with 0.6b version of jfs.h
      8bc85c0d
  3. 26 Mar, 2001 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h: · 2537b6d0
      Theodore Ts'o authored
        ke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
        journal must be bewteen 1024 and 10,240 file system blocks.
        mke2fs.c, tune2fs.c: Change to use figure_journal_size()
        util.c, util.h (figure_journal_size): Change journal_default_size into
        	routine which also converts the requested journal size into filesystem
        	blocks and does bounds checking to make sure the journal is sized
        	reasonably.  Renamed function to journal_default_size.
        	parse_journal_opts): Remove bounds check for the journal size, since
        	this is now done in figure_journal_size, and based on the number of
        	filesystem blocks, as opposed to using the absolute size of the
        	journal.
      2537b6d0
  4. 18 Mar, 2001 1 commit
  5. 20 Feb, 2001 2 commits
  6. 17 Feb, 2001 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.c: · 93345d15
      Theodore Ts'o authored
        mke2fs.c (main): Flush out the "creating journal" message.  Also
        	handle the case where the default journal size returns zero blocks ==
        	no journal.  Print out how often the filesystem will be checked.
      93345d15
  7. 13 Feb, 2001 1 commit
    • Theodore Ts'o's avatar
      ChangeLog, journal.c: · d0515212
      Theodore Ts'o authored
        journal.c (e2fsck_run_ext3_journal): Force a flush of the filesystem
        	and io_channel before replaying the journal.
      d0515212
  8. 08 Feb, 2001 10 commits
    • Theodore Ts'o's avatar
      ChangeLog, e2image.c: · c5423c5b
      Theodore Ts'o authored
        e2image.c (main): Add code to write the e2image header.
      ChangeLog, e2image.h:
        e2image.h (struct ext2_image_hdr): Fix type for fs_hostname
      c5423c5b
    • Theodore Ts'o's avatar
      libuuid.3.in: · 6e343281
      Theodore Ts'o authored
        Fix man page formatting
      6e343281
    • Theodore Ts'o's avatar
      ChangeLog, mkjournal.c: · d23042af
      Theodore Ts'o authored
        mkjournal.c (ext2fs_create_journal_superblock): Fix the setting of
        	s_first for external devices to always be 1, since jsb->s_first is
        	always relative to the start of the journal superblock.  Use htonl(1)
        	when setting s_nr_users.
      d23042af
    • Theodore Ts'o's avatar
      ChangeLog, tune2fs.8.in: · be4244ba
      Theodore Ts'o authored
        tune2fs.8.in: Update man page to reflect that 2.0.39 supports
        	sparse_super.
      be4244ba
    • Theodore Ts'o's avatar
      ChangeLog, dumpe2fs.c: · 8b164f97
      Theodore Ts'o authored
        dumpe2fs.c (list_desc): Fix fencepost error when calculating the range
        of inode table blocks.  Add '0x' to values printed in hex.
      8b164f97
    • Theodore Ts'o's avatar
      ChangeLog, chattr.c, lsattr.c: · fff18b4e
      Theodore Ts'o authored
        chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the use of
        the LFS so that lstat will work on large files.
      fff18b4e
    • Theodore Ts'o's avatar
      uuidgen.c: · 6b7e807e
      Theodore Ts'o authored
        Add check for HAVE_STDLIB_H before including stdlib.h
      6b7e807e
    • Theodore Ts'o's avatar
      problem.c: · 67a473ec
      Theodore Ts'o authored
        Add quick compression of journal -> @j
      jfs.h:
        Eliminate force of JFS_DEBUG for userspace
      67a473ec
    • Theodore Ts'o's avatar
      journal.c: · 4e009f6a
      Theodore Ts'o authored
        Fix minor typo in C comment
      4e009f6a
    • Theodore Ts'o's avatar
      Makefile.in, configure, configure.in: · db653a80
      Theodore Ts'o authored
        Update for initial finddev library.
      db653a80
  9. 18 Jan, 2001 5 commits
    • Theodore Ts'o's avatar
      Makefile.in: · a05c589a
      Theodore Ts'o authored
        Update makefile dependencies
      a05c589a
    • Theodore Ts'o's avatar
      ChangeLog, pass1.c: · a5c33f26
      Theodore Ts'o authored
        pass1.c (check_blocks): Fix large file checking code so that files >
        	2GB are considered large files, and restrict directories from being >
        	2GB.
      version.h:
        Update for WIP release.
      a5c33f26
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c: · dc2ec525
      Theodore Ts'o authored
        tune2fs.c, mke2fs.c, tune2fs.8.in, mke2fs.8.in: Change user interface
        	so that -J is used to specify journal options, and -j is used to
        	request creation of a journal using default values.  (This is a UI
        	change, but we haven't done a formal release, and it makes things much
        	more consistent with the rest of the options out there.)
        tune2fs.c: Add support for removing a filesystem from an external
        	journal; we correctly remove the filesystem UUID from the external
        	journal's filesystem list.
      dc2ec525
    • Theodore Ts'o's avatar
      ChangeLog, util.c, util.h: · 5683e6e2
      Theodore Ts'o authored
        util.h, util.c (journal_default_size): New function from Andreas
        	Dilger to calculate an appropriate default journal size given a
        	filesystem size.
        util.c (parse_journal_opts): Allow the creation of a journal as small
        	as 1MB.
      5683e6e2
    • Theodore Ts'o's avatar
      ChangeLog, mkjournal.c: · 02088862
      Theodore Ts'o authored
        mkjournal.c (ext2fs_add_journal_device): Fix bug where the device
        	number of the filesystem (instead of the journal) was being dropped
        	into s_journal_dev.
      ChangeLog, dumpe2fs.c:
        dumpe2fs.c (print_journal_information): Use s_first_data_block to find
        	the correct block to read the journal superblock.
      02088862
  10. 16 Jan, 2001 3 commits
    • Theodore Ts'o's avatar
      ChangeLog, Makefile.in, dumpe2fs.c, jfs_user.h, mke2fs.c, tune2fs.c: · 16ed5b3a
      Theodore Ts'o authored
        tune2fs.c: Changed the external journal code so that it simply adds a
        	filesystem to a journal; the journal must have bene created via
        	"mke2fs -O journal_dev /dev/XXX".
        mke2fs.c: Add support for creating an external journal device by using
        	the command "mke2fs -O journal_dev /dev/XXX".  Also changed the
        	external journal code so -j device=/dev/XXX it simply adds a
        	filesystem to that journal; the journal must have been created via
        	separate step.
        dumpe2fs.c (print_journal_information): Add support for dumping
        	information about an external journal device.
      16ed5b3a
    • Theodore Ts'o's avatar
      ChangeLog, ext2_err.et.in, ext2fs.h, initialize.c, mkjournal.c, openfs.c: · a112847b
      Theodore Ts'o authored
        initialize.c (ext2fs_initialize): Add support for initializing the
        	ext2 superblock for external journal devices.  This basically means we
        	don't bother to allocate any block group descriptors.
        openfs.c (ext2fs_open): Only open external journal devices if the new
        	flag EXT2_FLAG_JOURNAL_DEV_OK is passed to ext2fs_open.  When opening
        	such devices, don't try to read the block group descriptors, since
        	they're not there.
        ext2_err.et.in (EXT2_NO_JOURNAL_SB): Add new error code
        mkjournal.c: Export a new function,
        	ext2fs_create_journal_superblock(), which allocates and returns a
        	buffer containing a journal superblock.  This is needed by mke2fs to
        	create an external journal.  Rewrote ext2fs_add_journal_device() so
        	that it no longer creates the external journal, but rather adds a
        	filesystem to an existing external journal.  It handles all of the
        	UUID manipulation.
        ext2fs.h: List the EXT3_FEATURE_JOURNAL_DEV as a flag supported by the
        	library.  Define the EXT2_FLAG_JOURNAL_DEV_OK.  Changed function
        	prototype for ext2fs_add_journal_device().
      a112847b
    • Theodore Ts'o's avatar
      ChangeLog, ls.c: · 4ecf9d6e
      Theodore Ts'o authored
        ls.c (list_super2): Fix bug where we were printing the filesystem UUID
        	instead of journal UUID when trying to display the journal UUID.
      4ecf9d6e
  11. 14 Jan, 2001 5 commits
    • Theodore Ts'o's avatar
      ChangeLog, feature.c: · c2204b32
      Theodore Ts'o authored
        feature.c: Add definition for EXT3_FEATURE_INCOMPAT_JOURNAL_DEV
      c2204b32
    • Theodore Ts'o's avatar
      ChangeLog, closefs.c: · 80779941
      Theodore Ts'o authored
        closefs.c (ext2fs_flush): Don't write out anything beyond the primary
        	superblock if EXT2_INCOMPAT_JOURNAL_DEV is listed.
      80779941
    • Theodore Ts'o's avatar
      ChangeLog, feature.c: · 990d4296
      Theodore Ts'o authored
        feature.c: Remove backward compatibility #ifdef's for old ext2_fs.h
        	header files.
      .del-ext2_fs.h~7a460879, ChangeLog:
        ext2_fs.h (EXT3_FEATURE_INCOMPAT_JOURNAL_DEV): Add definition for use
        	with external journal devices.
      990d4296
    • Theodore Ts'o's avatar
      ChangeLog, mke2fs.8.in, mke2fs.c: · 44c09c04
      Theodore Ts'o authored
        mke2fs.c: Add new filesystem types, largefile and largefile4, for
        	those filesystems whose average inode size is 1MB and 4MB,
        	respectively.  Allow the inode ratio specified to be has high as 4MB.
        	Make the s_max_mount_count vary between 20 and 40, to avoid needing to
        	check all of the filesystems at the same time.  Add some random jitter
        	to the s_max_mount_count value so that we avoid checking all of the
        	filesystems at the same time when we reboot.
      44c09c04
    • Theodore Ts'o's avatar
      ChangeLog, tune2fs.8.in: · 08dd830d
      Theodore Ts'o authored
        tune2fs.8.in: Add description of the -j option.
      tune2fs.c:
        Minor whitespace and option ordering fixes from Andreas Dilger
      08dd830d