Whamcloud - gitweb
tools/e2fsprogs.git
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)

23 years agoChangeLog, tune2fs.8.in:
Theodore Ts'o [Sat, 2 Dec 2000 06:19:33 +0000 (06:19 +0000)]
ChangeLog, tune2fs.8.in:
  tune2fs.8.in: Add clarifying statement about converting user and group
   names to uid's before storing them in the superblock.  (Debian bug
   #67446)

23 years agoChangeLog, fgetflags.c, fgetversion.c, fsetflags.c, fsetversion.c:
Theodore Ts'o [Sat, 2 Dec 2000 06:11:44 +0000 (06:11 +0000)]
ChangeLog, fgetflags.c, fgetversion.c, fsetflags.c, fsetversion.c:
  fgetflags.c (fgetflags):
  fgetversion.c (fgetversion):
  fsetflags.c (fsetflags):
  fsetversion.c (fsetversion): Use the LFS API if available so that the
   files are opened with O_LARGEFILE.  Addresses Debian bug #72690.

23 years agoChangeLog, message.c, pass1b.c, pass2.c, pass3.c, problem.c, problem.h:
Theodore Ts'o [Fri, 17 Nov 2000 05:40:49 +0000 (05:40 +0000)]
ChangeLog, message.c, pass1b.c, pass2.c, pass3.c, problem.c, problem.h:
  pass1b.c: Change routines to use PR_1B_BLOCK_ITERATE when reporting
   problems rather than using com_err directly.
  problem.c, problem.h (PR_1B_BLOCK_ITERATE): Add new problem code.
  message.c (expand_percent_expression): Add safety check.  If ctx->str
   is NULL, print "NULL" instead of dereferencing the null pointer.
  pass1b.c, pass2.c, pass3.c: Change calls to ext2fs_block_iterate to
   ext2fs_block_iterate2, to support 64-bit filesizes and to speed things
   up slightly by avoiding the use of the ext2fs_block_iterate's
   compatibility shim layer.
version.h:
  Update for WIP release.

23 years agoChangeLog, mke2fs.8.in, mke2fs.c:
Theodore Ts'o [Fri, 17 Nov 2000 04:55:24 +0000 (04:55 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c:
  mke2fs.c(main): Expand the -j option so that it parses option=argument
   style options, and add support for creating filesystems with external
   journals.
  mke2fs.8.in: Document new syntax for the -j option.

23 years agoChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
Theodore Ts'o [Sun, 12 Nov 2000 19:32:20 +0000 (19:32 +0000)]
ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c:
  imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h,
   Makefile.in: New file that has routines that save ext2fs metadata to a
   file.
  ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned.
  e2image.h: New file which defines the file format for the ext2 image
   file.  (Saved copy of ext2 metadata to a file as a saving throw
   against worst-case damage.)
ChangeLog, Makefile.in, e2image.c:
  e2image.c, Makefile.in: New program which saves ext2 metadata to a
   file for people who need a last-ditch saving throw.

23 years agoChangeLog, inode.c:
Theodore Ts'o [Sun, 12 Nov 2000 19:07:06 +0000 (19:07 +0000)]
ChangeLog, inode.c:
  inode.c (ext2fs_flush_icache): Add new function ext2fs_flush_icache()
   which flushes the internal inode cache.  Applications which modify the
   inode table blocks directly must call this function.

23 years agoChangeLog, util.c:
Theodore Ts'o [Mon, 30 Oct 2000 14:33:49 +0000 (14:33 +0000)]
ChangeLog, util.c:
  util.c (get_backup_sb): Calculate backup superblock correctly when the
   blocksize is > 1k.

23 years agoChangeLog, mkjournal.c:
Theodore Ts'o [Thu, 26 Oct 2000 20:45:58 +0000 (20:45 +0000)]
ChangeLog, mkjournal.c:
  mkjournal.c: Add #include of netinet/in.h, since Solaris requires it
   for ntohl().

23 years ago.del-jfs.h~fa6593e8, ChangeLog, jfs_compat.h, journal.c:
Theodore Ts'o [Thu, 26 Oct 2000 20:42:07 +0000 (20:42 +0000)]
.del-jfs.h~fa6593e8, ChangeLog, jfs_compat.h, journal.c:
  jfs.h, jfs_compat.h, journal.c: Updated to include the definition of
   the new journal superblock format; still only supports V1 superblocks
   for now.  (From sct)

