Commit Graph

284 Commits (bd1e9b7ca7e9e7b1ebdb9ec5f5f044754c97ef67)

Author SHA1 Message Date
Theodore Ts'o bd1e9b7ca7 ADD TAG: E2FSPROGS-1_15 1999-07-20 02:02:40 +00:00
Theodore Ts'o a39f3efea1 RELEASE-NOTES, e2fsprogs.lsm, e2fsprogs.spec, version.h:
Checkin for 1.15 release.
1999-07-20 02:02:40 +00:00
Theodore Ts'o 3ac9f0efa1 Makefile.in:
Add flushb to list of files which are removed when doing a make clean.
  Add a distclean production which removes Makefile
  Add the doc substree to the clean and distclean rules.
1999-07-19 21:02:11 +00:00
Theodore Ts'o f3b3dbbe60 Makefile.in:
Fix cleanup procedure to delete subst.conf properly.
1999-07-19 16:18:52 +00:00
Theodore Ts'o 790a0ad4d5 Makefile.in:
Add resize2fs.clean to the clean list.
1999-07-19 16:16:12 +00:00
Theodore Ts'o 6676326251 Makefile.in:
Add the -f option to rm when making the distribution_tar_file.
1999-07-19 15:52:58 +00:00
Theodore Ts'o e2a99be61e ChangeLog, depfix.sed:
depfix.sed: Remove all line continuations from the dependencies; the
  	word wrapping is now done by wordwrap.pl.
README, RELEASE-NOTES, TODO, e2fsprogs.spec:
  Update for 1.15 release.
1999-07-19 15:48:08 +00:00
Theodore Ts'o 945934d58d libext2fs.texinfo:
Update for the 1.15 release.
1999-07-19 15:43:58 +00:00
Theodore Ts'o b89122fca1 fsck.8.in:
Make clear the -- is optional.
Makefile.in:
  Add makefile production for the findsuper program.  We do not build
  it by default, however.
1999-07-19 15:40:49 +00:00
Theodore Ts'o b55199eaf7 ChangeLog, unix.c:
unix.c (usage): Add minimalist emergency help to the usage message.
1999-07-19 15:37:46 +00:00
Theodore Ts'o 50787ea22e ChangeLog, fsck.8.in, fsck.c, fsck.h, mke2fs.8.in, mke2fs.c:
* mke2fs.c (PRS, set_fs_defaults): Add new option -T which allows the
  	user to specify the how the filesystem is to be used.  Mke2fs now
  	chooses the filesystem parameters automatically based on the size of
  	the filesystem and the intended use of the filesystem.  Add new option
  	-n which simply goes through the calculations to determine the
  	parameters of the filesystem the system would make.
  * fsck.c, fsck.h: Add support for new option -C.  This option will
  	automatically manage e2fsck processes so that they will print
  	completion/progress bars.  If multiple filesystems are being checked,
  	arrange to make sure that only one e2fsck process is displaying a
  	progress bar at a time.
1999-07-19 15:30:21 +00:00
Theodore Ts'o 5596defa1e Many files:
unix.c: Add support for calculating a progress bar if the -C0 option
  	is given.  The function e2fsck_clear_progbar() clears the progress bar
  	and must be called before any message is issued.  SIGUSR1 will enable
  	the progress bar, and SIGUSR2 will disable the progress bar.  This is
  	used by fsck to handle parallel filesystem checks.  Also, set the
  	device_name from the filesystem label if it is available.
  e2fsck.h: Add new flags E2F_FLAG_PROG_BAR and E2F_FLAG_PROG_SUPRESS.
  	Add new field in the e2fsck structure which contains the last tenth of
  	a percent printed for the user.
  message.c (print_e2fsck_message): Add call to e2fsck_clear_progbar().
  pass1.c (e2fsck_pass1):
  pass2.c (e2fsck_pass2):
  pass3.c (e2fsck_pass3):
  pass4.c (e2fsck_pass4):
  pass5.c (e2fsck_pass5): Add call to e2fsck_clear_progbar when printing
  	the resource tracking information.
  pass5.c (check_block_bitmaps, check_inode_bitmaps): If there is an
  	error in the bitmaps, suppress printing the progress bar using the
  	suppression flag for the remainder of the check, in order to clean up
  	the display.
1999-07-19 15:27:37 +00:00
Theodore Ts'o 9f10a7b31e ChangeLog, badblocks.c:
badblocks.c (do_test): Don't complain if the write error occurs on a
  	non-block boundary.  This is perfectly common when using blocksizes
  	larger than 1k.
