Whamcloud - gitweb
Theodore Ts'o [Thu, 3 Dec 1998 16:40:38 +0000 (16:40 +0000)]
ChangeLog, pass3.c, problem.c:
pass3.c (get_lost_and_found): If the filesystem is not opened
read-only, then force /lost+found to be created if it is not present.
problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen operation.
ChangeLog, Makefile.in:
Makefile.in: Updated dependencies.
ChangeLog, fsck.c:
fsck.c (load_fs_info): Parse /etc/fstab ourselves, instead of relying
on getmntent(). This has the advantage of allowing us to properly
handle missing pass numbers correctly.
ChangeLog, configure.in:
configure.in: Add paths.h to header files for which we search.
Theodore Ts'o [Sat, 14 Nov 1998 04:18:28 +0000 (04:18 +0000)]
ChangeLog, mke2fs.c, tune2fs.8.in:
tune2fs.8.in: Fix minor display bug in the nroff.
mke2fs.c (show_stats, write_inode_tables): Use the log10 function to
calculate the display of block numbers so that things look nice on an
80 character display.
mke2fs.c (usage): Add the sparse-super-flag to the usage message.
ChangeLog, e2fsck.c, pass1.c, pass2.c, problem.c, problem.h, unix.c:
unix.c (main): Move ext2fs_close() after e2fsck_free_context() since
e2fsck_free_context may reference data in ctx->fs.
e2fsck.c (e2fsck_reset_context): Make sure ctx->fs is non-NULL before
checking ctx->fs->dblist.
pass1.c (e2fsck_pass1): Use the device check subroutine on FIFO's and
Socket's, so that we catch bogus immutable inodes.
pass2.c (process_bad_inode): Process bad socket and fifo's.
problem.h, problem.c: Define new problem codes PR_2_BAD_FIFO and
PR_2_BAD_SOCKET.
Theodore Ts'o [Fri, 6 Nov 1998 19:09:33 +0000 (19:09 +0000)]
README:
Insert pointer to the e2fsprogs web page.
Theodore Ts'o [Wed, 30 Sep 1998 00:54:35 +0000 (00:54 +0000)]
ADD TAG: RESIZE2FS-1_03
Theodore Ts'o [Wed, 30 Sep 1998 00:54:35 +0000 (00:54 +0000)]
.del-resize2fs.spec~
524d144b:
Fix up version number for 1.03
ChangeLog, main.c:
Print a feedback message stating the new size of the filesystem when
we're through.
Theodore Ts'o [Tue, 29 Sep 1998 04:00:55 +0000 (04:00 +0000)]
main.c:
Remove timebomb for production version.
resize2fs.8.in, .del-version.h~
524d144b:
Update for production version of resize2fs.
Theodore Ts'o [Wed, 23 Sep 1998 00:27:26 +0000 (00:27 +0000)]
ChangeLog, initialize.c:
initialize.c (ext2fs_initialize): Make sure that we allocate enough
inodes so that we can make a valid filesystem.
Theodore Ts'o [Thu, 3 Sep 1998 01:26:03 +0000 (01:26 +0000)]
ChangeLog, pass3.c, pass4.c, problem.c, problem.h, super.c:
problem.c: Add PR_3_NO_DIRINFO error code.
super.c (check_super_value): Rename min and max to min_val and max_val
to avoid possible cpp macro conflicts.
pass4.c (e2fsck_pass4): Rename max to maxgroup, to avoid possible cpp
macro conflicts.
pass3.c (e2fsck_pass3): Rename max to maxdirs, to avoid possible cpp
macro conflicts.
(check_directory): Fix logic to avoid possible core dump in the
case of ext2fs_get_dir_info returning NULL. (By the time we get here,
it should never happen, but...). Also simply/streamline the control
flow of the function.
Theodore Ts'o [Thu, 3 Sep 1998 01:22:57 +0000 (01:22 +0000)]
Many files:
rw_bitmaps.c: Fixed signed/unsigned warnings.
fileio.c (ext2fs_file_set_size): Remove unneeded extern from the
function declaration.
dblist.c (make_dblist): Add safety check in case the dblist pointer
passed in is null (in which case, assign it to fs->dblist). Fixed
some signed/unsigned warnings.
bmap.c: Make addr_per_block be of type blk_t to avoid signed/unsigned
warnings.
namei.c (ext2fs_follow_link): Remove uneeded extern from the function
declaration.
get_pathname.c (get_pathname_proc): Use return value from
ext2fs_get_mem, instead of checking if &gp->name is NULL.
dir_iterate.c (ext2fs_process_dir_block):
dblist_dir.c (ext2fs_dblist_dir_iterate): Remove uneeded extern from
the function declaration.
block.c (ext2fs_block_iterate2): If the read_inode call fails, return
the error directly instead of jumping to the cleanup routine, since we
don't need to do any cleanup.
alloc_table.c (ext2fs_allocate_group_table): Make this function take a
dgrp_t for its group argument.
ext2fs.h: Make dgrp_t an __u32 type, and make fs->desc_group_count be
of type dgrp_t.
Theodore Ts'o [Thu, 3 Sep 1998 00:26:49 +0000 (00:26 +0000)]
ChangeLog, resize2fs.c:
resize2fs.c: Rename max to max_groups and max_dirs to avoid possible
conflicts with a cpp macro named "max".
Theodore Ts'o [Wed, 26 Aug 1998 15:23:31 +0000 (15:23 +0000)]
ChangeLog, unix.c:
unix.c (check_if_skip): Move the "not cleanly mounted" check ahead of
the maximal mount and too long since checked tests.
(reserve_stdio_fds): Make sure 0,1,2 file descriptors are open, so
that we don't open the filesystem using the same file
descriptor as stdout or stderr.
Theodore Ts'o [Sat, 1 Aug 1998 04:35:39 +0000 (04:35 +0000)]
ChangeLog, subst.c, subst.conf.in:
* subst.c: Add the ability to substitute apparent shell/make variables
such as ${prefix}, since this is needed to make the shell scripts work
correctly.
subst.conf.in: Add ${prefix} to the list of substitutions which subst
should make.
Theodore Ts'o [Sat, 1 Aug 1998 04:33:31 +0000 (04:33 +0000)]
ChangeLog, mk_cmds.sh.in:
mk_cmds.sh.in: Fix error message so that it says mk_cmds's template
files instead of compile_et's template files.
ChangeLog, resize2fs.h:
resize2fs.h: Protect include of unistd.h with HAVE_UNISTD_H.
e2fsprogs.lsm:
Updated for 1.12 release.
Theodore Ts'o [Sat, 1 Aug 1998 04:18:06 +0000 (04:18 +0000)]
ChangeLog, e2fsck.c, pass2.c, pass3.c, unix.c:
pass2.c (e2fsck_pass2): Fix the progress accounting so that we get to
100%.
pass3.c (e2fsck_pass3): Change progress accounting to be consistent
with the other e2fsck passes.
e2fsck.c (e2fsck_run): At the end of each pass, call the progress
function with the pass number set to zero.
unix.c (e2fsck_update_progress): If the pass number is zero, ignore
the call, since that indicates that we just want to deallocate any
progress structures.
emptydir.c:
Commit partially done file.
ChangeLog, badblocks.c:
badblocks.c (ext2fs_badblocks_list_add): Use a bigger increment than
10 blocks when we need to expand the size of the badblocks list.
Theodore Ts'o [Sat, 1 Aug 1998 01:03:39 +0000 (01:03 +0000)]
ChangeLog, debugfs.c:
debugfs.c (do_stat, do_clri): Fix bug where debugfs wasn't displaying
the error message if ext2fs_read_inode() failed.
(do_rm): Fix similar problem for call to ext2fs_namei().
Theodore Ts'o [Thu, 9 Jul 1998 05:42:45 +0000 (05:42 +0000)]
ChangeLog, .del-ChangeLog~
905e7699, version.h:
Update for 1.12 release.
Theodore Ts'o [Thu, 9 Jul 1998 05:38:07 +0000 (05:38 +0000)]
.release-checklist:
Update procedure slightly to deal with renamed files, etc.
RELEASE-NOTES, README:
Update for 1.12 release
Theodore Ts'o [Thu, 9 Jul 1998 05:33:18 +0000 (05:33 +0000)]
ChangeLog, unix.c:
unix.c (main): Fix typo in checking the incompat feature set; it
should be checked against EXT2_LIB_FEATURE_INCOMPAT_SUPP.
Theodore Ts'o [Tue, 7 Jul 1998 05:44:43 +0000 (05:44 +0000)]
ADD TAG: E2FSPROGS-1_12
Theodore Ts'o [Tue, 7 Jul 1998 05:44:43 +0000 (05:44 +0000)]
ChangeLog, badblocks.c:
badblocks.c (test_disk): Don't clear the existing bad blocks list when
using e2fsck -c, since it may cause blocks with marginal errors to be
dropped from the bad blocks list.
Theodore Ts'o [Mon, 6 Jul 1998 17:47:56 +0000 (17:47 +0000)]
e2fsprogs.lsm:
Update sizes for 1.12 release.
Theodore Ts'o [Mon, 6 Jul 1998 14:49:09 +0000 (14:49 +0000)]
name:
Fixed spelling error.
Theodore Ts'o [Mon, 6 Jul 1998 14:33:12 +0000 (14:33 +0000)]
ChangeLog, pass1.c:
pass1.c (e2fsck_pass1): Use ext2fs_sb structure for compatibility with
older kernels.
Theodore Ts'o [Sun, 5 Jul 1998 19:37:53 +0000 (19:37 +0000)]
ChangeLog, script:
f_swapfs: Fix script to ignore the version string header which debugfs
now prints when it starts up.
libext2fs.texinfo:
Update copyright notice and revision date.
RELEASE-NOTES, version.h:
Update for 1.12 release.
Theodore Ts'o [Sat, 4 Jul 1998 17:55:54 +0000 (17:55 +0000)]
Many files:
Rename e2fsprogs-1.12.spec and e2fsprogs-1.12.lsm to e2fsprogs.spec and
e2fsprogs.lsm respectively. This makes it easier to track revisions
in CVS.
.cvsignore:
Add .cvsignore file to ingore the build directory.
.cvsignore
1998/07/04 17:55:54-00:00 tytso@mit.edu +1 -0
Add .cvsignore file to ingore the build directory.
.cvsignore
1998/07/04 17:55:53 tytso@mit.edu +0 -0
RCS to BitKeeper
Theodore Ts'o [Sat, 4 Jul 1998 17:52:41 +0000 (17:52 +0000)]
ChangeLog, libext2fs.texinfo:
libext2fs.texinfo: Update definition of ext2fs_block_iterate2.
Theodore Ts'o [Sat, 4 Jul 1998 17:47:52 +0000 (17:47 +0000)]
ChangeLog, findsuper.c:
findsuper.c (main): Print the block group number which is now being
written by e2fsprogs.
Theodore Ts'o [Tue, 30 Jun 1998 05:33:11 +0000 (05:33 +0000)]
ChangeLog, closefs.c, ext2fs.h:
closefs.c (ext2fs_flush): Update the s_block_group_nr field as
appropriate for all of the block group copies, so that it's clear
where the beginning of the filesystem is on the disk. (For when the
partition table gets scrod.)
ext2fs.h: Change the name of the feature from
EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE to EXT2_FEATURE_INCOMPAT_FILESIZE
(to match with the kernel).
Theodore Ts'o [Tue, 30 Jun 1998 05:29:12 +0000 (05:29 +0000)]
ext2fs.h:
Change the name of the feature to match with the name used in the
Linux kernel.
Theodore Ts'o [Sat, 27 Jun 1998 05:23:55 +0000 (05:23 +0000)]
ChangeLog, et_c.awk, et_h.awk:
et_h.awk, et_c.awk: Work around libm bug on the ARM.
Theodore Ts'o [Sat, 27 Jun 1998 05:20:20 +0000 (05:20 +0000)]
ChangeLog, test_icount.c:
test_icount.c (main): The variable which gets the return value from
getopt should be an int so that the comparisons against EOF work on
systems with unsigned chars.
Theodore Ts'o [Sat, 27 Jun 1998 05:11:14 +0000 (05:11 +0000)]
ChangeLog, debugfs.8.in, debugfs.c:
Add a -V option which displays the current version.
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Remove unused variables.
ChangeLog, inode.c:
inode.c (get_next_blockgroup): Fix bug where if get_next_blockgroup()
is called early because of a missing inode table in a block group, the
current_inode counter wasn't incremented correctly.
ChangeLog, tst_uuid.c:
tst_uuid.c (main): Fixed bogus declaration of the main's argv parameter.
ChangeLog, test_icount.c:
test_icount.c (main): Fix main() declaration so that it returns int,
not void.
Many files:
fsck.c (ignore): Remove unused variable cp.
chattr.c (fatal_error):
tune2fs.c (usage):
lsattr.c (usage):
dumpe2fs.c (usage):
badblocks.c (usage): Remove volatile from declaration.
fsck.c: Change use of strdup to be string_copy, since we don't trust
what glibc is doing with strdup. (Whatever it is, it isn't pretty.)
Theodore Ts'o [Tue, 16 Jun 1998 05:23:41 +0000 (05:23 +0000)]
ChangeLog, read_bb.c:
Make ext2fs_read_bb_inode more robust against a completely trashed bad
block inode.
Theodore Ts'o [Wed, 10 Jun 1998 20:45:22 +0000 (20:45 +0000)]
ChangeLog, pass1.c, problem.h:
pass1.c, problem.h: Change blkcnt_t to be e2_blkcnt_t to avoid
collision with LFS API.
pass1.c (e2fsck_pass1): Fix bug so that ext2_max_sizes is properly
initialized.
(e2fsck_pass1): Don't allow the the boot loader inode to be a
directory (clear the inode mode field if so).
Theodore Ts'o [Wed, 10 Jun 1998 20:39:43 +0000 (20:39 +0000)]
Many files:
alloc_tables.c (ext2fs_allocate_group_table): Fix bug so that if the
stride length hits a bad value, we retry the block allocation starting
at the beginning of the block group.
ext2fs.h, bb_inode.c, block.c, bmove.c, dir_iterate.c, expanddir.c,
ext2fsP.h, read_bb.c: Change blkcnt_t to be e2_blkcnt_t to avoid
collision with LFS API.
Theodore Ts'o [Wed, 10 Jun 1998 20:36:37 +0000 (20:36 +0000)]
ChangeLog, resize2fs.c:
Change blkcnt_t to be e2_blkcnt_t to avoid collision with the LFS API.
Theodore Ts'o [Thu, 14 May 1998 22:43:10 +0000 (22:43 +0000)]
ChangeLog, fsck.c:
Remove check for filesystem with the noauto option.
Theodore Ts'o [Thu, 7 May 1998 05:02:00 +0000 (05:02 +0000)]
ChangeLog, e2fsck.8.in, e2fsck.h, pass5.c, unix.c:
unix.c (PRS): Added new option -C, which causes e2fsck to print
progress updates so that callers can keep track of the completion
progress of e2fsck. Designed for use by progress, except for -C 0,
which prints a spinning report which may be useful for some users.
pass5.c (e2fsck_pass5): Use a finer-grained progress reporting scheme
(useful for larger filesystems).
e2fsck.h: Add progress_fd and progress_pos, for use by the Unix
progress reporting functions.
Theodore Ts'o [Fri, 1 May 1998 05:32:18 +0000 (05:32 +0000)]
ChangeLog, initialize.c:
initialize.c (ext2fs_initialize): Initialize s_inodes_count in a way
that avoids overflows on disk sizes greater than 4GB.
Theodore Ts'o [Thu, 30 Apr 1998 17:35:59 +0000 (17:35 +0000)]
ChangeLog, e2fsck.h, pass1.c, super.c:
pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the
appropriate return type for comparison functions for qsort.
e2fsck.h: Add #ifdef protection for unistd.h
super.c: Remove header files already included by e2fsck.h
ChangeLog, dblist.c, ext2fs.h:
ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the return type for
comparison functions for qsort.
dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function declaration.
ChangeLog, extent.c:
extent.c (ext2fs_create_extent_table): Use ext2fs_free_mem instead of
free().
(extent_cmp): Use EXT2_QSORT_TYPE to define the appropriate return
type for comparison functions for qsort.
Theodore Ts'o [Mon, 27 Apr 1998 01:41:13 +0000 (01:41 +0000)]
Many files:
ext2fs.h, bitops.h: Add support for the Watcom C compiler to do inline
functions.
ext2fs.h, dosio.c: Use asm/types.h instead of linux/types.h to evade a
potential problem with glibc's header files trying to spike out
linux/types.h.
ext2fs.h (ext2fs_resize_mem): Change the function prototype to include
the old size of the memory, which is needed for some braindamaged
memory allocation systems that don't support realloc().
badblocks.c (ext2fs_badblocks_list_add):
bb_inode.c (clear_bad_block_proc):
dblist.c (ext2fs_add_dir_block):
icount.c (insert_icount_el):
irel_ma.c (ima_put):
rs_bitmap.c (ext2fs_resize_generic_bitmap): Update functions to pass
the old size of the memory to be resized to ext2fs_resize_mem().
ChangeLog, dirinfo.c:
dirinfo.c (e2fsck_add_dir_info): Update function to pass the old size
of the memory to be resized to ext2fs_resize_mem().
ChangeLog, extent.c, resize2fs.c:
resize2fs.c (adjust_superblock):
extent.c (ext2fs_add_extent_entry): Update functions to pass the old
size of the memory to be resized to ext2fs_resize_mem().
Theodore Ts'o [Mon, 27 Apr 1998 01:28:13 +0000 (01:28 +0000)]
ChangeLog, uuidP.h:
uuidP.h: Use asm/types.h instead of linux/types.h to avoid a problem
caused by glibc hack to prevent linux/types.h from being included.
Theodore Ts'o [Wed, 8 Apr 1998 07:04:48 +0000 (07:04 +0000)]
.del-resize2fs.spec~
524d144b:
Change to be version 1.02.
Theodore Ts'o [Wed, 8 Apr 1998 06:18:37 +0000 (06:18 +0000)]
main.c, .del-version.h~
524d144b:
Add expire time checking to the resize2fs driver program.
Change the version number to be version 1.02.
Theodore Ts'o [Wed, 8 Apr 1998 06:05:49 +0000 (06:05 +0000)]
ChangeLog, configure.in, configure:
Fix missing "test" invokation in configure.in test. (Only affected
default non-Linux builds).
Theodore Ts'o [Fri, 3 Apr 1998 16:12:25 +0000 (16:12 +0000)]
Many files:
configure.in: Change how the installation directions are selected.
Previously, we had prefix and usr_prefix, where prefix was '' and
usr_prefix was /usr, and we then defined bindir, ubindir, libdir,
ulibdir, etc. in terms of that. In autoconf 2.12, it's possible to
override bindir, libdir, etc., and so in order to make our
installation directory makefile variables more in line with autoconf
2.12, I've changed all of the various makefiles to use prefix and
root_prefix, where the default Linux definitions are /usr and '',
respectively. What used to be bindir is now root_bindir, and what
used to be ubindir, is now bindir.
MCONFIG.in: Change directories to match with new installation
directory convention (see above). Add Makefile
dependencies for makefile fragments, and define
DEP_LIB_MAKEFILES which library makefiles can use to
define DEP_MAKEFILES, so that the library makefiles will
get regenerated when the makefile fragments change.
Remove the cat?dir variables, since we aren't creating
those directories any more.
Makefile.in: Add top-level uninstall targets.
e2fsprogs-1.12.spec: Add to the RPM package the e2label man page, and
to reflect that fact that we now compile_et and mk_cmds for the
development package.
ChangeLog, Makefile.in:
Makefile.in: Add uninstall target (which is a just a no-op).
version.h, RELEASE-NOTES:
Update to interim version numbers for release purposes.
Theodore Ts'o [Fri, 3 Apr 1998 16:07:06 +0000 (16:07 +0000)]
ChangeLog, subst.conf.in:
Add substitution for @datadir@
ChangeLog, Makefile.in:
Change to use new installation directory variables convention. Fix
uninstall rules to take $(DESTDIR) into account. Remove cat8dir from
the installdirs target, since modern man package don't necessarily put
the cat directory in /usr/man/cat?.
ChangeLog, .del-types.h.in~
7a460879:
types.h.in: Add a signed keyword to the __s64 definition.
Theodore Ts'o [Wed, 1 Apr 1998 03:16:29 +0000 (03:16 +0000)]
ChangeLog, Makefile.in:
Change to use new installation directory variables convention. Fix
uninstall rules to take $(DESTDIR) into account. Remove cat8dir and
cat1dir from the installdirs target, since modern man package don't
necessarily put the cat directory in /usr/man/cat?.
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
Remove cat8dir from the installdirs target, since modern man package
don't necessarily put the cat directory in /usr/man/cat?.
Change to use new installation directory variables convention. Fix
installdirs and uninstall rules to reflect the fact that debugfs has
been installed in the root filesystem. Fix uninstall rules to take
$(DESTDIR) into account.
Theodore Ts'o [Wed, 1 Apr 1998 02:51:21 +0000 (02:51 +0000)]
Many files:
Change to use new installation directory variables convention. Add
uninstall rules.
Theodore Ts'o [Wed, 1 Apr 1998 02:46:43 +0000 (02:46 +0000)]
ChangeLog, Makefile.in:
Change to use new installation directory variables convention. Fix
uninstall rules to take $(DESTDIR) into account.
Theodore Ts'o [Wed, 1 Apr 1998 02:18:45 +0000 (02:18 +0000)]
ChangeLog, Makefile.in:
Remove libext2fs.info*, not just libext2fs.info*.gz. Add an
uninstall-doc-libs target.
ChangeLog, Makefile.in, compile_et.1, compile_et.sh.in:
Makefile.in: Fix bug where my_dir was set incorrectly. Install the
et_c.awk and et_h.awk files in $(datadir)/et (i.e., /usr/share/et)
directory. Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
compile_et.1: Change man page to reflect the fact that compile_et is
now a awk/sed script, not a yacc script.
compile_et.sh.in: Look in $(datadir)/et for et_c.awk and et_h.awk; if
not found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in, mk_cmds.sh.in:
Makefile.in: Install the ct_c.awk and ct_c.sed files in $(datadir)/ss
(i.e., /usr/share/ss) directory. Change to use new installation
directory variables convention. Fix uninstall rules to take
$(DESTDIR) into account.
mk_cmds.sh.in: Look in $(datadir)/ss for ct_c.awk and ct_c.sed; if not
found, look in the build directory. Add error checking for
non-existent input file.
ChangeLog, Makefile.in:
Makefile.in: Change to use new installation directory variables
convention. Fix uninstall rules to take $(DESTDIR) into account.
Theodore Ts'o [Mon, 30 Mar 1998 01:32:10 +0000 (01:32 +0000)]
ChangeLog:
Committed wrong version of ChangeLog that didn't include the line
describing the new e2label.8.in file.
Theodore Ts'o [Mon, 30 Mar 1998 01:27:25 +0000 (01:27 +0000)]
ChangeLog, Makefile.in, bmap.c, bmove.c, ext2fs.h, jump.funcs:
ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform with
32 bit longs, then we need to manually define __s64 and __u64, since
the current kernel header files don't define these if __STRICT_ANSI__
is defined. This is a problem if we are compiling with full GCC
warnings, since we do need 64 bit support.
Makefile.in (OBJS): Remove bmove.o from files to be built, since we're
not using ext2fs_move_blocks() and there is some question as to its
usefulness in its current form.
bmap.c (block_bmap): Remove unused function.
bmove.c (process_block): Fix -Wall warning.
ChangeLog, debugfs.c, debugfs.h, dump.c:
debugfs.h: Add declaration for do_dirty_filsys() to prevent -Wall
warnings.
debugfs.c (copy_file):
dump.c (dump_file): Fix -Wall warning caused by signed/unsigned mismatch.
Theodore Ts'o [Mon, 30 Mar 1998 01:20:55 +0000 (01:20 +0000)]
Many files:
e2label.c: Fix -Wall warning by making functions static.
chattr.1.in: Document that the append-only attribute may only be set
or cleared by the superuser.
Update all manual pages to that the availability section is
up-to-date.
e2label.8.in, tune2fs.8.in: Update manual page to state that labels
must be no longer than 16 characters, or they will be truncated.
e2label.c (change_label), tune2fs.c (main): If the label is longer
than 16 characters, print a warning message stating that the label
will be truncated.
mke2fs.c (PRS): If the user specifies a filesystem size, and it's
larger than the apparent size of the device, print a warning message
and ask if the user wants to proceed.
Theodore Ts'o [Mon, 30 Mar 1998 01:16:26 +0000 (01:16 +0000)]
ChangeLog, e2fsck.h, pass4.c, super.c:
super.c, e2fsck.h: Always declare e2fsck_get_device_size() as an
extern in e2fsck.h to prevent -Wall warnings.
pass4.c (e2fsck_pass4): Remove unused variable 'j'.
super.c (check_super_block): Fix broken superblock sanity check when
calculating blocks_per_group if s_log_frag_size != s_log_block_size.
Since we don't support fragments, this isn't a bug deal, but it's good
to get it fixed.
ChangeLog, Makefile.elf-lib:
Makefile.elf-lib (installdirs): Change use of DLL_INSTALL_DIR to
ELF_INSTALL_DIR. (Doesn't make a difference currently, but it's
correct this way.)
ChangeLog, fgetversion.c, getversion.c:
getversion.c (getversion): Return 0 if there's no error.
fgetversion.c (fgetversion): Pass the address of the temporary
variable instead of the unitialized variable to the
EXT2_IOC_GETVERSION ioctl.
Theodore Ts'o [Mon, 30 Mar 1998 01:11:44 +0000 (01:11 +0000)]
ChangeLog, Makefile.in, MCONFIG.in:
Makefile.in: Use && after a cd command so that the right thing happens
if the directory is missing. Don't compile man pages upon
installation any more, since modern Linux systems don't have
/usr/man/cat? anymore (they typically cache man pages in /var/catman
and delete them if they haven't been used in a while, to save on disk
space, and because CPU's are fast enough these days that you can get
away with this).
MCONFIG.in: Add a new makefile variable for the share directory (i.e.,
/usr/share). Make an autoconf magic make rule so that
$(top_builddir)/util/subst.conf gets rebuilt automatically when
necessary.
Theodore Ts'o [Mon, 30 Mar 1998 01:08:41 +0000 (01:08 +0000)]
ChangeLog, test_icount.c, test_icount.h:
test_icount.h (do_dump, do_validate): Add prototypes to fix -Wall
warnings.
test_icount.c: Fix -Wall warnings.
ChangeLog, extent.c, main.c:
extent.c (extent_cmp): Add const to cast to prevent -Wall warning.
main.c (check_mount): Rename function argument to prevent -Wall
warning.
Theodore Ts'o [Sat, 28 Mar 1998 06:44:38 +0000 (06:44 +0000)]
pass1.c:
Change "long long" to be __s64
Theodore Ts'o [Tue, 24 Mar 1998 16:27:11 +0000 (16:27 +0000)]
ChangeLog, main.c, resize2fs.c:
main.c (main): Check to make sure we can really resize this
filesystem. If there are compatible feature sets that we don't
support, we need to abort.
resize2fs.c: Change to use the new prototype required by
block_iterate2 (which uses blkcnt_t for the blockcount).
version.h, RELEASE-NOTES:
Interim commit of changes to date.
Theodore Ts'o [Tue, 24 Mar 1998 16:22:38 +0000 (16:22 +0000)]
Many files:
unix.c: Fix bug in check of feature set, to make sure we can really
fix this filesystem.
problem.h: Make blkcount type to be of type blkcnt_t. Make the num
field be a 64 bit type. Add the problem code PR_1_FEATURE_LARGE_FILES
problem.c: Add table entry for the problem code PR_1_FEATURE_LARGE_FILES.
pass1.c (e2fsck_pass1): A non-zero i_dir_acl field is only a problem
for directory inodes. (Since it is also i_size_high now.) If there
are no large_files, then clear the LARGE_FLAG feature flag. If there
are large_files, but the LARGE_FLAG feature flag is not set, complain
and offer to fix it.
(check_blocks): Add support to deal with non-directory inodes that
have i_size_high set (i.e., large_files). Don't give an error if a
directory has preallocated blocks, to support the DIR_PREALLOC
feature.
(process_block, process_bad_block): The blockcnt variable is a type of
blkcnt_t, for conversion to the new block_iterate2.
pass2.c (process_bad_inode): A non-zero i_dir_acl field is only a
problem for directory inodes. (Since it is also i_size_high now.)
message.c (expand_inode_expression): Print a 64-bits of the inode size
for non-directory inodes. (Directory inodes can only use a 32-bit
directory acl size, since i_size_high is shared with i_dir_acl.) Add
sanity check so that trying to print out the directory acl on a
non-directory inode will print zero. (expand_percent_expression): %B
and %N, which print pctx->blkcount and pctx->num, can now be 64 bit
variables. Print them using the "%lld" format if EXT2_NO_64_TYPE is
not defined.
e2fsck.h: Add the large_flagsfield to the e2fsck context.
e2fsck.c (e2fsck_reset_context): Clear the large_flags field.
ChangeLog, expect.1:
f_messy_inode: Modify test to deal with changes to support 64-bit size
files. (/MAKEDEV had i_dir_acl, now i_size_high, set.)
Theodore Ts'o [Tue, 24 Mar 1998 16:17:51 +0000 (16:17 +0000)]
Many files:
block.c (ext2fs_block_iterate3): Make the ref_offset field contain the
offset into the inode.i_blocks array when ref_block is zero. Since we
haven't done a formal release of e2fsprogs since block_iterate2 was
first introduced, I removed block_iterate2, and renamed block_iterate3
to be block_iterate2.
bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c, expanddir.c,
ext2fs.h, ext2fsP.h, read_bb.c: Change use of block_iterate and
block_iterate2 to block_iterate2 with the new prototype for the
interator function. (using blkcnt_t forr blockcount)
ChangeLog, debugfs.c, ls.c, lsdel.c:
debugfs.c, ls.c, lsdel.c: Add support for large files. (The high 32
bits share space with the i_dir_acl field.)
Theodore Ts'o [Tue, 24 Mar 1998 16:09:18 +0000 (16:09 +0000)]
ChangeLog, .del-ext2_fs.h~
7a460879:
Update to latest 2.1.90+diffs version of ext2_fs.h
Theodore Ts'o [Mon, 23 Mar 1998 02:06:52 +0000 (02:06 +0000)]
Many files:
ext2fs.h: Add new superblock fields (s_algorithm_usage_bitmap,
s_prealloc_blocks, s_prealloc_dir_blocks). Added conditional defines
of new features COMPAT_DIR_PREALLOC, RO_COMPAT_LARGE_FILE
RO_COMPAT_BTREE_DIR, INCOMPAT_COMPRESSION, INCOMPAT_DIRNAME_SIZE.
Changed the library to declare that we support COMPAT_DIR_PREALLOC,
INCOMPAT_DIRNAME_SIZE, RO_COMPAT_LARGE_FILE.
fileio.c: Rename function ext2fs_file_llseek to be ext2fs_file_lseek,
which is more accurate.
block.c: Add new function ext2fs_block_iterate3 which calls the
iterator function with the blockcount argument of type blkcnt_t. This
version of the function is allowed to handle large files; the other
fucntions are not.
ext2fs.h: Add new type blkcnt_t
ext2_err.et.in: Add error code EXT2_ET_FILE_TOO_BIG
block.c (ext2fs_block_iterate2): Fix bug where the block count field
wasn't getting correctly incremented for sparse files when the
indirect or doubly-indirect block specified in the inode was zero.
unlink.c (unlink_proc):
lookup.c (lookup_proc):
link.c (link_proc):
get_pathname.c (get_pathname_proc):
dir_iterate.c (ext2fs_process_dir_block): Mask off high 8 bits from
dirent->name_len, so it can be used for other purposes.
ext2fs.h: Add definition of EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE, and
indicate that we have support for this incompatible option.
Theodore Ts'o [Sat, 21 Mar 1998 07:12:46 +0000 (07:12 +0000)]
ChangeLog, mke2fs.c:
Fixed spelling typo in warning message. Fixed up -Wall warnings in
file.
Many files:
Update latest version of the build files for resize2fs.
Theodore Ts'o [Sat, 21 Mar 1998 03:27:48 +0000 (03:27 +0000)]
ChangeLog, resize2fs.c:
resize2fs.c (inode_scan_and_fix): If we are expanding the filesystem,
temporarily set rfs->old_fs->super->s_blocks_count to ultimate size of
the filesystem, to avoid catching an error on the block iterator.
Theodore Ts'o [Mon, 9 Mar 1998 17:41:53 +0000 (17:41 +0000)]
ChangeLog, main.c, .del-resize2fs-1.12.spec~
70080ffd, resize2fs.8.in:
Decouple version numbers from the base e2fsprogs release.
Theodore Ts'o [Mon, 9 Mar 1998 13:10:37 +0000 (13:10 +0000)]
ChangeLog, message.c, pass2.c, pass3.c:
Mask off the high eight bits of the directory entry's name_len field,
so that it can be used for other purposes.
Theodore Ts'o [Mon, 9 Mar 1998 13:07:09 +0000 (13:07 +0000)]
ChangeLog, ls.c:
Mask off high 8 bits from dirent->name_len.
Many files:
The ext2 version and flags ioctl's take an int *, not a long *. Fix
library to use the correct type, so we don't have problems on the
Alpha.
Theodore Ts'o [Mon, 9 Mar 1998 03:34:48 +0000 (03:34 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_node_id): Use char * instead of caddr_t, which doesn't
always exist for glibc.
Theodore Ts'o [Mon, 9 Mar 1998 03:23:51 +0000 (03:23 +0000)]
ChangeLog, partinfo.c:
The ioctl BLKGETSIZE requires a long, not an int.
Theodore Ts'o [Sat, 7 Mar 1998 23:36:45 +0000 (23:36 +0000)]
Makefile.in, ChangeLog:
Change the name of the complete source file that we built (that
includes resize2fs) to be e2fsprogs-ALL-<version>.tar.gz. Don't link
with libuuid, since it's not needed.
resize2fs.8.in:
Add copyright statement.
Many files:
Update packaging for the resize2fs program.
Theodore Ts'o [Sat, 7 Mar 1998 23:26:26 +0000 (23:26 +0000)]
main.c, ChangeLog:
Add copyright notice.
Theodore Ts'o [Sat, 7 Mar 1998 23:24:01 +0000 (23:24 +0000)]
ChangeLog, resize2fs.c:
resize2fs.c (blocks_to_move): Create the meta_bmap using the old
filesystem, not the new filesystem.
(get_new_block): Don't try checking the old block bitmap if the block
we're testing is beyond the boundaries of the old filesystem.
Theodore Ts'o [Wed, 4 Mar 1998 16:29:30 +0000 (16:29 +0000)]
jump.funcs:
Updated to reflect new library function calls.
Theodore Ts'o [Fri, 27 Feb 1998 06:04:23 +0000 (06:04 +0000)]
ChangeLog, Makefile.in, main.c:
Makefile.in: Add rule to build a static version of resize2fs. Update
dependency rules.
main.c: #include ../version.h, instead of using a hard-coded version
string.
Theodore Ts'o [Fri, 27 Feb 1998 05:03:48 +0000 (05:03 +0000)]
ChangeLog, e2fsck.c, e2fsck.h, pass1.c:
e2fsck.c (e2fsck_run): Since E2F_FLAG_SIGNAL_MASK doesn't
include EXT2_FLAG_RESTART anymore, we need to adjust this
routine so that it *does* return in the case of it seeing
EXT2_FLAG_RESTART.
pass1.c (e2fsck_pass1): ext2_get_next_inode() may call the group done
callback function, which may set context abort flags. So we need to
test the context abort flags after we call ext2_get_next_inode().
(process_inodes): If we abort due out of process_inodes, do a clean
exit by breaking out of the for loop instead of just returning.
e2fsck.h (E2F_FLAG_SIGNAL_MASK): EXT2_FLAG_RESTART shouldn't be
considered a SIGNAL mask (i.e., requiring an immediate abort of
processing to restart). FLAG_RESTART just means that we want to
restart once pass 1 is complete.
Theodore Ts'o [Fri, 27 Feb 1998 01:24:49 +0000 (01:24 +0000)]
version.h:
Update version date.
Theodore Ts'o [Tue, 24 Feb 1998 20:24:49 +0000 (20:24 +0000)]
ChangeLog, main.c, resize2fs.c, resize2fs.h:
Change the progress function to return an errcode_t; this allows the
progress function to return a error indicating a user-requested
cancel.
Theodore Ts'o [Tue, 24 Feb 1998 20:22:23 +0000 (20:22 +0000)]
Many files:
Change the progress function to return an integer; if returns 1, then
the progress function is expected to have set the e2fsck context flag
signalling a user abort, and the caller should also initiate a user
abort.
Theodore Ts'o [Tue, 24 Feb 1998 04:25:52 +0000 (04:25 +0000)]
ChangeLog, ext2_err.et.in:
Added new error code, EXT2_ET_CANCEL_REQUESTED.
Theodore Ts'o [Tue, 24 Feb 1998 03:20:51 +0000 (03:20 +0000)]
.del-e2fsprogs-1.12.spec~
2cb50db6:
Misc. spec file cleanups. Use URL for the source, and make
the development package require the base e2fsprogs package.
Theodore Ts'o [Sat, 21 Feb 1998 05:01:19 +0000 (05:01 +0000)]
ChangeLog, dblist.c:
dblist.c (ext2fs_get_num_dirs): Improve the estimation of the number
of directories when the block group information is unreliable.
Theodore Ts'o [Sat, 21 Feb 1998 04:57:31 +0000 (04:57 +0000)]
version.h:
Update the version date.
ChangeLog:
Fix typo.
Theodore Ts'o [Sat, 21 Feb 1998 04:20:44 +0000 (04:20 +0000)]
ChangeLog, main.c, resize2fs.8.in, resize2fs.c:
main.c (check_mount, main): Resize2fs now checks the size of the
partition, and uses this as a default new_size of the partition if one
is not specified. Resize2fs will not let you resize a mounted
partition.
resize2fs.c: Change how the progress function for the INODE_SCAN pass
is performed, so that the maximum size is never zero.
resize2fs.8.in: Updated man page.
Theodore Ts'o [Sat, 21 Feb 1998 03:14:50 +0000 (03:14 +0000)]
RELEASE-NOTES:
Updated as of February 20th, 1998.
Theodore Ts'o [Sat, 21 Feb 1998 01:41:39 +0000 (01:41 +0000)]
.del-ChangeLog~
905e7699, image.gz:
Set the immutable flag on the block and character device so that
e2fsck notices them as bad devices, and offers to fix them. E2fsck
currently only checks devices with the immutable flag set, since
otherwise there might be some false positives --- the kernel doesn't
always clear the all of i_blocks[n], n>=4, due to a race condition.
ChangeLog, inode.c:
inode.c (ext2fs_get_next_inode): Always do the check to see if the
inode table is missing so that we catch the case where the first block
group is missing.
Theodore Ts'o [Fri, 20 Feb 1998 05:33:14 +0000 (05:33 +0000)]
ChangeLog, getsize.c, ismounted.c, unix_io.c:
getsize.c, ismounted.c, unix_io.c: #include errno.h since it's needed.
Theodore Ts'o [Fri, 20 Feb 1998 05:24:59 +0000 (05:24 +0000)]
ChangeLog, pass5.c:
pass5.c (check_block_bitmaps, check_inode_bitmaps): Don't call
end_problem_latch() unless there was actually a problem latched.
Simplifies semantics of the latch processing.
Theodore Ts'o [Mon, 16 Feb 1998 22:34:46 +0000 (22:34 +0000)]
ChangeLog, e2fsck.8.in, e2fsck.h, pass3.c, pass4.c, super.c:
e2fsck.h: Add new field, priv_data to the e2fsck context structure.
It should be used by callers of the e2fsck functions only, and not by
anything in e2fsck itself.
super.c: Instead of call ext2fs_get_device_size(), define and call
e2fsck_get_device_size(). (This function may be stubbed out in
special versions of e2fsck.)
pass3.c, pass4.c: Remove extra calls to the progress function that
weren't needed.
mke2fs.8.in: Update man page to note that the format of the bad block
file is the same as the one generated by badblocks.
Theodore Ts'o [Mon, 16 Feb 1998 22:29:34 +0000 (22:29 +0000)]
ChangeLog, badblocks.8.in, mke2fs.c:
badblocks.8: Update documentation to note that output format of
badblocks is suitable for use with e2fsck -l or mke2fs -l.
mke2fs.c (handle_bad_blocks): Fix bug so that all groups with bad
superblock backup blocks are printed (not just the first one).
Theodore Ts'o [Mon, 16 Feb 1998 22:16:20 +0000 (22:16 +0000)]
Many files:
Major reoganization of how resizing works. Functions in
ext2_block_move.c, and ext2_inode_move.c moved into resize2fs.c.
Multiple passes in those two files also combined into a single inode
scanning pass. Made the inode table moving function better handling
the case where it needs to abort mid-operation. When moving blocks
around, made the block allocation function preferentially avoid the
old group descriptor blocks, to make resize2fs more robust.
Theodore Ts'o [Mon, 16 Feb 1998 22:00:37 +0000 (22:00 +0000)]
ChangeLog, bmove.c, ext2_io.h, ext2fs.h, rw_bitmaps.c, test_io.c:
ext2_io.h, ext2fs.h: Protect against being included multiple times.
bmove.c: #include ext2fsP.h instead of "ext2fs/ext2fs.h"
test_io.c (test_flush): Add a debugging printf when the flush method
is called.
rw_bitmaps.c (ext2fs_read_bitmaps): If the bitmaps are already read
in, return right away.
Theodore Ts'o [Fri, 13 Feb 1998 22:58:18 +0000 (22:58 +0000)]
Many files:
resize2fs.c, resize2fs.h, ext2_block_move.c, ext2_inode_move.c,
main.c: Reorganize how the progress functions are called.
Theodore Ts'o [Sun, 1 Feb 1998 13:23:02 +0000 (13:23 +0000)]
ChangeLog, bitops.h, ext2fs.h, icount.c, version.c:
bitops.h: Don't try to do i386 inline asm functions if the compiler
isn't GCC.
ext2fs.h: If EXT2_FLAT_INCLUDES is defined, #include e2_types.h,
instead of linux/types.h, and e2_bitops.h instead of ext2fs/bitops.h.
icount.c, version.c: Don't #include <et/com_err.h>, as it isn't necessary.
Theodore Ts'o [Sun, 1 Feb 1998 12:58:48 +0000 (12:58 +0000)]
ChangeLog, dirinfo.c, e2fsck.c, e2fsck.h, super.c:
dirinfo.c, e2fsck.c: Don't include com_err.h; it isn't needed.
e2fsck.h: Include <time.h> since it is needed
super.c: If EXT2_SKIP_UUID is defined, then skip the UUID processing.
Theodore Ts'o [Sun, 1 Feb 1998 00:16:40 +0000 (00:16 +0000)]
ChangeLog, e2fsck.8.in, unix.c:
unix.c (main): In the case where the filesystem revision is too high,
print the message about the superblock possibly being corrupt.
e2fsck.8.in: Add expanded comments about how the -b option works.
Theodore Ts'o [Mon, 19 Jan 1998 15:02:12 +0000 (15:02 +0000)]
ChangeLog, .del-e2fsprogs-1.12.spec~
2cb50db6:
Update spec file in preparataion for 1.12 release.
Theodore Ts'o [Mon, 19 Jan 1998 14:55:24 +0000 (14:55 +0000)]
Many files:
resize2fs.h: If EXT2_FLAT_INCLUDES is defined, then assume all
of the ext2-specific header files are in a flat directory.
ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
resize2fs.h: Rename variables named "new" to "new_block",
"new_inode", or "new_loc" to avoid C++ reserved word
clash.
ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
sim_progress.c: Use ext2fs_get_memory(),
ext2fs_free_memory(), et. al., instead of malloc() and
free().
ext2_block_move.c, ext2_inode_move.c, extent.c: Explicitly cast
all assignments from void * to be compatible with C++.
banalysis.c, banalysis.h, ext2_inode_move.c, ext2_block_move.c:
Change private to priv_data to avoid C++ namespace clash.
ChangeLog, badblocks.8.in:
badblocks.8.in: Add documentation for the -s option.
Theodore Ts'o [Mon, 19 Jan 1998 14:50:49 +0000 (14:50 +0000)]
Many files:
e2fsck.h: If EXT2_FLAT_INCLUDES is defined, then assume all of
the ext2-specific header files are in a flat directory.
dirinfo.c, ehandler.c, pass1.c, pass1b.c, pass2.c, pass5.c,
super.c, swapfs.c, unix.c: Explicitly cast all assignments
from void * to be compatible with C++.
unix.c (sync_disk): Remove sync_disk and calls to that function,
since ext2fs_close() now takes care of this.
pass1.c, pass1b.c, pass2.c, pass3.c, swapfs, badblocks.c,
ehandler.c, unix.c: Change use of private to be priv_data, to
avoid C++ reserved name clash.
Theodore Ts'o [Mon, 19 Jan 1998 14:47:53 +0000 (14:47 +0000)]
Many files:
inode.c (ext2fs_open_inode_scan): Initialize the group variables
so that we don't need to call get_next_blockgroup() the first
time around. Saves a bit of time, and prevents us from
needing to assign -1 to current_group (which is an unsigned
value).
icount.c (insert_icount_el): Cast the estimated number of inodes
from a float to an ino_t.
alloc.c, alloc_tables.c, badlbocks.c, bb_compat.c, bb_inode.c,
bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c,
check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c,
dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c, expanddir.c,
ext2fs.h, fileio.c, freefs.c, get_pathname.c, getsize.c,
icount.c, initialize.c, inline.c, inode.c, irel_ma.c,
ismounted.c, link.c, lookup.c, mkdir.c, namei.c, native.c,
newdir.c, openfs.c, read_bb.c, read_bb_file.c, rs_bitmap.c,
rw_bitmaps.c, swapfs.c, test_io.c, tst_badblocks.c,
tst_getsize.c, tst_iscan.c, unix_io.c, unlink.c, valid_blk.c,
version.c: If EXT2_FLAT_INCLUDES is defined, then assume all
of the ext2-specific header files are in a flat directory.
block.c, bmove.c, dirblock.c, fileio.c: Explicitly cast
all assignments from void * to be compatible with C++.
closefs.c (ext2fs_flush): Add a call to io_channel_flush() to
make sure the contents of the disk are flushed to disk.
dblist.c (ext2fs_add_dir_block): Change new to be new_entry to
avoid C++ namespace clash.
bitmaps.c (ext2fs_copy_bitmap): Change new to be new_map to
avoid C++ namespace clash.
ext2fs.h, bb_inode.c, block.c, bmove.c, brel.h, brel_ma.c,
irel.h, irel_ma.c, dblist.c, dblist_dir.c, dir_iterate.c,
ext2fsP.h, expanddir.c, get_pathname.c, inode.c, link.c,
unlink.c: Change private to be priv_data (to avoid C++
namespace clash)