OSDN Git Service

android-x86/external-e2fsprogs.git
23 years agoMakefile.in, configure, configure.in:
Theodore Ts'o [Thu, 8 Feb 2001 02:18:52 +0000 (02:18 +0000)]
Makefile.in, configure, configure.in:
  Update for initial finddev library.

23 years agoMakefile.in:
Theodore Ts'o [Thu, 18 Jan 2001 02:37:21 +0000 (02:37 +0000)]
Makefile.in:
  Update makefile dependencies

23 years agoChangeLog, pass1.c:
Theodore Ts'o [Thu, 18 Jan 2001 02:34:03 +0000 (02:34 +0000)]
ChangeLog, pass1.c:
  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.

23 years agoChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c:
Theodore Ts'o [Thu, 18 Jan 2001 01:51:15 +0000 (01:51 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c:
  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.

23 years agoChangeLog, util.c, util.h:
Theodore Ts'o [Thu, 18 Jan 2001 01:47:48 +0000 (01:47 +0000)]
ChangeLog, util.c, util.h:
  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.

23 years agoChangeLog, mkjournal.c:
Theodore Ts'o [Thu, 18 Jan 2001 01:44:19 +0000 (01:44 +0000)]
ChangeLog, mkjournal.c:
  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.

23 years agoChangeLog, Makefile.in, dumpe2fs.c, jfs_user.h, mke2fs.c, tune2fs.c:
Theodore Ts'o [Tue, 16 Jan 2001 07:47:31 +0000 (07:47 +0000)]
ChangeLog, Makefile.in, dumpe2fs.c, jfs_user.h, mke2fs.c, tune2fs.c:
  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.

23 years agoChangeLog, ext2_err.et.in, ext2fs.h, initialize.c, mkjournal.c, openfs.c:
Theodore Ts'o [Tue, 16 Jan 2001 06:56:14 +0000 (06:56 +0000)]
ChangeLog, ext2_err.et.in, ext2fs.h, initialize.c, mkjournal.c, openfs.c:
  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().

23 years agoChangeLog, ls.c:
Theodore Ts'o [Tue, 16 Jan 2001 06:41:54 +0000 (06:41 +0000)]
ChangeLog, ls.c:
  ls.c (list_super2): Fix bug where we were printing the filesystem UUID
   instead of journal UUID when trying to display the journal UUID.

23 years agoChangeLog, feature.c:
Theodore Ts'o [Sun, 14 Jan 2001 18:10:49 +0000 (18:10 +0000)]
ChangeLog, feature.c:
  feature.c: Add definition for EXT3_FEATURE_INCOMPAT_JOURNAL_DEV

23 years agoChangeLog, closefs.c:
Theodore Ts'o [Sun, 14 Jan 2001 18:03:43 +0000 (18:03 +0000)]
ChangeLog, closefs.c:
  closefs.c (ext2fs_flush): Don't write out anything beyond the primary
   superblock if EXT2_INCOMPAT_JOURNAL_DEV is listed.

23 years agoChangeLog, feature.c:
Theodore Ts'o [Sun, 14 Jan 2001 17:56:00 +0000 (17:56 +0000)]
ChangeLog, feature.c:
  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.

23 years agoChangeLog, mke2fs.8.in, mke2fs.c:
Theodore Ts'o [Sun, 14 Jan 2001 17:02:09 +0000 (17:02 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c:
  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.

23 years agoChangeLog, tune2fs.8.in:
Theodore Ts'o [Sun, 14 Jan 2001 16:25:58 +0000 (16:25 +0000)]
ChangeLog, tune2fs.8.in:
  tune2fs.8.in: Add description of the -j option.
tune2fs.c:
  Minor whitespace and option ordering fixes from Andreas Dilger

23 years agoChangeLog, tune2fs.c:
Theodore Ts'o [Sun, 14 Jan 2001 16:11:14 +0000 (16:11 +0000)]
ChangeLog, tune2fs.c:
  tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush stdout
   after printing in-progress message.
   (main): Exit with status code 1 if we failed to determine the mount
   status of the device.
ChangeLog, gcc-wall-cleanup:
  gcc-wall-cleanup: Remove additional annoying warning messages emited
   by gcc 2.95.2.
ChangeLog, uuid.h:
  uuid: Change arguments to make it clear which argument is the source
   and which is the destination.

23 years agoChangeLog, setsuper.c:
Theodore Ts'o [Sat, 13 Jan 2001 01:29:05 +0000 (01:29 +0000)]
ChangeLog, setsuper.c:
  setsuper.c: Cleaned up some random whitespace problems.
ext2fs.h:
  Fixed spelling mistake in comment.

23 years agoChangeLog, pass1.c, problem.c, problem.h:
Theodore Ts'o [Fri, 12 Jan 2001 21:53:25 +0000 (21:53 +0000)]
ChangeLog, pass1.c, problem.c, problem.h:
  pass1.c (e2fsck_pass1): Cap the maximum legal size of a file by the
   limit caused by the fact that i_blocks is in 512 byte units, and that
   the Linux buffer cache also fundamentally assumes 512 byte sectors.
   Make sure that the journal inode is a regular file, and when clearing
   an unused journal inode, make sure the icount db is updated.
  problem.c, problem.h (PR_1_JOURNAL_BAD_MODE): Add new problem code.