1999-07-16 10:41:36 +00:00
Theodore Ts'o 6d53db3fba RELEASE-NOTES:
Interim checkin of the release notes for 1.15
1999-07-03 20:52:21 +00:00
Theodore Ts'o 45a676b5f1 Makefile.in:
Update dependencies.
ChangeLog:
  Update ChangeLog to reflect full set of changes to configure.in
1999-07-03 20:45:28 +00:00
Theodore Ts'o 6c133523b2 ChangeLog, MCONFIG.in, configure.in, configure:
MCONFIG.in (BUILD_CC):
  configure.in (BUILD_CC): If cross compiling, find the native C
  	compiler and set it to BUILD_CC so that we can successfully build
  	util/subst.
ChangeLog, Makefile.in:
  Makefile.in (subst): Build subst using $(BUILD_CC), since it's a
  	helper program which must be built using the native C compiler during
  	a cross-compilation.
Makefile.in:
  Update dependencies.
1999-07-03 20:37:03 +00:00
Theodore Ts'o 9d564f73f5 ChangeLog, Makefile.in, configure.in, MCONFIG.in, configure, wordwrap.pl:
Makefile.in (depend): Make "make depend" at the top-level
  	automatically recurse through all subdirectories.
  configure.in: Test for perl since it's needed by wordwrap.pl
  MCONFIG.in (depend): Fix make-depend so that it the dependencies are
  	automatically word-wrapped.  Added the makefile macro $(PERL).
  wordwrap.pl: New file which does the word wrapping.
1999-07-03 20:25:58 +00:00
Theodore Ts'o c54b3c3c99 ChangeLog, pass3.c:
Fix some stupid spelling typo's.
ChangeLog:
  Fix e-mail address.
1999-07-03 07:20:06 +00:00
Theodore Ts'o 5dbb072e27 ChangeLog, uuidgen.1.in, uuidgen.c:
uuidgen.c: Add option parsing so that user can ask for either a
  	time-based UUID or a random-based UUID.
1999-07-03 06:16:06 +00:00
Theodore Ts'o d44ae132f2 Makefile.in:
Update dependency information for Makefile.
1999-07-03 05:08:56 +00:00
Theodore Ts'o ef8901be24 ChangeLog, MCONFIG.in:
MCONFIG.in (subst): Add rule to build the util/subst program if
  	necessary (by cd'ing to $(top_builddir)/util and making it.)
1999-07-03 04:55:36 +00:00
Theodore Ts'o 2d8defde38 ChangeLog, Makefile.in, fsck.c, get_device_by_label.c, get_device_by_label.h:
fsck.c: Added support for LABEL= and UUID= specifications for the
  	filesystem's device, to match what recent mount programs can support.
  	Also, close stdin when doing fsck -A or when checking more than one
  	filesystem at a time, so that e2fsck doesn't try to ask interactive
  	questions if the filesystem appears to be mounted.
  get_device_by_label.c: New file added to support LABEL=foo and
  	UUID=bar type specifications.
1999-07-03 01:59:42 +00:00
Theodore Ts'o 00eedba1bd ChangeLog, badblocks.c:
badblocks.c: Make the "done" string include enough spaces to clear out
  	a large block number.
1999-07-03 00:45:58 +00:00
Theodore Ts'o 7403335006 ChangeLog, unix.c:
unix.c (check_mount): Clean up the abort message displayed when the
  	filesystem is mounted and either stdout or stdin isn't a tty.
1999-07-01 03:00:47 +00:00
Theodore Ts'o ca3c328510 mke2fs.c, ChangeLog, mke2fs.8.in:
mke2fs.c (check_mount): Allow a filesystem to be made even if it
  	appears mounted if the force option is given.
1999-06-29 14:37:35 +00:00
Theodore Ts'o e72a9ba394 ChangeLog, e2fsck.h, pass1.c, pass2.c, pass4.c, swapfs.c:
e2fsck.h:
  pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode,
  	pass1_check_directory, e2fsck_use_inode_shortcuts): Make pass1_* be
  	private static functions, and create new function
  	e2fsck_use_inode_shortcuts which sets and clears the inode shortcut
  	functions in the fs structure.
  e2fsck.h:
  pass2.c (e2fsck_process_bad_inode): Make process_bad_inode() an
  	exported function.
  pass4.c (e2fsck_pass4): Call e2fsck_process_bad_inode to check if a
  	disconnected inode has any problems before connecting it to
  	/lost+found.  Bug and suggested fix by Pavel Machek <pavel@bug.ucw.cz>
ChangeLog, swapfs.c:
  swapfs.c (ext2fs_swap_inode): Add compatibility for Linux 2.3 kernels
  	that use i_generation instead of i_version.  Patch supplied by Jon
  	Bright <sircus@sircus.demon.co.uk>.