23 years agoMany files:
Theodore Ts'o [Thu, 26 Oct 2000 20:24:43 +0000 (20:24 +0000)]
Many files:
  ext2_io.h (io_channel_write_byte): Add new interface to allow callers
   to write specific byte ranges.  This is an optional interface, which
   not all IO channels may implement.
  unix_io.c (unix_write_byte): test_io.c (test_write_byte): Add
   implementation of the write_byte function.
  closefs.c (write_primary_superblock, ext2fs_flush): Add a new function
   which writes the primary superblock.  If the IO channel supports
   writing raw bytes directly, only fields which were modified are
   written to the disk.  This makes it safe(r) to use utilities like
   tune2fs on a mounted filesystem.
  freefs.c (ext2fs_free): Free the original superblock if it is available.
  openfs.c (ext2fs_open): Store a copy of the original superblock when
   opening it.
  ext2fs.h: Add a field to store the original superblock in the ext2
   context structure.

23 years agoe2fsprogs.spec:
Theodore Ts'o [Wed, 25 Oct 2000 14:59:13 +0000 (14:59 +0000)]
e2fsprogs.spec:
  Fix brokeness in the spec file.

23 years agoChangeLog, mke2fs.c:
Theodore Ts'o [Wed, 25 Oct 2000 03:01:37 +0000 (03:01 +0000)]
ChangeLog, mke2fs.c:
  mke2fs.c (PRS): Applied Andreas Dilger's patch to make the -r -s
   handling a bit more sane.  (Even though -s is deprecated at this
   point.)
ChangeLog, expect.1:
  f_journal: Update to take into account new printing by the e2fsck
   program.
version.h:
  Update for upcoming WIP release.

23 years agoChangeLog, configure, configure.in, e2fsprogs.spec:
Theodore Ts'o [Wed, 25 Oct 2000 02:38:39 +0000 (02:38 +0000)]
ChangeLog, configure, configure.in, e2fsprogs.spec:
  e2fsprogs.spec: Update spec file for Red Hat 7.0 compatibility
  configure.in: When compiling shared libraries for Solaris, use a
   special-case Makefile fragment to deal with it.
Makefile.solaris-lib:
  New file for Solaris shared library builds.

23 years agoChangeLog, get_device_by_label.c:
Theodore Ts'o [Wed, 25 Oct 2000 02:24:33 +0000 (02:24 +0000)]
ChangeLog, get_device_by_label.c:
  get_device_by_label.c: Apply fix from Erik Troan to support 16
   character labels.

23 years agoChangeLog, llseek.c:
Theodore Ts'o [Wed, 25 Oct 2000 02:06:09 +0000 (02:06 +0000)]
ChangeLog, llseek.c:
  llseek.c: Add #ifdef's for IA64 (it's a 64-bit platform, so we don't
   need to use llseek).
ChangeLog, fsck.c:
  fsck.c (device_already_active): Add a special case check for MD
   devices, so we don't try to check them in parallel with other devices.

23 years agoChangeLog, journal.c, problem.c, problem.h, super.c:
Theodore Ts'o [Wed, 25 Oct 2000 01:38:50 +0000 (01:38 +0000)]
ChangeLog, journal.c, problem.c, problem.h, super.c:
  super.c (release_inode_block, release_inode_blocks,
   release_orphan_inodes): Add code to deal with truncating inodes which
   are still in use (but which are on the orphan list because they need
   truncation).
  problem.c, problem.h: Rename PR_0_CLEAR_ORPHAN_INODE to
   PR_0_ORPHAN_CLEAR_INODE, and remove PR_0_ORPHAN_INODE_INUSE.
  journal.c (e2fsck_run_ext3_journal): Add i18n support, and print a
   message when the journal is being recovered.

23 years agoChangeLog, pass1.c:
Theodore Ts'o [Tue, 24 Oct 2000 21:16:09 +0000 (21:16 +0000)]
ChangeLog, pass1.c:
  pass1.c (e2fsck_pass1): Don't check the i_mode field for the journal
   inode, if it is in use.

23 years agoChangeLog, mke2fs.8.in, mke2fs.c:
Theodore Ts'o [Tue, 24 Oct 2000 19:33:45 +0000 (19:33 +0000)]
ChangeLog, mke2fs.8.in, mke2fs.c:
  mke2fs.c (PRS, main), mke2fs.8.in: Add support for the -j option,
   which builds an ext2/3 filesystem with an ext3 journal.

23 years agoChangeLog, mke2fs.c:
Theodore Ts'o [Tue, 24 Oct 2000 18:41:44 +0000 (18:41 +0000)]
ChangeLog, mke2fs.c:
  mke2fs.c (zap_sector): Fix really stupid typo which gcc 2.95
   didn't catch.