ChangeLog, journal.c:
  journal.c (e2fsck_journal_fix_unsupported_super): Remove unused
   function.  Add FIXME notes to e2fsck_get_journal(), from Andreas
   Dilger.

23 years agoChangeLog, problem.c:
Theodore Ts'o [Fri, 12 Jan 2001 21:16:13 +0000 (21:16 +0000)]
ChangeLog, problem.c:
  problem.c: For PR_1_RESERVED_BAD_MODE, print a description of the
   reserved inode.  In PR_0_JOURNAL_HAS_JOURNAL, prompt to clear the
   journal, rather than deleting it (which is more accurate).  (From
   Andreas Dilger.)

23 years agoChangeLog, journal.c:
Theodore Ts'o [Fri, 12 Jan 2001 21:11:24 +0000 (21:11 +0000)]
ChangeLog, journal.c:
  journal.c: Make sure all functions which return an error code use the
   errcode_t return type, and not "int"
   (e2fsck_journal_release): Add new parameter, "drop", which is used
   when we just want to deallocate the journal without trying to write
   out any changes.
   (mark_buffer_clean): New function e2fsck_check_ext3_journal): If we
   fail loading the journal, make sure we free all memory associated with
   it.
   (recover_ext3_journal): If we fail to load the journal or initialize
   the revoke data structures, make sure we free all memory associated
   with the journal.

23 years agoChangeLog, super.c:
Theodore Ts'o [Fri, 12 Jan 2001 21:05:57 +0000 (21:05 +0000)]
ChangeLog, super.c:
  super.c: Minor whitespace cleanups, from Andreas Dilger.
mtrace.h:
  mtrace.h: Minor whitespace cleanups, from Andreas Dilger.
ChangeLog, message.c:
  message.c (special_inode_name): Add more special inode names (From
   Andreas Dilger)

23 years agoChangeLog, util.c:
Theodore Ts'o [Fri, 12 Jan 2001 20:59:19 +0000 (20:59 +0000)]
ChangeLog, util.c:
  util.c (fatal_error): Check to make sure the io_manager data structure
   is sane before trying to flush the io_channel.  (From Andreas Dilger)

23 years agoChangeLog, pass2.c:
Theodore Ts'o [Fri, 12 Jan 2001 20:25:50 +0000 (20:25 +0000)]
ChangeLog, pass2.c:
  pass2.c: Minor whitespace cleanups, from Andreas Dilger.

23 years agoChangeLog, copy.c, gen_uuid.c, tst_uuid.c, uuid_time.c:
Theodore Ts'o [Fri, 12 Jan 2001 18:30:54 +0000 (18:30 +0000)]
ChangeLog, copy.c, gen_uuid.c, tst_uuid.c, uuid_time.c:
  uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints.
  copy.c (uuid_copy): Change arguments to make it clear which argument
   is the source and which is the destination.
  gen_uuid.c (get_random_fd): Use gettimeofday to seed the PRNG, so we
   can take advantage of tv_usec to do (slightly) better at seeding it.

23 years agoChangeLog, imager.c:
Theodore Ts'o [Fri, 12 Jan 2001 17:26:05 +0000 (17:26 +0000)]
ChangeLog, imager.c:
  imager.c: Fix gcc -Wall complaints and a series of bugs where retval
   wasn't set correctly.  (Thanks to Andreas Dilger for pointing this
   out.)

23 years agoChangeLog, debugfs.c, debugfs.h:
Theodore Ts'o [Fri, 12 Jan 2001 17:23:52 +0000 (17:23 +0000)]
ChangeLog, debugfs.c, debugfs.h:
  debugfs.h, debugfs.c (do_show_super_stats): Use full words instead of
   pluralism hack to make I18N conversion easier.  Clean up gcc -Wall
   complaints.

23 years agoChangeLog, journal.c, problem.c:
Theodore Ts'o [Fri, 12 Jan 2001 15:30:25 +0000 (15:30 +0000)]
ChangeLog, journal.c, problem.c:
  journal.c (e2fsck_journal_fix_bad_inode): Set pctx->ino to the bad
   journal number.
  problem.c (PR_0_JOURNAL_BAD_INODE): Use pctx->ino instead of pctx->num
   when printing the bad journal inode number.

23 years agoChangeLog, pf.c:
Theodore Ts'o [Fri, 12 Jan 2001 01:43:28 +0000 (01:43 +0000)]
ChangeLog, pf.c:
  pf.c: Clarified name of the Compression_Raw_Access flag, and
   capitalized Journaled_Data.

23 years agoChangeLog, Makefile.in:
Theodore Ts'o [Fri, 12 Jan 2001 00:34:29 +0000 (00:34 +0000)]
ChangeLog, Makefile.in:
  Makefile.in (PROG_SUBDIRS): Build lib/e2p before lib/ext2fs since
   libext2fs depends on libe2p.