ChangeLog, mke2fs.8.in:
  mke2fs.8.in: Fix typo in man page which caused the badblocks command
  	to not show up in the "SEE ALSO" section.
ChangeLog, expect.1, expect.2, image.gz, name:
  f_recnect_bad: New test which checks the case where a disconnect inode
  	also bad inode fields; we need to make sure e2fsck offers to fix the
  	inode (or clear the inode, as necessary).
1999-06-25 15:40:18 +00:00
Theodore Ts'o b41d360bf5 ChangeLog, debugfs.c:
debugfs.c (dump_inode): Add compatibility for Linux 2.3 kernels that
  	use i_generation instead of i_version.  Patch supplied by Jon Bright
  	<sircus@sircus.demon.co.uk>.
1999-06-25 15:32:37 +00:00
Theodore Ts'o 6670495a39 ChangeLog, configure.in, configure:
configure.in: Check for the presence of i_generation field versus
  	i_version in the ext2_inode to support compiling e2fsprogs in Linux
  	2.3.
1999-06-25 15:30:33 +00:00
Theodore Ts'o 813bbb25a2 ChangeLog, dir_iterate.c:
dir_iterate.c (ext2fs_process_dir_block): Check for corrupted
  	directory entry before calling the callback function.  This should
  	prevent some core dumps of insufficiently paranoid callback functions.
ChangeLog, unix.c:
  unix.c (main): Add missing space in the disk write-protected message.
1999-06-22 03:17:45 +00:00
Theodore Ts'o 08283b565e version.h:
Update version number for snapshot release.
1999-06-18 01:18:11 +00:00
Theodore Ts'o e2e69ba455 fpopen.c:
Add support for the '&' flag, which redirects stderr to the FILE *.
TODO:
  New set of TODO items....
1999-06-18 01:13:31 +00:00
Theodore Ts'o d4b0ce0316 ChangeLog, problem.c, problem.h, super.c:
problem.c, problem.h (PR_0_INODE_COUNT_WRONG): Add new problem code.
  super.c (check_super_block): Add check to make sure the total number
  	of inodes is sane, since this can be calculated from the number of
  	groups times the number of inodes per group.  Offer to correct it if
  	it is incorrect.
1999-06-18 01:09:29 +00:00
Theodore Ts'o e79d1b23ed ChangeLog, pass5.c:
pass5.c (check_block_end): Fix fencepost condition where when clearing
  	the block padding we were missing the last position in the bitmap.
1999-06-18 01:06:59 +00:00
Theodore Ts'o e2423cc07a findsuper.c, ChangeLog:
findsuper.c: Added documentation from aeb@cwi.nl; some minor code
  	cleanups.
1999-06-18 00:51:31 +00:00
Theodore Ts'o 02e7dd9ac7 ChangeLog, dumpe2fs.c, dumpe2fs.8.in:
dumpe2fs.c, dumpe2fs.8.in: Added new command-line options which allow
  	a filesystem expert to specify the superblock and blocksize when
  	opening a filesystem.  This is mainly useful when examining the
  	remains of a toasted filesystem.
1999-06-18 00:48:41 +00:00
Theodore Ts'o b19d1a959e Many files:
* gen_uuid.c (get_random_bytes): Use a while loop when reading from
  	/dev/urandom so that if we get interrupted while reading the right
  	thing happens.
  	(uuid_generate_random): Add new function which uses the new UUID
  	format which uses 122 random bits to form the 128-bit UUID.
  	(uuid_generate): Rename the old uuid_generate to be
  	uuid_generate_time, and create a new uuid_generate function which
  	calls either uuid_generate_random or uuid_genereate_time depending on
  	whether /dev/urandom is present.
  uuid_generate.3.in: Update to reflect changesin uuid_generate and its
  	two new variants.
  tst_uuid.c: Updated to test new uuid_generate functions, and to
  	reflect new semantics of uuid_compare.  Added tests to make sure the
  	UUID type and variant created by UUID generate is correct.
  uuid_time.c (uuid_variant, uuid_type): Added new functions to return
  	the UUID variant and type information.  The debugging program now
  	prints the UUID variant and type, and warns if the unparsed time
  	information is likely to be incorrect.
  uuid_parse.3.in, libuuid.3.in: Miscellaneous text cleanups.
uuidgen.1.in:
  Miscellaneous text cleanups.
1999-06-18 00:32:03 +00:00
Theodore Ts'o ffd3af5874 ChangeLog, uuid_compare.3.in, compare.c:
compare.c (uuid_compare): Change sense of uuid_compare so that its
  	return values match that of memcpy and the uuid_compare() found in
  	Paul Leach's internet-draft.