23 years agoChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c:
Theodore Ts'o [Tue, 24 Oct 2000 18:33:16 +0000 (18:33 +0000)]
ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c:
  Makefile.in, ext2fs.h, jfs_dat.h, mkjournal.c: Add functions for
   creating an ext3 journal on a filesystem.
  ext2_err.et.in (EXT2_JOURNAL_NOT_BLOCK): Add new error code.
.del-ext2_fs.h~7a460879, ChangeLog:
  ext2_fs.h (EXT2_JOURNAL_INO): Add definition for EXT2_JOURNAL_INO;
   reserve inode #7 for EXT2_RESIZE_INO.
TODO:
  Commit TOOD suggestion.

23 years agoChangeLog, ext2_io.h, unix_io.c:
Theodore Ts'o [Wed, 18 Oct 2000 19:22:24 +0000 (19:22 +0000)]
ChangeLog, ext2_io.h, unix_io.c:
  unix_io.c: Make massive changes to support a multiple block
   writethrough cacheing.
  ext2_io.h: Added flags field to the io_channel structure.

23 years agoChangeLog, random_exercise.c:
Theodore Ts'o [Wed, 18 Oct 2000 19:06:13 +0000 (19:06 +0000)]
ChangeLog, random_exercise.c:
  random_exercise.c: Add support for making the test files have a
   certain size, and also add directories as test inodes as well.

23 years agoChangeLog, expect.1, expect.2, image.gz:
Theodore Ts'o [Wed, 18 Oct 2000 19:03:39 +0000 (19:03 +0000)]
ChangeLog, expect.1, expect.2, image.gz:
  f_journal: Make the test check for a wide variety of mixed sizes of
   orphaned inodes (and not just a size of 0).

23 years agoChangeLog, extend.c, flushb.c:
Theodore Ts'o [Tue, 12 Sep 2000 21:24:36 +0000 (21:24 +0000)]
ChangeLog, extend.c, flushb.c:
  extend.c:
  flushb.c: Add include of nls-enable.h which is necessary so that they
   can compile correctly.

23 years agoChangeLog, fsck.c:
Theodore Ts'o [Tue, 12 Sep 2000 21:21:52 +0000 (21:21 +0000)]
ChangeLog, fsck.c:
  fsck.c: Add base device definitions for hd[e-h], for those systems
   with four IDE interfaces.

23 years agoChangeLog, dumpe2fs.c, mke2fs.c:
Theodore Ts'o [Mon, 11 Sep 2000 17:01:35 +0000 (17:01 +0000)]
ChangeLog, dumpe2fs.c, mke2fs.c:
  mke2fs.c (zap_sector): Fix error message printed when zap_sector
   fails.
  dumpe2fs.c (list_desc): Fixed format string bug when printing the
   inode table location in non-hex format.

23 years agoChangeLog, util.c:
Theodore Ts'o [Wed, 23 Aug 2000 04:36:25 +0000 (04:36 +0000)]
ChangeLog, util.c:
  util.c (string_to_inode): Use strtoul instead of atoi, so that hex
   inode numbers will be accepted.

23 years agoChangeLog, unix.c:
Theodore Ts'o [Tue, 22 Aug 2000 21:50:04 +0000 (21:50 +0000)]
ChangeLog, unix.c:
  unix.c (main): If we're doing a read-only check, skip the journal
   playback, but don't abort the e2fsck run.

23 years agoChangeLog, jfs_compat.h, journal.c, pass3.c:
Theodore Ts'o [Tue, 22 Aug 2000 21:41:52 +0000 (21:41 +0000)]
ChangeLog, jfs_compat.h, journal.c, pass3.c:
  jfs_compat.h (J_ASSERT):
  journal.c (e2fsck_run_ext3_journal):
  pass3.c (adjust_inode_count): Use fatal_error() instead of exit().
ChangeLog, super.c:
  super.c (release_orphan_inodes): Fix typo; should do bounds checking
   on next_ino instead of ino.

23 years agoChangeLog, unix.c:
Theodore Ts'o [Tue, 22 Aug 2000 21:37:47 +0000 (21:37 +0000)]
ChangeLog, unix.c:
  unix.c: Use fatal_error() instead of exit() whenever possible.  Also
   fix the fsck exit codes so that we use FSCK_USAGE when it is
   appropriate.  Rename global_signal_ctx to e2fsck_global_ctx and let it
   be exported globally.

23 years agoChangeLog, util.c:
Theodore Ts'o [Tue, 22 Aug 2000 21:30:11 +0000 (21:30 +0000)]
ChangeLog, util.c:
  util.c (fatal_error): Try to flush the I/O manager before forcing an
   exit.