23 years agoChangeLog, e2fsck.h, flushb.c, iscan.c, unix.c:
Theodore Ts'o [Thu, 11 Jan 2001 19:15:02 +0000 (19:15 +0000)]
ChangeLog, e2fsck.h, flushb.c, iscan.c, unix.c:
  iscan.c, unix.c, e2fsck.h: Don't use NOARGS, and use
   ext2fs_sync_device() instead of using BLKFLSBUF.
  flushb.c: Don't use NOARGS anymore; everything is STDC these days.
ChangeLog, pass1.c:
  pass1.c (process_block): Remove dead code which was never getting
   executed.

23 years agoChangeLog, main.c:
Theodore Ts'o [Thu, 11 Jan 2001 16:11:11 +0000 (16:11 +0000)]
ChangeLog, main.c:
  main.c (main): Use ext2fs_sync_device() instead of calling the
   BLKFLSBUF ioctl directly.

23 years agoChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c:
Theodore Ts'o [Thu, 11 Jan 2001 16:08:23 +0000 (16:08 +0000)]
ChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c:
  e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: Fix
   gcc -Wall complaints, including one bug in tune2fs caused by a block
   automatic shadowing version of the variable we really wanted to use,
   which broke the logic testing to see if the filesystem was mounted.
ChangeLog, MCONFIG.in:
  (gcc-wall-new): Added new target which forgoes the make clean so we
   only check the newly modified .c files.

23 years agoChangeLog, badblocks.c:
Theodore Ts'o [Thu, 11 Jan 2001 16:04:59 +0000 (16:04 +0000)]
ChangeLog, badblocks.c:
  badblocks.c (flush_bufs): Use ext2fs_sync_device() to sync and flush
   the device.

23 years agoChangeLog, MCONFIG.in, configure, configure.in:
Theodore Ts'o [Thu, 11 Jan 2001 15:48:50 +0000 (15:48 +0000)]
ChangeLog, MCONFIG.in, configure, configure.in:
  MCONFIG.in: Change --enable-gcc-wall handling so that it's no longer a
   configure option, but something which is done when the developer uses
   the command "make gcc-wall".
  configure.in: Remove test for ino_t, since we don't use it any more
   (we always use our own ext2_ino_t).  Remove --enable-gcc-wall support.
   Add test for sys/ioctl.h
.del-types.h.in~ca55114a:
  Remove definition of ino_t
ChangeLog, Makefile.in, ext2fs.h, flushb.c, jump.funcs:
  flushb.c (ext2fs_sync_device): New function which centralizes all of
   the places which might try to use the BLKFLSBUF or FDFLUSH ioctls (and
   usually failing to define them since the system header files don't
   usually do this for us, and we're trying to avoid usage of kernel
   include files now.)

23 years agoChangeLog, gcc-wall-cleanup:
Theodore Ts'o [Thu, 11 Jan 2001 15:44:00 +0000 (15:44 +0000)]
ChangeLog, gcc-wall-cleanup:
  gcc-wall-cleanup: New file which is used to clean up unnecessary
   crud from gcc -Wall that we're not interested in seeing

23 years agoChangeLog, libext2fs.texinfo:
Theodore Ts'o [Thu, 11 Jan 2001 15:38:00 +0000 (15:38 +0000)]
ChangeLog, libext2fs.texinfo:
  libext2fs.texinfo: Change ino_t to ext2_ino_t
ChangeLog, extent.c, main.c, resize2fs.c:
  extent.c, main.c, resize2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, mke2fs.c:
  mke2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, test_icount.c, test_rel.c:
  test_icount.c, test_rel.c: Change ino_t to ext2_ino_t

23 years agoMany files:
Theodore Ts'o [Thu, 11 Jan 2001 15:26:39 +0000 (15:26 +0000)]
Many files:
  debugfs.c, debugfs.h, dump.c, icheck.c, ls.c, lsdel.c, ncheck.c,
   setsuper.c, util.c: Change ino_t to ext2_ino_t.  Fix a few minor
   gcc-wall complaints while we're at it.

23 years agoMany files:
Theodore Ts'o [Thu, 11 Jan 2001 15:12:14 +0000 (15:12 +0000)]
Many files:
  dirinfo.c, e2fsck.h, emptydir.c, iscan.c, jfs_user.h, journal.c,
   message.c, pass1.c, pass1b.c, pass2.c, pass3.c, pass4.c, pass5.c,
   problem.h, scantest.c, super.c, swapfs.c: Change ino_t to ext2_ino_t.

23 years agoChangeLog, problem.c:
Theodore Ts'o [Thu, 11 Jan 2001 04:58:21 +0000 (04:58 +0000)]
ChangeLog, problem.c:
  problem.c: Fix another broken @F vs @f problem.