1999-06-17 22:49:23 +00:00
Theodore Ts'o a4bf69d919 ChangeLog, fileio.c:
fileio.c (ext2fs_file_open): Remove obsolete comment stating that we
  	don't handle writing yet (we do).  Fixed bug where we weren't
  	allocating a big enough buffer for ext2_bmap.
ChangeLog, ext2fs.h:
  ext2fs.h: Add feature definition for AFS IMAGIC inodes.
ChangeLog, MCONFIG.in, config.sub:
  MCONFIG.in: Define man1dir, man3dir, and man8dir in terms of mandir.
  config.sub: Update config.sub from autoconf 2.13 so that it will
  	recognize new machine types from the Alpha.
configure:
  Update to match latest changes to configure.in
1999-05-29 21:53:30 +00:00
Theodore Ts'o f0687a5e57 ChangeLog, openfs.c:
openfs.c (ext2fs_open): Check to make sure that the number of blocks
  	per group is not zero --- if so, it must be a bad superblock!
1999-05-29 21:48:03 +00:00
Theodore Ts'o 75d83bec5f unix.c, ChangeLog:
unix.c (reserve_stdio_fds): Add safety check in case reserve_stdio_fds
  	couldn't open /dev/null.
1999-05-18 03:16:36 +00:00
Theodore Ts'o 4eca93be21 Many files:
Created man pages for libuuid functions.
1999-03-16 20:31:56 +00:00
Theodore Ts'o 5d45d80375 ChangeLog, Makefile.in, fsck.c, mke2fs.c, uuidgen.1.in, uuidgen.c:
uuidgen.c, uuidgen.1.in: Created command-line utility to generate
  	UUIDs.
  fsck.c (fsck_device, execute): Don't dereference a null pointer when
  	checking a filesystem not in /etc/fstab.
1999-03-16 19:35:19 +00:00
Theodore Ts'o 4a9f59366b ChangeLog, pass3.c, problem.c, problem.h, util.c:
util.c (print_resource_track): Use mallinfo if present to get more
  	accurate malloc statistics.
  pass3.c (get_lost_and_found): Check to see if lost+found is a plain
  	fail; if so, offer to unlink it.
  problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code.
  problem.c: Fix problem message for PR_1_BAD_GROUP_DESCRIPTORS so that
  	the block group number is printed.  Add new prompt, PROMPT_UNLINK.
1999-03-16 19:32:52 +00:00
Theodore Ts'o 6454d84b0d ChangeLog, configure.in:
Add check for malloc.h and mallinfo().
1999-03-16 19:24:34 +00:00
Theodore Ts'o 3f408754bc ChangeLog, expect.1, expect.2, image.gz, name:
f_lpffile: New test which checks how e2fsck handles a the case where
  	lost+found exists, but it's not a directory.
1999-03-15 17:00:48 +00:00
Theodore Ts'o ce5ee99548 ChangeLog, icheck.c:
icheck.c (do_icheck): Check to make sure the inode has valid blocks
  	before iterating over that inode's blocks.
1999-02-19 18:56:43 +00:00
Theodore Ts'o 7d5633cf6e ChangeLog, fsck.c, mke2fs.c:
fsck.c (fsck_device): Print an error message if the user passes in a
  	device or directory name which isn't found in /etc/fstab.  Allow the
  	location of /etc/fstab to be overridden by the FSTAB_FILE environment
  	variable.
  mke2fs.c (write_inode_tables): Add kludge code so that when the
  	MKE2FS_SYNC environment variable is set, mke2fs will sync every
  	MKE2FS_SYNC block groups, while it is writing out the inode tables.
  	This is to work around a VM bug in the 2.0 kernel.  I've heard a
  	report that a RAID user was able to trigger it even using a 2.2
  	kernel.
1999-02-09 08:14:28 +00:00
Theodore Ts'o ee9229993a ChangeLog, fsck.c:
fsck.c (execute, wait_one): Modified routines so that they accurately
  create an fsck_instance even when the noexecute flag is set.  This
  allows for accurate debugging of the fsck pass structure.
  (check_all): When the verbose flag is given twice, print debugging
  information about when fsck is waiting for jobs to finish.
1999-01-16 05:39:12 +00:00
Theodore Ts'o c461e16afe TODO:
Added todo file for private use.
1999-01-12 23:40:01 +00:00
Theodore Ts'o 14790ed79b Makefile.in:
Add some files to the list of files to be excluded when building a
  source distribution file.
configure:
  Update to match last configure.in changes.
RELEASE-NOTES, e2fsprogs.lsm, e2fsprogs.spec, version.h:
  Update for e2fsprogs 1.14 release.
1999-01-12 23:32:52 +00:00