23 years agoRELEASE-NOTES:
Theodore Ts'o [Mon, 21 Aug 2000 03:39:49 +0000 (03:39 +0000)]
RELEASE-NOTES:
  Fixed nit-picking grammar errors.

23 years agoRELEASE-NOTES:
Theodore Ts'o [Mon, 21 Aug 2000 01:23:39 +0000 (01:23 +0000)]
RELEASE-NOTES:
  Updated for WIP release.

23 years agoversion.h:
Theodore Ts'o [Sun, 20 Aug 2000 22:13:23 +0000 (22:13 +0000)]
version.h:
  Update for WIP release.

23 years agoChangeLog, journal.c, message.c, problem.c, problem.h, super.c:
Theodore Ts'o [Sun, 20 Aug 2000 22:06:31 +0000 (22:06 +0000)]
ChangeLog, journal.c, message.c, problem.c, problem.h, super.c:
  journal.c (e2fsck_journal_load): Fix **nasty** bug which caused
   e2fsck_check_ext3_journal to smash the journal because
   journal->j_transaction_sequence wasn't getting initialized.
  journal.c: (recover_ext3_journal, e2fsck_run_ext3_journal): Move call
   to e2fsck_clear_recover from recover_ext3_journal to after the
   filesystem has been closed and reopened.  Otherwise, the superblock in
   the filesystem handle will probably be stale, and will overwrite the
   newer version of the superblock written by the log recovery.
  message.c (expand_inode_expression): Add support for %Iu and %Ig
  problem.h (PR_0_CLEAR_ORPHAN_INODE): Add new problem code.
  super.c (release_orphan_inodes, release_inode_block,
   release_inode_blocks): Update the block group descriptor counts when
   freeing the orphan inode.  Use PR_0_CLEAR_ORPHAN_INODE to report when
   we clear an orphan.
  journal.c (e2fsck_run_ext3_journal): Fix a bug where we attempted to
   reopen the filesystem using the device name instead of the filesystem
   name.

23 years agofinddev.c:
Theodore Ts'o [Sun, 20 Aug 2000 21:51:24 +0000 (21:51 +0000)]
finddev.c:
  Fix stupid bug in finddev.c which could cause things to loop if the
  stat call failed.

23 years agoChangeLog, hold_inode.c, random_exercise.c:
Theodore Ts'o [Sun, 20 Aug 2000 21:48:45 +0000 (21:48 +0000)]
ChangeLog, hold_inode.c, random_exercise.c:
  random_exercise.c: New file which feeds a lot of file creations and
   deletions (while leaving the file descriptor open, and then closing
   the file descriptor later).  This generates lots of fodder for the
   orphan list code, as well as for the ext3 journal.
  hold_inode.c: New file which holds an inode or a directory open (for
   testing orphan list code).
ChangeLog, run_e2fsck, expect.1, expect.2, image.gz, name, expect:
  run_e2fsck: Filter out JFS DEBUG messages when comparing e2fsck output.
  f_journal: New test case which checks out running the ext3 journal.
  f_orphan: New test case which checks clearing the list of orphan
   inodes (files and directories).
  f_swapfs/expect: Update to reflect new debugfs format for dumping the
   blocks of an inode.

23 years agoChangeLog, Makefile.in, get_device_by_label.c:
Theodore Ts'o [Sun, 20 Aug 2000 19:11:05 +0000 (19:11 +0000)]
ChangeLog, Makefile.in, get_device_by_label.c:
  get_device_by_label.c: Add call to ext2fs_find_block_device if we
   can't find the device using the name given by /proc/partitions.  (This
   can happen if devfs is compiled into the kernel, but not mounted.)

23 years agodebugfs.c:
Theodore Ts'o [Sat, 19 Aug 2000 17:33:28 +0000 (17:33 +0000)]
debugfs.c:
  Fixup one more missing use of lb->f instead stdout when printing the
  comma separator.
ChangeLog, util.c:
  util.c (open_pager): Set SIGPIPE to be ignored, so that quitting out
   of the pager doesn't blow away debugfs.

23 years agoChangeLog, Makefile.in, ext2fs.h, finddev.c:
Theodore Ts'o [Sat, 19 Aug 2000 17:00:47 +0000 (17:00 +0000)]
ChangeLog, Makefile.in, ext2fs.h, finddev.c:
  finddev.c, ext2fs.h, Makefile.in: Add new file, finddev.c, which
   provides the function ext2fs_find_block_device().  This function
   returns the pathname to a block device, given its device number.