23 years agoMany files:
Theodore Ts'o [Thu, 11 Jan 2001 04:54:39 +0000 (04:54 +0000)]
Many files:
  alloc.c, bb_inode.c, bitmaps.c, bitops.h, block.c, bmap.c, bmove.c,
   brel.h, cmp_bitmaps.c, dblist.c, dblist_dir.c, dir_iterate.c,
   expanddir.c, ext2fs.h, ext2fsP.h, fileio.c, finddev.c, get_pathname.c,
   icount.c, inode.c, irel.h, irel_ma.c, ismounted.c, link.c, lookup.c,
   mkdir.c, mkjournal.c, namei.c, newdir.c, read_bb_file.c, test_io.c,
   tst_iscan.c, unix_io.c, unlink.c: Change use of ino_t to ext2_ino_t,
   to protect applications that attempt to compile
   -D_FILE_OFFSET_BITS=64, since this inexplicably changes ino_t(!?).  So
   we use ext2_ino_t to avoid an unexpected ABI change.

23 years agoChangeLog, Makefile.in, tune2fs.c:
Theodore Ts'o [Tue, 9 Jan 2001 00:16:26 +0000 (00:16 +0000)]
ChangeLog, Makefile.in, tune2fs.c:
  Makefile.in, tune2fs.c: Move e2label functionality into tune2fs, using
   argv[0] as a dispatch.  This allows e2label to be (more) safely used
   on mounted filesystems.

23 years agoMany files:
Theodore Ts'o [Sat, 6 Jan 2001 05:55:58 +0000 (05:55 +0000)]
Many files:
  journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c, super.c,
   unix.c, util.c: Fix random gcc -Wall complaints.
  jfs_user.h: Use more sophisticated inline handling to allow building
   with --enable-gcc-wall

23 years agoMany files:
Theodore Ts'o [Sat, 6 Jan 2001 04:20:03 +0000 (04:20 +0000)]
Many files:
  get_device_by_label.h (get_volume_label_by_spec): Add function prototype.
  get_device_by_label.c: Use string_copy() instead of strdup() for
   portability's sake.  Fix a few other gcc -Wall complaints.
  fsck.h, fsck.c (string_copy): Export string_copy() extern.
  badblocks.c: Fix various gcc -Wall complaints, including an incorrect
   reference to sync in flush_bufs().
ChangeLog, configure, configure.in:
  configure.in: Add checks for the header files sys/mkdev.h and
   sys/sysmacros.h.

23 years agoChangeLog, jfs.h, jfs_compat.h:
Theodore Ts'o [Sat, 6 Jan 2001 03:51:25 +0000 (03:51 +0000)]
ChangeLog, jfs.h, jfs_compat.h:
  jfs.h: Move prototypes outside of the KERNEL #ifdef.  Remove
   indentation in front of #define.
  jfs_compat.h: Add #include of netinet/in.h for htonl, and not to use
   inline functions if compiling with gcc -Wall.

23 years agoChangeLog, dirblock.c:
Theodore Ts'o [Fri, 5 Jan 2001 22:27:06 +0000 (22:27 +0000)]
ChangeLog, dirblock.c:
  dirblock.c (ext2fs_read_dir_block): Fix a potential case where we may
   overrun allocated memory in case of a corrupted filesystem (or an
   e2fsck test case :-) when byte-swapping the directory block.

23 years agoChangeLog, mkjournal.c:
Theodore Ts'o [Fri, 5 Jan 2001 22:23:22 +0000 (22:23 +0000)]
ChangeLog, mkjournal.c:
  mkjournal.c (ext2fs_add_journal_device): Fix various gcc -Wall
   complaints including a missing return 0 at the end of
   ext2fs_add_journal_device.
ChangeLog, ext2fs.h:
  ext2fs.h: Indent the #warning to fix gcc -Wall complaint.

23 years agoChangeLog, message.c, problem.c:
Theodore Ts'o [Wed, 3 Jan 2001 19:38:04 +0000 (19:38 +0000)]
ChangeLog, message.c, problem.c:
  Whoops, @d was already taken by "directory".  Use @v for device, and
  re-order the listing of at-expansions to avoid this problem in the
  future.

23 years agoChangeLog, Makefile.in, mkjournal.c:
Theodore Ts'o [Wed, 3 Jan 2001 19:22:42 +0000 (19:22 +0000)]
ChangeLog, Makefile.in, mkjournal.c:
  Makefile.in: Link in libe2p when creating libext2fs as a shared
   library, since mkjournal.c now references fsetflags().
  mkjournal.c (ext2fs_add_journal_inode): Folded in Andreas Dilger's
   changes (with fixups) to allow on-line creation of a journal file.
.del-types.h.in~ca55114a:
  Change what we use to protect the header file to be _ASM_TYPES_H
  instead of _LINUX_TYPES_H.  (Needed to make libc5 builds happy).
version.h:
  Update for WIP release.

23 years agoChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
Theodore Ts'o [Wed, 3 Jan 2001 17:02:13 +0000 (17:02 +0000)]
ChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
  tune2fs.c (update_feature_set, add_journal): Moved to separate
   functions.  Added ability to add and remove the journal while the
   filesystem is live.  Added support for setting a time-based UUID.
   Removed zero-initialized static variables.
  mke2fs.c, util.c, util.h (strcasecmp, proceed_question,
   check_plausibility, parse_journal_opts, check_mount): Moved functions
   to util.c so they can be used by tune2fs.
  mke2fs.c (main): Change ext2fs_add_journal_fs() to
   ext2fs_add_journal_inode() to reflect function renaming.

