Commit Graph

294 Commits (67efcf71ab7896f4d7389f4d29e397a27c544071)

Author SHA1 Message Date
Theodore Ts'o 67efcf71ab ChangeLog, expect.1, expect.2, image.gz, name:
New test case which tests duplicate '.' and '..' entries.
1999-09-16 14:20:07 +00:00
Theodore Ts'o d3aea7dc1b ChangeLog, Makefile.in, debug_cmds.ct, debugfs.8.in, debugfs.c:
debugfs.c, debug_cmds.ct: Add new debugfs command "feature" which
  	allows the user to set or clear filesystme features.  Add the -f
  	(force) option to the open command.  Add the -h (superblock header
  	only) option to the stats command.
1999-09-14 20:55:37 +00:00
Theodore Ts'o 3a5f8eaa97 ChangeLog, expanddir.c, ext2fs.h:
ext2fs.h: Add new fields for journalling and define new feature bits
  	used by newer filesystems: IMAGIC_INODES, HAS_JOURNAL, RECOVER.
  expanddir.c (ext2fs_expand_dir, expand_dir_proc): Change where we
  	update the inode block count and size files so that the block count
  	field is updated correctly when we create an indirect block.
1999-09-14 20:21:26 +00:00
Theodore Ts'o d7b701ded6 ChangeLog, Makefile.in, e2p.h, feature.c, ls.c:
Makefile.in, feature.c, e2p.h: New file which is used for displaying
  	and editing superblock feature sets.
  ls.c (print_features, list_super): Add new function print_features
  	which is used to display the feature bits in the superblock.
1999-09-14 20:17:38 +00:00
Theodore Ts'o 2740156bd1 ChangeLog, dumpe2fs.8.in, dumpe2fs.c, mke2fs.8.in, mke2fs.c, partinfo.c:
partinfo.c: Fix minor compilation bugs pointed out by Yann Dirson.
  mke2fs.c: Don't turn on sparse superblocks by default on pre-2.2 kernels.
  mke2fs.8.in: Add the possible valid block sizes for mke2fs.  Document
  	the -n flag, and the new defaults for the -s flag.
  dumpe2fs.c, dumpe2fs.8.in: Add new options -f (force) and -h (header-only).
  mke2fs.c (PRS): Fix logic for turning on/off the sparse superblock option.
Many files:
  Updated copyright statements to reflect the GPL with permission of the
  original authors.
1999-09-14 20:11:19 +00:00
Theodore Ts'o c1faf9cc3a ChangeLog, pass1b.c:
pass1b.c (clone_file_block): Don't clear the dup_map flag if the block
  	also shares data with the fs metadata when the count drops to 1, since
  	the block should still be cloned, as fs metadata isn't included in the
  	count.
ChangeLog, pass3.c:
  pass3.c (adjust_inode_count): Fix bug where we didn't keep the
  	internal and external inode counts in sync when we decremented an
  	inode whose link count was already zero.  Now we skip incrementing or
  	decrementing both link counts if we would cause an overflow condition.
  	(expand_dir, expand_dir_proc): Change where we update the inode block
  	count and size files so that the block count field is updated
  	correctly when we create an indirect block.
1999-09-14 20:00:54 +00:00
Theodore Ts'o 8b25041ede ChangeLog, expect.1, expect.2, image.gz:
f_expand: Make test case better by testing increasing the size of
  	lost+found where an indirect block must be created.  Also add checks
  	to see what happens when directories are disconnected because their
  	containing directory is destroyed (turned into a socket :-)
  f_dupfsblks: Add additional test cases where files share duplicate
  	blocks with both other files and filesystem metadata.
1999-09-14 19:54:39 +00:00
Theodore Ts'o 8573470251 ChangeLog, expect:
f_swapfs: Change to deal with new dump_inode command.
1999-07-31 00:35:04 +00:00
Theodore Ts'o 55376d8729 ChangeLog, debugfs.c:
debugfs.c (dump_inode): Fix debugfs message so it is the same for when
  	compiled under either Linux 2.2 or 2.3.  This allows for the f_swapfs
  	regression test suite to work regardless of which OS e2fsprogs was
  	compiled on.
1999-07-31 00:32:57 +00:00
Theodore Ts'o 657cb97522 ChangeLog:
Add 1.15 release note to the Changelogs.
1999-07-30 23:19:10 +00:00
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