23 years agosuper.c:
Theodore Ts'o [Fri, 18 Aug 2000 15:31:37 +0000 (15:31 +0000)]
super.c:
  Remember to clear the orphaned inode list before starting to process it.

23 years agoMany files:
Theodore Ts'o [Fri, 18 Aug 2000 15:08:37 +0000 (15:08 +0000)]
Many files:
  Makefile.in: Update the make dependencies
  problem.c, problem.h: Add the problem codes:
   PR_0_ORPHAN_ILLEGAL_BLOCK_NUM, PR_0_ORPHAN_ALREADY_CLEARED_BLOCK,
   PR_0_ORPHAN_ILLEGAL_HEAD_INODE, PR_0_ORPHAN_ILLEGAL_INODE,
   PR_0_ORPHAN_INODE_INUSE
  super.c (release_inode_blocks, release_orphan_inodes,
   check_super_block): Add support for clearing orphaned inodes from the
   unmounted filesystem.
  journal.c (e2fsck_recover_ext3_journal): Remove the last orphan check;
   this is now handled in check_super_block --- non-journaled filesystems
   can use the orphan list in the future.  Also, move the the re-opening
   of the filesystem to e2fsck_run_ext3_journal().
debugfs.c:
  debugfs.c (finish_range): Make sure the pager FILE pointer to use.
configure, configure.in, ChangeLog:
  configure.in (JFS_DEBUG): Add support for --enable-jfs-debug

23 years agoChangeLog, debugfs.c:
Theodore Ts'o [Mon, 14 Aug 2000 20:39:17 +0000 (20:39 +0000)]
ChangeLog, debugfs.c:
  debugfs.c (do_show_super_stats): Use list_super2() instead of using
   explicit printf statements.  (We get a more complete printout this
   way.)

23 years agoMakefile.in, debug_cmds.ct, setsuper.c, ChangeLog:
Theodore Ts'o [Mon, 14 Aug 2000 20:37:09 +0000 (20:37 +0000)]
Makefile.in, debug_cmds.ct, setsuper.c, ChangeLog:
  setsuper.c: New function which implements the set_super_value command.
   Allows the user to set arbitrary superblock fields.
ChangeLog, util.c:
  util.c (open_pager): If the PAGER environment variable is not set,
   default to using "more".

23 years agoChangeLog, e2p.h, ls.c:
Theodore Ts'o [Mon, 14 Aug 2000 20:13:32 +0000 (20:13 +0000)]
ChangeLog, e2p.h, ls.c:
  ls.c (list_super, list_super2): Added new API function which takes a
   FILE * so that the output can be redirected to a stream.

23 years agoChangeLog, debugfs.c:
Theodore Ts'o [Mon, 14 Aug 2000 17:06:05 +0000 (17:06 +0000)]
ChangeLog, debugfs.c:
  debugfs.c (dump_inode): Cap the length when printing a fast symbolic
   link to inode.i_size.
   (list_blocks_proc): Print block ranges (4510-4533) to make the stat
   output easier to read.

23 years agoChangeLog, debugfs.c:
Theodore Ts'o [Mon, 14 Aug 2000 15:47:15 +0000 (15:47 +0000)]
ChangeLog, debugfs.c:
  debugfs.c (list_blocks_proc): show relative inode block numbers and/or
   indirect block status

23 years agoChangeLog, dumpe2fs.8.in, dumpe2fs.c, mke2fs.c:
Theodore Ts'o [Mon, 14 Aug 2000 15:32:11 +0000 (15:32 +0000)]
ChangeLog, dumpe2fs.8.in, dumpe2fs.c, mke2fs.c:
  dumpe2fs.c (usage): add fhx options to usage message, add -x option to
   print out the per-group block numbers in hex, add line for location of
   primary/backup superblock and group descriptors
  mke2fs.c: rename max to group_blk_max avoid potential macro conflict

23 years agoChangeLog, e2fsprogs.spec:
Theodore Ts'o [Mon, 14 Aug 2000 14:47:51 +0000 (14:47 +0000)]
ChangeLog, e2fsprogs.spec:
  e2fsprogs.spec (Summary): Add description of resize2fs to the package
   summary.
POTFILES.in:
  Add recover.c and journal.c to the list of files that need
  internationalization processing.

23 years agoChangeLog, mke2fs.c:
Theodore Ts'o [Mon, 14 Aug 2000 14:44:15 +0000 (14:44 +0000)]
ChangeLog, mke2fs.c:
  mke2fs.c (zap_sector): Change zap_bootsect to more general zap_sect.
   (main): Clear the superblock when starting mke2fs, to avoid leaving
   the filesystem in an inconsistent state.