23 years agoChangeLog, pass1.c, problem.c, problem.h:
Theodore Ts'o [Wed, 3 Jan 2001 16:57:24 +0000 (16:57 +0000)]
ChangeLog, pass1.c, problem.c, problem.h:
  pass1.c (e2fsck_pass1): Moved journal inode handling out to its own
   block; if the journal inode is not in use, and it contains data, offer
   to clear it.
  problem.h, problem.c (PR1_JOURNAL_INODE_NOT_CLEAR): Add new problem
   code.
  problem.c: Modified problem table to use a new abbreviations.

23 years agoChangeLog, message.c:
Theodore Ts'o [Wed, 3 Jan 2001 15:39:37 +0000 (15:39 +0000)]
ChangeLog, message.c:
  Add @d abbreviation for device.

23 years agoChangeLog, message.c:
Theodore Ts'o [Wed, 3 Jan 2001 15:34:20 +0000 (15:34 +0000)]
ChangeLog, message.c:
  message.c: Add @j abbreviation for journal.

23 years agoChangeLog, ext2fs.h, ismounted.c:
Theodore Ts'o [Wed, 3 Jan 2001 14:56:46 +0000 (14:56 +0000)]
ChangeLog, ext2fs.h, ismounted.c:
  ismounted.c: add ext2fs_check_mount_point() function, which will
   optionally return the mount point of a device if mounted
ChangeLog, closefs.c, ext2fs.h:
  ext2fs.h, closefs.c (ext2fs_flush): Add new flag,
   EXT2_FLAG_SUPER_ONLY, which the close routines to only update the
   superblock, and not the group descriptors.

23 years agoChangeLog, Makefile.in, jfs_user.h:
Theodore Ts'o [Wed, 3 Jan 2001 13:24:06 +0000 (13:24 +0000)]
ChangeLog, Makefile.in, jfs_user.h:
  jfs_user.h: Moved contents of jfs_e2fsck.h into jfs_user.h.

23 years agojournal.c:
Theodore Ts'o [Wed, 3 Jan 2001 13:14:23 +0000 (13:14 +0000)]
journal.c:
  Fix typo in comment.

23 years agoChangeLog, ext2fs.h, mkjournal.c:
Theodore Ts'o [Wed, 3 Jan 2001 13:04:12 +0000 (13:04 +0000)]
ChangeLog, ext2fs.h, mkjournal.c:
  mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive
   ext2fs_add_journal_inode()

23 years agoChangeLog, journal.c:
Theodore Ts'o [Wed, 3 Jan 2001 13:00:43 +0000 (13:00 +0000)]
ChangeLog, journal.c:
  journal.c (e2fsck_check_ext3_journal): Force a fsck if we remove the
   journal stored on a reserved inode.  Also force a fsck if the journal
   appears to exist while !NEEDS_RECOVERY, and we forcibly reset the
   journal.

23 years agoChangeLog, build-rpm:
Theodore Ts'o [Tue, 2 Jan 2001 23:44:00 +0000 (23:44 +0000)]
ChangeLog, build-rpm:
  build-rpm: Shell script contributed by sct

23 years agoMany files:
Theodore Ts'o [Mon, 1 Jan 2001 16:17:12 +0000 (16:17 +0000)]
Many files:
  ext2fs.h: Remove definition of ext2fs_sb.  Note: this may break source
   (but not binary) compatibility of some users of the ext2 library.
   They should just simply do a global search and replace of struct
   ext2fs_sb with struct ext2_super_block, and use their own private copy
   of ext2_fs.h if they aren't already.
  closefs.c, initialize.c, link.c, newdir.c, openfs.c, swapfs.c: Replace
   use of ext2fs_sb with ext2_super_block.
ChangeLog, main.c:
  main.c (main): Replace use of struct ext2fs_sb with struct ext2_super_block.

23 years agoChangeLog, ls.c:
Theodore Ts'o [Mon, 1 Jan 2001 15:54:58 +0000 (15:54 +0000)]
ChangeLog, ls.c:
  ls.c: Remove our own internal definition of struct ext2fs_sb.  We can
   assume that ext2_super_block is always up to date.

23 years agoChangeLog, journal.c, pass1.c, super.c, unix.c:
Theodore Ts'o [Mon, 1 Jan 2001 15:51:50 +0000 (15:51 +0000)]
ChangeLog, journal.c, pass1.c, super.c, unix.c:
  journal.c, pass1.c, super.c, unix.c: Replace use of struct ext2fs_sb
   with struct ext2_super_block.
ChangeLog, debugfs.c:
  debugfs.c Replace use of struct ext2fs_sb with struct ext2_super_block.

23 years agoChangeLog, e2image.c, mke2fs.c:
Theodore Ts'o [Mon, 1 Jan 2001 15:31:53 +0000 (15:31 +0000)]
ChangeLog, e2image.c, mke2fs.c:
  mke2fs.c, e2image.c: Removed references to struct ext2fs_sb to struct
   ext2_super_block.

