OSDN Git Service
Theodore Ts'o [Thu, 6 Jul 2000 00:31:27 +0000 (00:31 +0000)]
ChangeLog, badblocks.c:
badblocks.c (test_nd): Significantly simplify the logic so that it's
more obviously what's going on. Fixed a few potential cases which
weren't handled correctly in the old, overly complicated logic.
(flush_bufs): Now doesn't take a second argument, and always forces a
sync; this is required before it's really safe to call BLKFLSBUF, at
least for some kernels.
Theodore Ts'o [Wed, 5 Jul 2000 23:54:46 +0000 (23:54 +0000)]
ChangeLog, Makefile.in:
Makefile.in (install): Install resize2fs in /sbin, not /usr/sbin.
ChangeLog, unix.c:
unix.c: Also, re-arrange the logic so that we do the time check only
after doing the percentage check, and we only advance the spinner if
we're about to display it.
ChangeLog:
Fix minor wording error in Chagelog.
Theodore Ts'o [Wed, 5 Jul 2000 18:25:59 +0000 (18:25 +0000)]
ChangeLog, unix.c:
unix.c (e2fsck_update_progress): Only save and check the last
percentage after multiplying it by 10, nor 1000, since we only need to
save values to a tenth of a percent (and the percentage is already
from 0 .. 100%, not 0 .. 1).
Theodore Ts'o [Wed, 5 Jul 2000 17:48:34 +0000 (17:48 +0000)]
ChangeLog, debugfs.c:
debugfs.c (dump_inode): Make the generation field be printed as an
unsigned integer.
Theodore Ts'o [Wed, 5 Jul 2000 15:42:23 +0000 (15:42 +0000)]
ChangeLog, config.guess, config.sub:
config.guess, config.sub: Update to use latest version from FSF (2000-06-13)
Theodore Ts'o [Tue, 4 Jul 2000 19:51:22 +0000 (19:51 +0000)]
ChangeLog, pass1.c:
pass1.c (e2fsck_pass1): Check to see if the ext3 s_last_orphan field
is set; if so, clear it, so that ext3 mounting code won't get confused
by the fact that we've cleared out the orphaned inodes.
Theodore Ts'o [Tue, 4 Jul 2000 19:41:29 +0000 (19:41 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: Update to include latest journalling additions to the superblock.
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Update to include latest journalling additions to the
superblock.
Theodore Ts'o [Tue, 4 Jul 2000 19:20:25 +0000 (19:20 +0000)]
Many files:
tst_badblocks.c: Update test program to test ext2fs_read_bb_FILE2 and
ext2fs_write_FILE.
write_bb_file.c (ext2fs_write_bb_FILE): New function which writes out
bad blocks list to a file.
read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which changes
the callback function to take two additional arguments; a private
blind pointer supplied by the caller, and pointer to a char *
containing a pointer to the invalid string.
badblocks.c (ext2fs_badblocks_equal): Add new function which returns
true if two badblocks list are equal.
Makefile.in: Remove explicit link of -lc in the shared library. (It
shouldn't be necessary, and is harmful in some cases).
jump.funcs:
dll/jump.funcs: Add new jumptable entries for ext2fs_write_bb_FILE,
ext2fs_read_bb_FILE2, and ext2fs_badblocks_equal.
Theodore Ts'o [Tue, 4 Jul 2000 18:51:20 +0000 (18:51 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Remove explicit link of -lc in the shared library. (It
shouldn't be necessary, and is harmful in some cases).
Theodore Ts'o [Tue, 4 Jul 2000 12:37:55 +0000 (12:37 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the mk_cmds
support files from the source tree.
.cvsignore:
Add std_rqs.c to the ignore list.
Theodore Ts'o [Tue, 4 Jul 2000 12:34:34 +0000 (12:34 +0000)]
ChangeLog, Makefile.in, ct_c.awk, mk_cmds.sh.in:
ct_c.awk: Work around a bug in gawk 3.05
mk_cmds.sh.in: Allow the build system to override the standard
location for finding the ct_c.* files by setting the _SS_DIR_OVERRIDE
environment variable.
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the version in
the source tree.
ChangeLog, Makefile.in:
Makefile.in: Use _SS_DIR_OVERRIDE to make sure we get the
mk_cmds support files from the source tree.
Theodore Ts'o [Mon, 12 Jun 2000 22:40:09 +0000 (22:40 +0000)]
POTFILES.in, it.po, nyc.po:
Update to include resize2fs files.
Theodore Ts'o [Mon, 12 Jun 2000 22:06:16 +0000 (22:06 +0000)]
ChangeLog, extent.c, main.c, resize2fs.c, resize2fs.h:
main.c, resize2fs.c, resize2fs.h, extent.c: Add NLS support.
Theodore Ts'o [Mon, 12 Jun 2000 17:35:13 +0000 (17:35 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_random_bytes): Use O_NONBLOCK when trying to open
/dev/random. Break out the /dev/random initialization code into a
get_random_fd() function, and use that function in uuid_generate() to
determine whether to use uuid_generate_random() or
uuid_generate_time().
Theodore Ts'o [Mon, 12 Jun 2000 16:45:30 +0000 (16:45 +0000)]
badblocks.8.in:
Update man page explanation for badblocks.
Update man page's explanation for the -c option.
Theodore Ts'o [Sat, 10 Jun 2000 19:27:17 +0000 (19:27 +0000)]
ChangeLog, getsize.c:
getsize.c (main): Add debugging code under #ifdef DEBUG
Theodore Ts'o [Sat, 10 Jun 2000 19:21:33 +0000 (19:21 +0000)]
ChangeLog, pass5.c, problem.c, problem.h:
pass5.c (check_block_bitmaps, check_inode_bitmaps): Add error checking
for a "should never happen case".
problem.c, problem.h (PR_5_COPY_IBITMAP_ERROR,
PR_5_COPY_BBITMAP_ERROR): Add new error codes.
Theodore Ts'o [Sat, 10 Jun 2000 15:20:41 +0000 (15:20 +0000)]
lsdel.c:
Fix missed call to ext2fs_get_next_inode() to check for
EXT2_ET_BAD_BLOCK_INODE.
Theodore Ts'o [Fri, 9 Jun 2000 04:24:36 +0000 (04:24 +0000)]
ChangeLog, lsdel.c:
Handle bad blocks in inode table.
Theodore Ts'o [Mon, 29 May 2000 15:05:42 +0000 (15:05 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c (PRS): Add a much more specific error message if the
filesystem size is defaulted and get_device_size returns a size of
zero. Otherwise, users get a confusing "invalid argument while passed
to ext2 library" error message.
Theodore Ts'o [Sat, 27 May 2000 16:04:00 +0000 (16:04 +0000)]
Makefile.in:
Fix stupid dependency bug.
ChangeLog, debugfs.c, debugfs.h, util.c:
debugfs.c (do_testb, do_testi): Call check_fs_bitmaps to avoid
coredumping if the bitmaps aren't loaded.
util.c (check_fs_bitmaps): New function which checks whether or not
the bitmaps are loaded.
Theodore Ts'o [Sat, 27 May 2000 15:18:02 +0000 (15:18 +0000)]
Makefile.in:
Add another dependency hack to allow parallel makes to work correctly.
Theodore Ts'o [Sat, 27 May 2000 15:15:40 +0000 (15:15 +0000)]
ChangeLog, debug_cmds.ct, debugfs.8.in, debugfs.c, dump.c, ls.c:
debugfs.8.in: Documented new behaviour.
ls.c (ls_l_file): Fix Y2K bug -- was printing 22-May-100 for recent
files. Switched to 4-digit years.
dump.c, debug_cmds.ct (do_rdump): Add new debugfs command "rdump",
which recursively dumps a directory and its contents.
(fix_perms): New function. Break permission-fixing code out of
dump_file() so it can be called by rdump code as well.
(dump_file): Call fix_perms().
debugfs.c, debug_cmds.ct (do_lcd): Add new debugfs command "lcd",
which changes the cwd on the native filesystem.
debugfs.c (open_filesystem): Extra args for superblock, blocksize, and
catastrophic mode. Changed callers.
(do_open_filesys, main): Accept new -b, -s, -c options for
open_filesystem.
ChangeLog, mkdir.c:
mkdir.c (ext2fs_mkdir): Read the parent directory's inode earlier, so
that if there's an error reading it, we can more cleanly back out of
the operation.
version.h:
Update version file for WIP release.
Theodore Ts'o [Sat, 27 May 2000 14:40:09 +0000 (14:40 +0000)]
ChangeLog, pass1.c, problem.c, problem.h:
pass1.c (pass1, check_size): Apply patch from Chris Wedgewood
(cw@foof.org) which checks to see if special devices have a non-zero
size, and deals with it.
problem.c, problem.h (PR1_SET_NONZSIZE): Add new problem code.
Theodore Ts'o [Thu, 25 May 2000 23:46:39 +0000 (23:46 +0000)]
Many files:
Remove generated file.
Theodore Ts'o [Thu, 25 May 2000 23:42:22 +0000 (23:42 +0000)]
ChangeLog, getsize.c:
getsize.c: Under linux, manually define the ioctl for BLKGETSIZE if it
isn't already defined and it's safe to do so.
.cvsignore:
Ignore build files when builddir==srcdir
Theodore Ts'o [Thu, 25 May 2000 23:31:54 +0000 (23:31 +0000)]
ChangeLog, getsize.c, llseek.c, unix_io.c:
getsize.c (ext2fs_get_device_size): Use open64() instead of open() if
it exists.
unix_io.c (unix_open): Use open64() instead of open() if it exists.
llseek.c: Simplify header includes of unistd.h. If lseek64 is
available (and prototypes are defined) use it in preference to llseek.
Theodore Ts'o [Thu, 25 May 2000 23:28:50 +0000 (23:28 +0000)]
ChangeLog, configure, configure.in:
Add test for lseek64 and open64
ChangeLog, Makefile.in:
Makefile.in: Fix makefile so that it's safe to build in parallel.
Theodore Ts'o [Thu, 25 May 2000 23:22:11 +0000 (23:22 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Add hack dependency rule so that parallel makes work
correctly.
Theodore Ts'o [Thu, 25 May 2000 23:19:08 +0000 (23:19 +0000)]
.cvsignore:
Supress build files when builddir==srcdir
Theodore Ts'o [Thu, 25 May 2000 16:43:00 +0000 (16:43 +0000)]
ChangeLog, configure, configure.in:
configure.in (DO_SUBSTITUTE_SCRIPT): Remove unneeded substitution.
(Left over from before we moved to use a C program to do
substitutions.)
Theodore Ts'o [Thu, 25 May 2000 16:40:54 +0000 (16:40 +0000)]
ChangeLog, test_script.in:
test_script.in: Ignore files in the test directory (to avoid spurious
messages when builddir==srcdir).
Theodore Ts'o [Fri, 19 May 2000 02:38:14 +0000 (02:38 +0000)]
ChangeLog, Makefile.in:
Makefile.in (install): Create a symbolic link for fsck.ext3 as well.
ChangeLog, e2fsprogs.spec:
e2fsprogs.spec (fsck.ext3): Add /sbin/fsck.ext3 to the spec file.
Theodore Ts'o [Fri, 19 May 2000 02:11:41 +0000 (02:11 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: Add appropriate ifdef's to support C++ compilation.
Theodore Ts'o [Mon, 8 May 2000 14:47:15 +0000 (14:47 +0000)]
ChangeLog, fsck.c:
fsck.c (interpret_device): Add better error messages if a UUID= or
LABEL= specification is given.
Theodore Ts'o [Mon, 8 May 2000 13:33:17 +0000 (13:33 +0000)]
ChangeLog, problem.c, problem.h, super.c:
problem.c, problem.h (PR_0_HURD_CLEAR_FILETYPE): Add new problem code.
super.c (check_super_block): If the OS type in the superblock is the
Hurd, check to see if the filetype feature is set, and offer to clear
it if so. This needs to be done since the Hurd doesn't properly
support the filetype feature. (And since the hurd allows the
transmogrification of files to special files and vice versa --- for no
good reason that I can understand --- it can't support the filetype
feature for the forseeable future, either.)
ChangeLog, mke2fs.c:
mke2fs.c (main): We forcibly turn off the filetype feature if the OS
is the hurd, since the hurd doesn't support it. (And since the hurd
allows the transmogrification of files to special files and vice versa
--- for no good reason that I can understand --- it can't support the
filetype feature for the forseeable future, either.)
mke2fs.c (proceed_question): Fix reversed sense of proceed_question
that was busted due to the internationalization patch. Fixed bug
where if proceed_question was called twice, the input buffer wasn't
cleared of the previous question's newline.
ChangeLog, expect.1, expect.2, image.gz, name:
f_hurd: Add test for Hurd-specific features (right now, just checks to
make sure the filetype feature is cleared)
ChangeLog, ls.c:
ls.c (list_super): Change the string displayed for the Hurd to be
GNU/Hurd, instead of just "GNU".
Theodore Ts'o [Fri, 7 Apr 2000 20:06:04 +0000 (20:06 +0000)]
Many files:
clear.c, compare.c, copy.c, gen_uuid.c, isnull.c, pack.c, parse.c,
uuid.h, uuidP.h: Changed copyright to be the LGPL.
Theodore Ts'o [Thu, 6 Apr 2000 23:05:32 +0000 (23:05 +0000)]
ChangeLog:
Makefile.in (source_tar_file): Remove the resize directory from the
list of excluded files.
version.h: Update version header for an WIP release.
e2fsprogs.spec, ChangeLog:
e2fsprogs.spec: Updated for 1.19 release; added resize2fs.
ChangeLog, expect.1:
f_filetype: Updated expect script to match with new text for
immutable/append-only files.
TODO:
Update TODO file.
Theodore Ts'o [Thu, 6 Apr 2000 21:51:18 +0000 (21:51 +0000)]
ChangeLog, Makefile.in, jump.funcs, jump.import, jump.params:
Makefile.in (uuid_time): Compile uuid_time in two steps (first create
.o, then link it against the libraries) to work around bug in a.out
linker.
dll/jump.funcs, dll/jump.import, dll/jump.params: Update a.out shared
library control files to reflect new added files.
ChangeLog, feature.c, jump.funcs:
feature.c: Make feature_list static; it shouldn't be exported.
dll/jump.funcs: Update a.out shared library control file.
ChangeLog, badblocks.c:
badblocks.c (flush_bufs): Use fsync() if the system doesn't support
fdatasync().
Theodore Ts'o [Thu, 6 Apr 2000 21:44:19 +0000 (21:44 +0000)]
configure.in, ChangeLog:
configure.in (fdatasync): Add test for fdatasync(), since not all
functions have this function.
Theodore Ts'o [Thu, 6 Apr 2000 21:38:34 +0000 (21:38 +0000)]
Many files:
Update copyright of files in preparation for release of resize2fs.
Also removed the (obsolete) beta-test check that had been in the code,
as well as the old spec files used to package the separate
distribution of resize2fs.
Makefile.in: No longer build resize2fs.static, since there's no real
point in it any more.
Modified Files:
ChangeLog Makefile.in extent.c main.c resize2fs.8.in
resize2fs.c resize2fs.h sim_progress.c test_extent.c
Removed Files:
e2fsprogs-1.12.spec pq.gif resize2fs.spec version.h
Theodore Ts'o [Thu, 6 Apr 2000 21:20:23 +0000 (21:20 +0000)]
Makefile.in, version.h:
Makefile.in (source_tar_file): Remove the resize directory from the
list of excluded files.
version.h: Update version header for an WIP release.
Theodore Ts'o [Thu, 6 Apr 2000 20:57:26 +0000 (20:57 +0000)]
configure:
configure.in (fdatasync): Add test for fdatasync(), since not all
functions have this function.
Theodore Ts'o [Mon, 3 Apr 2000 16:51:06 +0000 (16:51 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_clock): Fix bug where the last timeval wasn't getting
set, causing potentially duplicate UUID's to be generated.
Theodore Ts'o [Mon, 3 Apr 2000 16:22:35 +0000 (16:22 +0000)]
Many files:
badblocks.c, dumpe2fs.c, e2label.c, mke2fs.c, tune2fs.c, uuidgen.c:
For platforms that don't define optarg.h, manually define optarg and
optind.
ChangeLog, main.c:
main.c: For platforms that don't define optarg.h, manually define
optarg and optind.
ChangeLog, unix.c:
unix.c: For platforms that don't define optarg.h, manually define
optarg and optind.
Theodore Ts'o [Mon, 3 Apr 2000 16:16:46 +0000 (16:16 +0000)]
ChangeLog, subst.c:
subst.c: For platforms that don't define optarg.h, manually define
optarg and optind.
Theodore Ts'o [Mon, 3 Apr 2000 16:01:11 +0000 (16:01 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Updated manual page with suggestions from David
Beattie.
badblocks.c (test_nd): Generalized cleanup and bug-fixes. We now
explicitly clear out the signal handlers to prevent a longjmp to a
deactivated stack frame.
(test_rw): Fixed a signed vs. unsigned comparison error.
Theodore Ts'o [Mon, 3 Apr 2000 13:57:21 +0000 (13:57 +0000)]
ChangeLog, pass1.c, problem.c:
pass1.c (check_immutable, e2fsck_pass1_check_device_inode): Check for
the append-only as well as the immutable flag.
problem.c (PR_1_SET_IMMUTABLE): Adjust message to include append-only
flag. Fix comment for compression flag.
Theodore Ts'o [Mon, 3 Apr 2000 13:51:00 +0000 (13:51 +0000)]
ChangeLog, block.c:
block.c: Readibility tweak in conditionals involving ctx->fs->flags.
Theodore Ts'o [Mon, 3 Apr 2000 13:48:52 +0000 (13:48 +0000)]
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h (EXT2_NOCOMPR_FL): Rename EXT2_NOCOMP_FL to EXT2_NOCOMPR_FL.
ChangeLog, Makefile.in, pf.c:
pf.c (print_flags): Rename EXT2_NOCOMP_FL to EXT2_NOCOMPR_FL.
Makefile.in: Add "set -e" so that any errors in installing header
files causes an immediate exit.
Theodore Ts'o [Mon, 3 Apr 2000 13:45:40 +0000 (13:45 +0000)]
ChangeLog, gen_uuid.c:
gen_uuid.c (get_random_bytes): Make more paranoid about misbehaving
/dev/urandom. If we get a return of zero without an error more than 8
times in a row, we break out and return an error. Also, if
/dev/urandom doesn't exist, try /dev/random.
ChangeLog, ext2fs.h:
ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine how
to define __s64 and __u64. Turn off "compression is experimental"
warning if the cpp macro I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is
defined.
Theodore Ts'o [Mon, 3 Apr 2000 13:31:09 +0000 (13:31 +0000)]
ABOUT-NLS, ChangeLog:
Fix grammar/spelling nits.
Theodore Ts'o [Mon, 3 Apr 2000 13:27:41 +0000 (13:27 +0000)]
Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, lsattr.1.in,
mklost+found.8.in, tune2fs.8.in: Update Remy Card's e-mail address.
chattr.1.in: Update which attributes aren't supported.
Theodore Ts'o [Mon, 3 Apr 2000 13:17:59 +0000 (13:17 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Remove uneeded parenthesis around shell pipelines
containing a "cd" command. Use && instead of ; so that if the "cd"
fails, the makefile stops.
ChangeLog:
Fix typo.
Theodore Ts'o [Mon, 3 Apr 2000 03:18:59 +0000 (03:18 +0000)]
ChangeLog, MCONFIG.in:
MCONFIG.in (CPPFLAGS): Add define of CPPFLAGS from @CPPFLAGS@. Remove
uneeded parenthesis around shell pipelines containing a "cd" command.
Theodore Ts'o [Mon, 3 Apr 2000 02:43:51 +0000 (02:43 +0000)]
ChangeLog, remove_preformat_manpages:
Add e2label.8 to the remove_preformat_manpages script. (Probably
isn't being used any more, but...)
Theodore Ts'o [Sat, 12 Feb 2000 20:12:43 +0000 (20:12 +0000)]
ChangeLog, e2fsck.h, unix.c:
unix.c (e2fsck_update_progress): Limit the number of updates to the
progress bars to 8 times a second. This allows a 9600 baud console
link to keep up.
Theodore Ts'o [Fri, 11 Feb 2000 15:55:07 +0000 (15:55 +0000)]
Many files:
unix.c (main): If compression is enabled on the filesystem, print a
warning message (for now).
message.c: Add new compression shortcut: @c == compress
problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag set,
check to see if the filesystem supports compression. If it does pass
this information down to process_block() so it can treat the
compressed block flag words correctly. If not, offer to clear the
flag, since it shouldn't be set.
(process_block): If an inode has the compressed inode flag set, allow
EXT2FS_COMPRESSED_BLKADDR.
pass1b.c (process_pass1b_block, delete_file_block, clone_file_block):
pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to see if
the block can be skipped.
ChangeLog, Makefile.in:
Makefile.in: Exclude the internationalization files from being
distributed.
ChangeLog, configure, configure.in:
configure.in: Add support for --enable-compression. This is
experimental code only for now, which is why it's under --enable test.
Once it's stable, it will always be compiled in.
TODO:
Commit additional TODO items.
Theodore Ts'o [Fri, 11 Feb 2000 15:44:08 +0000 (15:44 +0000)]
ChangeLog, ext2fs.h:
ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR.
Conditionally include Compression as a supported type if
ENABLE_COMPRESSION (via --enable-compression) is turned on.
Theodore Ts'o [Fri, 11 Feb 2000 15:39:19 +0000 (15:39 +0000)]
ChangeLog, swapfs.c:
swapfs.c (ext2fs_swap_super): Swap the compression usage bitmap.
Theodore Ts'o [Fri, 11 Feb 2000 05:04:44 +0000 (05:04 +0000)]
ChangeLog, configure, configure.in:
configure.in: Define HAVE_EXT2_IOCTLS based solely on the OS type,
instead of basising on whether a test program compiles. This was
screwing up on some Linux kernel header files, and we know the Hurd
doesn't support the ext2 ioctls anyway.
types.h:
Add newline at end of file.
Theodore Ts'o [Fri, 11 Feb 2000 05:00:19 +0000 (05:00 +0000)]
Many files:
chattr.1.in:
lsattr.1.in: Change "version" to "version/generation number".
chattr.1.in: Fix stupid file vs filesystem typo.
tune2fs.c Fix spelling error (spare vs sparse).
mke2fs.c (PRS): Add safety check to make sure the number of blocks
doesn't exceed 32 bits on a 64 bit machine.
chattr.c: Random cleanup; file-only variables are now static. Options
for setting/clearings flags put into order, and #ifdef's removed
(since we now use a built-in header file). Add error message if user
tries to set and reset the same flag.
lsattr.c: Random cleanup; file-only variables are now static. The -l
"long" listing has been changed to look nicer. Options names have
been renamed to be more descriptive.
Theodore Ts'o [Fri, 11 Feb 2000 04:48:03 +0000 (04:48 +0000)]
ChangeLog, Makefile.in, e2p.h, pf.c:
Makefile.in: Install the e2p.h header.
e2p.h, pf.c (print_flags): Change the third parameter of print_flags()
to be an option parameter, although we only support one option at this
point.
pf.c (print_flags): Updated to use a more generic structure for
storing the ext2 inode flags. Add support for the (current) set of
compression flags.
Theodore Ts'o [Tue, 8 Feb 2000 23:22:19 +0000 (23:22 +0000)]
ChangeLog:
util.c: Make resource tracking message more concise.
Theodore Ts'o [Tue, 8 Feb 2000 23:19:32 +0000 (23:19 +0000)]
ChangeLog, e2fsck.h, pass1.c, pass1b.c:
e2fsck.h:
pass1.c (mark_table_blocks, e2fsck_pass1): Remove
ctx->block_illegal_map, since it's not needed by pass1, and pass1b has
been modified to calculate it manually if needed. This reduces the
memory footprint needed by e2fsck.
pass1b.c (check_if_fs_block): New static function which returns
whether or not a block overlaps with filesystem metadata. This
replaces consulting the block_illegal_map bitmap.
util.c:
Make resource tracking message more concise.
Theodore Ts'o [Tue, 8 Feb 2000 23:16:51 +0000 (23:16 +0000)]
TODO:
Update todo list.
version.h:
Update version file.
Theodore Ts'o [Tue, 8 Feb 2000 22:05:28 +0000 (22:05 +0000)]
ABOUT-NLS:
Add e2fsprogs specific notes.
Theodore Ts'o [Tue, 8 Feb 2000 21:54:15 +0000 (21:54 +0000)]
ABOUT-NLS:
Checkin original version of ABOUT-NLS from the FSF.
Theodore Ts'o [Tue, 8 Feb 2000 21:35:41 +0000 (21:35 +0000)]
.cvsignore, nyc.po:
More i18n checkins.
tune2fs.c:
Fix some stupid i18n compilation bugs.
Theodore Ts'o [Tue, 8 Feb 2000 20:29:44 +0000 (20:29 +0000)]
badblocks.c:
Fix I18N compilation bug.
Theodore Ts'o [Tue, 8 Feb 2000 20:20:46 +0000 (20:20 +0000)]
Many files:
Check in gettext library from 0.10.35.
Makefile.in.in, POTFILES.in, it.po:
Initial commit of Internationalization support.
Theodore Ts'o [Tue, 8 Feb 2000 20:17:21 +0000 (20:17 +0000)]
ChangeLog, configure, configure.in, aclocal.m4:
configure.in, aclocal.m4: Add support for GNU gettext
internationalization support.
Theodore Ts'o [Tue, 8 Feb 2000 19:14:02 +0000 (19:14 +0000)]
ChangeLog, bitops.h:
bitops.h (ext2fs_mark_generic_bitmap, ext2fs_unmark_generic_bitmap,
ext2fs_mark_block_bitmap, ext2fs_unmark_block_bitmap,
ext2fs_mark_inode_bitmap, ext2fs_unmark_inode_bitmap): Change to
return the previous state of the bit that is being marked or unmarked.
For speed optimization.
ChangeLog, pass3.c:
pass3.c (check_directory): Only do the loop detection algorithm if
we've searched over 2048 parent directories and haven't found the end
yet. This means that in the common case, we don't allocate or clear
the inode_loop_detection bitmap, which for large systems, merely
clearing the bitmap for each directory was turning out to be quite
expensive. Thanks to Jani Jaakkola (jjaakkol@cs.helsinki.fi) for
identifying this problem.
ChangeLog, Makefile.in, e2fsck.h, unix.c:
Makefile.in: Call sync after finishing building all in this directory.
unix.c (PRS): sync the filesystem before trying to use BLKFLSBUF, to
minimize the chance of causing dirty blocks to get dropped.
e2fsck.h: Manually define BLKFLSBUF if not defined, and we're on a
Linux/i386 system.
Theodore Ts'o [Tue, 8 Feb 2000 00:50:34 +0000 (00:50 +0000)]
ChangeLog, expect:
f_swapfs: Fix expected text to match changed debugfs dump command for
i_generation field.
Theodore Ts'o [Tue, 8 Feb 2000 00:47:55 +0000 (00:47 +0000)]
Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
Theodore Ts'o [Mon, 7 Feb 2000 03:11:03 +0000 (03:11 +0000)]
Many files:
badblocks.c, e2fsck.h, ehandler.c, emptydir.c, extend.c, flushb.c,
iscan.c, message.c, pass1.c, pass1b.c, pass3.c pass4.c, pass5.c,
problem.c, scantest.c, swapfs.c, unix.c, util.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
Theodore Ts'o [Mon, 7 Feb 2000 00:01:17 +0000 (00:01 +0000)]
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Fix header to skip defining EXT@FS_DEBUG since blows out on
non GCC compilers.
Theodore Ts'o [Sun, 6 Feb 2000 23:57:07 +0000 (23:57 +0000)]
ChangeLog, badblocks.8.in, badblocks.c:
badblocks.c: Fix non-destructive read/write patches from David
Beattie. Non-standard variable-length automatic arrays removed.
Non-destrutive write test fixed so that logic is clearer and more
provably correct. (I believe the old code had a bug where the disk
data wasn't restored if it was interrupted at the wrong time.)
badblocks.8.in: Document new options in man page.
Theodore Ts'o [Wed, 2 Feb 2000 19:14:36 +0000 (19:14 +0000)]
ChangeLog, main.c, resize2fs.h:
resize2fs.h: Remove unneeded #include of linux/fs.h
main.c: Fix gcc -Wall bug. main() should return an int.
Theodore Ts'o [Wed, 2 Feb 2000 19:08:51 +0000 (19:08 +0000)]
ChangeLog, fsck.c, mke2fs.c, partinfo.c:
fsck.c (interpret_device): If there was an attempt to interpret a
device specification of the type "UUID=" or "LABEL=", and it fails,
check to see if /proc/partitions is readable. If not, print a warning
message about /proc perhaps not being mounted, and exit.
mke2fs.c (check_plausibility): Remove unneeded #include of linux/fs.h.
Add #define of MAJOR if necessary.
partinfo.c: Remove unneeded #include of linux/fs.h
Theodore Ts'o [Wed, 2 Feb 2000 16:19:59 +0000 (16:19 +0000)]
ChangeLog, debugfs.c:
debugfs.c (dump_inode): Remove #ifdef for i_version vs. i_generation
since we know it will always be i_generation now.
ChangeLog, e2fsck.h, flushb.c, scantest.c:
e2fsck.h, flushb.c, scantest.c: Remove uneeded include of linux/fs.h
bmap.c:
Fix silly spelling typo.
ChangeLog, getsize.c, ismounted.c, swapfs.c:
getsize.c, ismounted.c: Remove unneeded include of linux/fs.h
swapfs.c: Remove #ifdef HAVE_EXT2_INODE_VERSION since it's not needed
any more; we know it will always be i_generation. Add support for
swapping the high bits of the uid and gid.
Theodore Ts'o [Wed, 2 Feb 2000 16:13:14 +0000 (16:13 +0000)]
ChangeLog, configure, MCONFIG.in, configure.in:
MCONFIG.in: Always include src/include in the include path now. This
forces us to use our internally provided ext2_fs.h file, for sanity's
sake.
configure.in: If linux/fs.h isn't found, then add build/include into
the include path only, since src/include is now always included.
Removed define of HAVE_LINUX_FS_H, since we're not using it any more.
Removed i_version vs. i_generation check, since with the included
header file it is a permanently known quantity. Removed AC_C_CROSS
since it has been merged into AC_PROG_CC in autoconf 2.13.
Theodore Ts'o [Wed, 2 Feb 2000 16:06:35 +0000 (16:06 +0000)]
.del-ext2_fs.h~
7a460879, ChangeLog:
ext2_fs.h: Update to use header file from Linux 2.3.39. (Changes from
kernel header file: Use asm/types.h instead of linux/types.h, and the
__GNU__ versus __hurd__ #ifdef change, with the FSF irrationality
failsafe. See 1999-10-25 Changelog.)
Theodore Ts'o [Wed, 19 Jan 2000 13:26:23 +0000 (13:26 +0000)]
ChangeLog, tune2fs.c:
tune2fs.c (usage): Update the usage message to correctly document the
-s option.
Theodore Ts'o [Tue, 18 Jan 2000 21:27:12 +0000 (21:27 +0000)]
ChangeLog, Makefile.in:
Makefile.in: Since LIBUUID can sometimes include "-lsocket" we need a
separate DEPLIBUUID that can be used in Makefile's dependency rules.
Theodore Ts'o [Tue, 18 Jan 2000 20:59:11 +0000 (20:59 +0000)]
ChangeLog, badblocks.c:
badblocks.c: Folded in patches David Beattie <dbeattie@usa.net>. Need
to do cleanup before release: use of GCC extensions (dynamic arrays);
unclean coding tricks (use of || instead of if statements, etc.).
Comments from David Beattie:
"I added non-destructive write-testing, and quite a few other
features. The non-destructive write testing, triggered by new "-n"
command-line option, will write test patterns to the disk, but only
after reading data off the disk into memory. Then, comparing the test
patterns gives a result as to whether or not those sectors are
reliable. Finally, the original data is written back.
To streamline this operation, I added another option, "-c
blocks_at_once", which will give the number of disk blocks to process
at one time (mnemonic--"count"). I made this default to 16 (as in the
read-only testing mode), and also affect the read-only testing mode.
Of course, read-only mode needs (count * block_size) amount of memory,
and non-destructive read-write needs 3 times that much, so it makes
sense to do the calculations and not overrun available RAM...I would
have liked to implement and auto-memory-usage heuristic, but I have no
idea if it's even possible to determine the amount of free memory on a
Unix system except by reading /proc entries, and that didn't seem
portable. I did NOT make this blocks_at_once affect the behavior of
the test_rw routine, as it is processing the whole disk at once,
anyway.
I *think* that I got higher detection rates on my hard drive using
random test data than patterned test data, so my non-destructive mode
initializes its test data buffer randomly.
I fixed a typo in flush_bufs that caused the ioctl BLKFLSBUF to never
get compiled into the program.
Also, I added an "undocumented" (I didn't put it into the usage
message; you can if you think it's useful) "-h" option to specify the
host device to flush--useful if you want to test out my
"non-destructive" code on something other than a hard drive, such as a
file on a hard drive, and want the host hard drive to flush.
I provided support for an "input" file (via option "-i", similar to
the "-o" option)...containing a list of already-known bad blocks; it
will skip testing those blocks, thus adding speed to the bad block
scan (on my computer, hitting a physically bad block causes a
half-second-or-more freeze as the kernel waits for the hard drive to
give up and reset itself; pretty annoying when you already know the
block is bad from a previous scan).
Finally, the real killer, the persistent re-scan (option: "-p
num_passes") that I created will, if desired, persistently re-scan the
drive until it has completed a user-decidable number of passes in a
row during which no new bad blocks are found. On my drive, I would
see behavior that a certain percentage of bad blocks would be found
with each pass (it was not reliable in the defective areas!), so I
wanted it to check it over and over again until it didn't find any
more, several times. Perhaps this will be useful to others. Defaults
of course to zero, meaning it will stop after the first pass. I used
"-p 2" on my drive, and it ran for 2 1/2 days...then used "-p 3" a
couple days later and it ran for a few more hours, and since then the
rest of my drive has been completely reliable.
Implementation of these last two features, "-i" and "-p", I did using
a bb_list from libext2fs. I debated whether bad blocks input through
"-i" should be output into the "-o" file (or stdout, of course), and
decided against it, but left the code to do so in place, commented
out, just for your information.
In order to maintain data integrity upon interruption of a
non-destructive-write test, I created a signal handler which I install
which will write back whatever original disk data is in the buffers
upon any of the fatal signals (except SIGKILL, of course).
Of course, ideally, the new options would be reflected in the
badblocks manual page, but I am not experienced at manual page
modification; if you decide my patch to badblocks should be
incorporated into the distribution, I could learn how to update the
manpage and other documentation, or you could do it for me after
exercising your opinions, if you have any, on exactly what the
command-line parameters should be called and which ones should be in
the distribution."
Theodore Ts'o [Tue, 18 Jan 2000 17:58:34 +0000 (17:58 +0000)]
ChangeLog, debugfs.c:
debugfs.c (main): Use return instead of exit at the end to avoid some
compiler warnings
Theodore Ts'o [Tue, 18 Jan 2000 17:53:27 +0000 (17:53 +0000)]
ChangeLog, MCONFIG.in:
MCONFIG.in (DEPLIBUUID): Since LIBUUID can sometimes include
"-lsocket" we need a separate DEPLIBUUID that can be used in
Makefile's dependency rules.
ChangeLog, Makefile.in:
Makefile.in: Since LIBUUID can sometimes include "-lsocket" we need a
separate DEPLIBUUID that can be used in Makefile's dependency rules.
Theodore Ts'o [Tue, 18 Jan 2000 16:30:27 +0000 (16:30 +0000)]
ChangeLog, Makefile.in, fsck.c:
Really fix the bug where "fsck -As" will actually allow interactive
fsck's. (For those people who like to do interactive fsck's in the
/etc/rc scripts!?!)
Theodore Ts'o [Tue, 18 Jan 2000 16:24:13 +0000 (16:24 +0000)]
ChangeLog, execute_cmd.c:
execute_cmd.c (ss_execute_line): Fix memory leak; we weren't freeing
the argv array.
Theodore Ts'o [Tue, 23 Nov 1999 13:57:16 +0000 (13:57 +0000)]
ChangeLog, e2fsck.8.in:
e2fsck.8.in: Update language about where to find a backup superblock.
Theodore Ts'o [Tue, 23 Nov 1999 13:52:48 +0000 (13:52 +0000)]
ChangeLog, pass1.c:
pass1.c (process_inodes): Add shortcut handling; if
process_inodes_count is zero, return right away, to avoid calling
qsort with a non-positive count.
Theodore Ts'o [Tue, 23 Nov 1999 13:48:58 +0000 (13:48 +0000)]
ChangeLog, tune2fs.8.in:
tune2fs.8.in: Fix man page so that the sparse_super filesystem option
is properly named.
Theodore Ts'o [Tue, 23 Nov 1999 02:23:30 +0000 (02:23 +0000)]
ChangeLog, mke2fs.c:
mke2fs.c: Change log2() and log10() to int_log2() and int_log10() to
avoid namespace collisions. Change #ifdef sparc to #ifdef __sparc__.
Theodore Ts'o [Fri, 19 Nov 1999 18:52:36 +0000 (18:52 +0000)]
ChangeLog, message.c:
message.c (safe_print): Fix to properly display ^A, ^B, etc. and to
print Delete as ^?
Theodore Ts'o [Fri, 19 Nov 1999 18:49:27 +0000 (18:49 +0000)]
ChangeLog, mkdir.c:
mkdir.c (ext2fs_mkdir): Only update the parent's inode link counts if
the link was successful. Patch suggested by jeremy@goop.org.
Theodore Ts'o [Fri, 19 Nov 1999 18:42:30 +0000 (18:42 +0000)]
ChangeLog, Makefile.in:
Makefile.in (distclean): Remove TAGS and Makefile.in.old from the
source directory. Also, when making the .exclude file for the
source_tar_file, exclude those two files as well.
Makefile.in (distclean): Remove TAGS and Makefile.in.old from the
source directory.
Theodore Ts'o [Wed, 10 Nov 1999 18:32:40 +0000 (18:32 +0000)]
e2fsprogs.lsm:
Update for 1.18 release.
Theodore Ts'o [Wed, 10 Nov 1999 16:00:39 +0000 (16:00 +0000)]
libext2fs.texinfo, ChangeLog:
Update for 1.18 release.
Theodore Ts'o [Wed, 10 Nov 1999 15:56:16 +0000 (15:56 +0000)]
README, RELEASE-NOTES, TODO, e2fsprogs.spec, version.h:
Update for 1.18 release.