23 years agoChangeLog, tune2fs.c:
Theodore Ts'o [Mon, 1 Jan 2001 15:26:58 +0000 (15:26 +0000)]
ChangeLog, tune2fs.c:
  tune2fs.c (main): Add support to allow HAS_JOURNAL flag to be cleared,
   but only if the filesystem is unmounted or mounted read-only.  Changed
   struct ext2fs_sb to struct ext2_super, and cleaned up old code which
   was needed for old versions of ext2_fs.h (not needed since we're using
   our own version now).

23 years agoChangeLog, pass1.c:
Theodore Ts'o [Mon, 1 Jan 2001 14:52:52 +0000 (14:52 +0000)]
ChangeLog, pass1.c:
  pass1.c (check_blocks): Remove use of EXT2_HAS_*_FEATURE macros.

23 years agoChangeLog, fsck.c:
Theodore Ts'o [Sun, 31 Dec 2000 14:09:38 +0000 (14:09 +0000)]
ChangeLog, fsck.c:
  fsck.c (check_all): Call interpet_device to resolve LABEL= and UUID=
   right away so that the device_already_active() logic can do the right
   thing.  Also cleaned up the the root filesystem logic checking code;
   fixed up a logic bug with the parallel_root option.

23 years agoChangeLog, lsattr.c:
Theodore Ts'o [Sun, 31 Dec 2000 13:55:14 +0000 (13:55 +0000)]
ChangeLog, lsattr.c:
  lsattr.c (list_attributes): Minor cleanup to smooth out logic flow.
   Also removed static initialized variables to zero.
ChangeLog, lsattr.1.in:
  lsattr.1.in: Add pointer to chattr man page for definition of the file
   attributes.

23 years agoChangeLog, chattr.1.in, chattr.c:
Theodore Ts'o [Sun, 31 Dec 2000 13:48:12 +0000 (13:48 +0000)]
ChangeLog, chattr.1.in, chattr.c:
  chattr.c (decode_arg, get_flag): Use a table-driven method for
   decoding the ext2 file flags character options.  Add support for the
   journaled data flag.
  chattr.1.in: Document the -j/+j/=j flag.

23 years agoChangeLog, ext2fs.h:
Theodore Ts'o [Sun, 31 Dec 2000 13:39:17 +0000 (13:39 +0000)]
ChangeLog, ext2fs.h:
  ext2fs.h: Cleaned up header file by removing definitions of feature
   flags that might not have been defined in older ext2 header files.
   Now that we're using our own include/linux/ext2fs.h header file, this
   can never happen.
  jfs_dat.h: Removed old header file which is no longer needed.
ChangeLog:
  jfs_compat.h: Remove uneeded header file.

23 years agoChangeLog, pf.c:
Theodore Ts'o [Sun, 31 Dec 2000 13:35:38 +0000 (13:35 +0000)]
ChangeLog, pf.c:
  pf.c: Add code to print out the journalled data flag.

23 years agoChangeLog, mke2fs.c:
Theodore Ts'o [Sun, 31 Dec 2000 03:21:56 +0000 (03:21 +0000)]
ChangeLog, mke2fs.c:
  mke2fs.c (usage): Document the -j option.
  (main): Print the number blocks used in the journal.
ChangeLog, mke2fs.8.in:
  Minor clarity edits.

23 years ago.del-ext2_fs.h~7a460879, ChangeLog:
Theodore Ts'o [Sun, 31 Dec 2000 03:00:42 +0000 (03:00 +0000)]
.del-ext2_fs.h~7a460879, ChangeLog:
  ext2_fs.h (EXT3_JOURNAL_DATA_FL): Add new inode flag definition.

23 years agoChangeLog, jfs.h:
Theodore Ts'o [Sun, 31 Dec 2000 02:55:11 +0000 (02:55 +0000)]
ChangeLog, jfs.h:
  jfs.h: Update to 0.5e version

23 years agoChangeLog, mtrace.c, mtrace.h:
Theodore Ts'o [Sun, 31 Dec 2000 01:52:03 +0000 (01:52 +0000)]
ChangeLog, mtrace.c, mtrace.h:
  malloc.h, mtrace.c: Renamed malloc.h to mtrace.h to avoid conflicts
   with the system header file.

23 years agoChangeLog, setsuper.c:
Theodore Ts'o [Sun, 31 Dec 2000 01:39:54 +0000 (01:39 +0000)]
ChangeLog, setsuper.c:
  Remove hard-coded s_ from inode_size field.
ChangeLog, dump.c:
  dump.c (fix_perms): Fix bug for systems which don't have fchown; was
   incorrectly using chmod instead of chown.

23 years agoChangeLog, journal.c, problem.h:
Theodore Ts'o [Sat, 30 Dec 2000 20:33:42 +0000 (20:33 +0000)]
ChangeLog, journal.c, problem.h:
  problem.h: Fixed numbering of pass1 error messages; an extra 0 had
   slipped into some of the numbers.  (Pointed out by Andreas Dilger)
  journal.c (e2fsck_journal_fix_corrupt_super): Clean up unnecessary
   automatic variable.  Add explanatory comment about the kernel
   emulation routines.  (Suggested by Andreas Dilger)

23 years agoChangeLog, debugfs.c, setsuper.c:
Theodore Ts'o [Sat, 30 Dec 2000 20:26:31 +0000 (20:26 +0000)]
ChangeLog, debugfs.c, setsuper.c:
  setsuper.c (find_field): Strip the s_prefix if given for ssv fields.
   (Suggested by Andreas Dilger)
  debugfs.c (do_modify_inode): Add the ability to set the inode
   generation number.  (Suggested by Andreas Dilger)

23 years agoChangeLog, base_device.c, fsck.c:
Theodore Ts'o [Fri, 29 Dec 2000 03:10:45 +0000 (03:10 +0000)]
ChangeLog, base_device.c, fsck.c:
  base_device.c (base_device): Add support for DAC960 device names.
  fsck.c (device_already_active): Handle the case where base_device
   doesn't know how to interpret the device name, instead of core
   dumping.

23 years ago.del-jfs.h~fa6593e8:
Theodore Ts'o [Mon, 18 Dec 2000 02:45:32 +0000 (02:45 +0000)]
.del-jfs.h~fa6593e8:
  Remove unneeded file.

23 years agoversion.h:
Theodore Ts'o [Wed, 13 Dec 2000 18:52:29 +0000 (18:52 +0000)]
version.h:
  Update for 1.20-WIP release.

23 years agoChangeLog, super.c:
Theodore Ts'o [Wed, 13 Dec 2000 18:50:22 +0000 (18:50 +0000)]
ChangeLog, super.c:
  super.c (release_orphan_inodes): Fix spelling typo in error message.
ChangeLog, unix.c:
  unix.c (main): Clarify coments (no code changes)
ChangeLog, journal.c:
  journal.c (e2fsck_check_ext3_journal): Check to make sure the journal
   fields are consistent if any of the superblock fields are set.  (Backs
   out erroneous change made by sct, pointed out by Andreas.)

23 years agoChangeLog, pass1.c:
Theodore Ts'o [Wed, 13 Dec 2000 18:39:14 +0000 (18:39 +0000)]
ChangeLog, pass1.c:
  pass1.c (e2fsck_pass1): Offer to update the filesystem revision level
   if we need to set large files flag.  Patch from Andreas Dilger.

23 years agoChangeLog, closefs.c, ext2fs.h, jump.funcs, super.c:
Theodore Ts'o [Wed, 13 Dec 2000 18:36:23 +0000 (18:36 +0000)]
ChangeLog, closefs.c, ext2fs.h, jump.funcs, super.c:
  Rename _ext2fs_update_fs_dynamic_rev to _ext2fs_update_dynamic_rev

23 years agoChangeLog, super.c:
Theodore Ts'o [Wed, 13 Dec 2000 18:11:44 +0000 (18:11 +0000)]
ChangeLog, super.c:
  super.c (check_super_block): If we have any of the compatibility flags
   set, we need to have a revision 1 filesystem.  Most kernels will not
   check the flags on a rev 0 filesystem and we may have corruption
   issues because of the incompatible changes to the filesystem.  Patch
   from Andreas Dilger.

23 years agoChangeLog, problem.c, problem.h:
Theodore Ts'o [Wed, 13 Dec 2000 18:07:23 +0000 (18:07 +0000)]
ChangeLog, problem.c, problem.h:
  problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add new
   problem codes.

23 years agoswapfs.c:
Theodore Ts'o [Wed, 13 Dec 2000 18:04:37 +0000 (18:04 +0000)]
swapfs.c:
  Fix stupid typo.

23 years agoChangeLog, closefs.c, ext2fs.h, jump.funcs:
Theodore Ts'o [Wed, 13 Dec 2000 17:55:49 +0000 (17:55 +0000)]
ChangeLog, closefs.c, ext2fs.h, jump.funcs:
  closefs.c (ext2fs_update_fs_dynamic_rev): New function suggested by
   Andreas Dilger to update the filesystem revision to EXT2_DYNAMIC_REV.

23 years agoChangeLog, swapfs.c:
Theodore Ts'o [Wed, 13 Dec 2000 17:50:14 +0000 (17:50 +0000)]
ChangeLog, swapfs.c:
  swapfs.c (ext2fs_swap_super): Add byte swapping for the journal fields.

23 years agoflushb.c, findsuper.c:
Theodore Ts'o [Sat, 9 Dec 2000 21:46:59 +0000 (21:46 +0000)]
flushb.c, findsuper.c:
  Adjust legal language.

23 years agoChangeLog, flushb.c:
Theodore Ts'o [Sat, 9 Dec 2000 14:46:20 +0000 (14:46 +0000)]
ChangeLog, flushb.c:
  flushb.c: Fix flushb so that it does something other than waste disk
   space when built on systems with modern header files and add a
   non-subtle Copyright Licensing restriction so Yann will remove it from
   the Debian Distribution.  (Now violates the Debian Free Software
   Guidelines, on purpose.)

23 years agoChangeLog, ext2fs.h, mkjournal.c:
Theodore Ts'o [Sat, 9 Dec 2000 14:39:16 +0000 (14:39 +0000)]
ChangeLog, ext2fs.h, mkjournal.c:
  ext2fs.h, mkjournal.c (ext2fs_add_journal_fs,
   ext2fs_add_journal_device): Add a new argument to the APIs of these
   function, which is a flags word.  This is used to allow the creation
   of a V1 superblock for those folks who are using ext3 0.3b in
   production.  Note, the user-land interface for getting at this flag
   won't be documented, as the V1 superblock is deprecated.

23 years agoChangeLog, mke2fs.c:
Theodore Ts'o [Sat, 9 Dec 2000 14:36:04 +0000 (14:36 +0000)]
ChangeLog, mke2fs.c:
  mke2fs.c (main, parse_journal_opts): Add support for creating V1
   superblocks.  We now pass in a journal_flags field to the journal
   creation routines for this purpose.
  mke2fs.c: Remove zero initializers to save a few bytes from the
   executable image.  (Are we excited yet?)

23 years agoChangeLog, findsuper.c:
Theodore Ts'o [Sat, 9 Dec 2000 14:33:29 +0000 (14:33 +0000)]
ChangeLog, findsuper.c:
  findsuper.c: And non-subtle copyright licensing restriction to get
   Yann to remove this program from the Debian package.  :-)

23 years agoChangeLog, journal.c:
Theodore Ts'o [Sat, 9 Dec 2000 06:47:56 +0000 (06:47 +0000)]
ChangeLog, journal.c:
  journal.c (e2fsck_check_ext3_journal): If JFS_DEBUG is defined at the
   top level, set the JFS debuging level to 2.

23 years agoMany files:
Theodore Ts'o [Sat, 9 Dec 2000 06:41:25 +0000 (06:41 +0000)]
Many files:
  jfs_e2fsck.h, jfs_user.h: Replaces jfs_compat.h.  The jfs.h file has
   been moved to the include/linux directory.
  journal.c, revoke.c, recovery.c: Updated files from Stephen to support
   the V2 superblock and revoke processing.  The journal.c and revoke.c
   files are copies from the ext3 kernel source.
  Makefile.in: Added revoke.c to the list of source/object files.
Makefile.in:
  Fix up some mistakes in the source file list, and regenerate the
  dependencies.
  Update Makefile dependencies.
ChangeLog, jfs.h:
  jfs.h: Remove excess #include of JFS_DEBUG.  Not needed for e2fsprogs,
   since we optioanlly define it in the configuration file system.

23 years agoChangeLog, jfs_user.h, mkjournal.c:
Theodore Ts'o [Sat, 9 Dec 2000 05:47:45 +0000 (05:47 +0000)]
ChangeLog, jfs_user.h, mkjournal.c:
  mkjournal.c (init_journal_superblock): Sync Stephen's changes which
   creates a V2 superblock instead of a V1 superblock.
ChangeLog, jfs.h, jfs_compat.h, list.h:
  jfs.h, jfs_compat.h, list.h: New files added to support ext3.

23 years agoChangeLog, MCONFIG.in, Makefile.in, Makefile.in.in:
Theodore Ts'o [Sat, 9 Dec 2000 02:37:33 +0000 (02:37 +0000)]
ChangeLog, MCONFIG.in, Makefile.in, Makefile.in.in:
  Fix so that top-level "make check" works correctly.
e2image.c:
  Fix program name for e2image.

23 years agoChangeLog, test_io.c:
Theodore Ts'o [Tue, 5 Dec 2000 03:53:41 +0000 (03:53 +0000)]
ChangeLog, test_io.c:
  test_io.c (test_write_blk, test_write_byte): Fix typos pointed out by
   Andreas Dilger.

23 years agoChangeLog, compile_et.1:
Theodore Ts'o [Mon, 4 Dec 2000 23:49:07 +0000 (23:49 +0000)]
ChangeLog, compile_et.1:
  compile_et.1: Fix a simple typo in the man page.

23 years agoChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h:
Theodore Ts'o [Sun, 3 Dec 2000 06:33:56 +0000 (06:33 +0000)]
ChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h:
  fsck.c (device_already_active): Change to use new version of
   base_device() which now returns dynamically allocated memory.
  base_device.c (base_device): New version moved from fsck.c which now
   understands ugly devfs names.  (Debian bug #65181)
  base_device.tst: Test case for base_device.c

23 years agoChangeLog, fsck.8.in:
Theodore Ts'o [Sat, 2 Dec 2000 07:03:32 +0000 (07:03 +0000)]
ChangeLog, fsck.8.in:
  fsck.8.in: Add clarification that filesystems with a fs_passno of 0
   are skipped with the -A option.  (Debian wishlist/bug #63442)

23 years agoChangeLog, fsck.c:
Theodore Ts'o [Sat, 2 Dec 2000 06:35:07 +0000 (06:35 +0000)]
ChangeLog, fsck.c:
  fsck.c (wait_one): When we let a new fsck take control of the console
   to display the progress bar, set FLAG_PROGRESS to so that fsck knows
   not to start new processes during an fsck pass with the progress
   bar. (Should fix debian bug #65267)