Commit Graph

225 Commits (04c5b028a92be92d991e8c8a2d9ee2a9d9c8a937)

Author SHA1 Message Date
Theodore Ts'o b69096a348 ChangeLog, .del-ext2_fs.h~7a460879:
Comment out the EXT2_DEBUG code, since it's only needed
  for the kernel and the ... notation makes some cpp's complain.
1997-10-20 00:37:40 +00:00
Theodore Ts'o e72fdc689b rs_bitmap.c:
Add #ifdefs for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
1997-10-20 00:33:00 +00:00
Theodore Ts'o aa1e55ef1a ChangeLog, .del-types.h.in~7a460879:
Fix the type definitions of __s64 and __u64 if long long is used.
ChangeLog, configure, configure.in:
  Add tests for sys/stat.h, sys/time.h, and sys/types.h
1997-10-19 23:13:26 +00:00
Theodore Ts'o 1d2ff46ae7 Many files:
Add #ifdef's for HAVE_SYS_STAT_H and HAVE_SYS_TYPES_H
1997-10-19 23:00:21 +00:00
Theodore Ts'o 44339bdff8 Many files:
Use new substitution technology which doesn't depend on shell scripts.
  (Faster, and better for MS-DOS port!)
1997-10-15 02:47:20 +00:00
Theodore Ts'o b4ac9cc351 ChangeLog, debugfs.c:
When printing a usage message, have main return 1 (instead of not
  specifying a return value, bad!)
1997-10-15 01:54:48 +00:00
Theodore Ts'o d546447fda ChangeLog, gen_uuid.c:
Use clock_reg instead of clock, since clock conflicts with a header
  file declaration.
1997-10-15 01:52:44 +00:00
Theodore Ts'o 1b6bf1759a Many files:
pass*.c, super.c: Massive changes to avoid using printf and com_err
  	routines.  All diagnostic messages are now routed through the
  	fix_problem interface.
  pass2.c (check_dir_block): Check for duplicate '.' and '..' entries.
  problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and
  	PR_2_DUP_DOT_DOT.
  problem.c: Added new problem codes for some of the superblock
  	corruption checks, and for the pass header messages.  ("Pass
  	1: xxxxx")
  util.c (print_resource_track): Now takes a description argument.
  super.c, unix.c, e2fsck.c: New files to separate out the
  	operating-specific operations out from e2fsck.c.  e2fsck.c now
  	contains the global e2fsck context management routines, and
  	super.c contains the "pass 0" initial validation of the
  	superblock and global block group descriptors.
  pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate
  	(nearly) all global variables and moved them to the e2fsck
  	context structure.
  problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT,
  	PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS, PR_0_BLOCKS_PER_GROUP,
  	PR_0_FIRST_DATA_BLOCK
expect.1, expect.2:
  Updated tests to align with e2fsck problem.c changes.
1997-10-03 17:48:10 +00:00
Theodore Ts'o d163b09487 ChangeLog, bmove.c, icount.c, inode.c, llseek.c:
llseek.c (ext2fs_llseek): Fix type error for ext2fs_llseek()
  icount.c (ext2fs_icount_validate):
  bmove.c (process_block): Fix lint error in type for fprintf().
  inode.c (ext2fs_check_directory): Add support for the callback
  	to return the error code EXT2_ET_CALLBACK_NOTHANDLED.
ChangeLog, mke2fs.c:
  Make parse_raid_opts return a void, to fix a -Wall warning.
1997-10-03 17:42:28 +00:00
Theodore Ts'o 00e5433eb5 Many files:
Declare main() to return an int, as required.  Make sure main() always
  ends with an exit(0).  (Some programs weren't doing this, and thus
  were returning a random exit value.)
1997-09-16 02:13:52 +00:00
Theodore Ts'o a8859cad87 ChangeLog, debugfs.c:
Fix declaration of main so that it returns an int.
1997-09-16 02:08:28 +00:00
Theodore Ts'o fff876b7c7 ChangeLog, bitmaps.c, bitops.h:
ext2fs_set_bitmap_padding: New function which sets the padding of the
  	bitmap to be all one's.
1997-09-13 00:32:29 +00:00
Theodore Ts'o bc75f2a1eb ChangeLog, bmove.c, llseek.c:
llseek.c: Added missing semicolon to glibc fixup declaration of
  	llseek().
  bmove.c: Add #include of errno.h
ChangeLog, resize2fs.h:
  Add #include for errno.h
1997-09-04 00:43:10 +00:00
Theodore Ts'o e9affb7bec ChangeLog, Makefile.in, initialize.c, .del-io.h~72680822, openfs.c:
Makefile.in (ELF_SO_VERSION): Bump version to be 2.4 since we've added
  	a new field to the io_channel (app_data).
  io.h: Add a new element to the io_channel structure, app_data.
  initialize.c, openfs.c: Set io->app_data to point at the filesystem handle.
1997-08-24 02:57:55 +00:00
Theodore Ts'o 1c27cac2e8 ChangeLog, .del-io.h~72680822, irel_ma.c, llseek.c, rw_bitmaps.c:
io.h: Change the prototype of ext2fs_llseek() to use int's instead of
  	unsigned int's.
  llseek.c: Change to allow PIC and !HAVE_LLSEEK.  Add a prototype to
  	make life easer for GNU Libc 2.
  rw_bitmaps.c: On the PowerPC, the big-endian variant of the ext2
  	filesystem has its bitmaps stored as 32-bit words with bit 0 as the
  	LSB of each word.  Thus a bitmap with only bit 0 set would be, as a
  	string of bytes, 00 00 00 01 00 ...  To cope with this, we
  	byte-reverse each word of a bitmap if we have a big-endian filesystem,
  	that is, if we are *not* byte-swapping other word-sized numbers.
ChangeLog, expect.1, image.gz:
  f_badinode: Modify test to check for "bad" character and block devices
  	(i.e., ones which contain garbage block entries)
1997-08-14 17:20:42 +00:00
Theodore Ts'o 7cf73dcd3d ChangeLog, e2fsck.h, message.c, pass1.c, pass2.c, problem.c, problem.h:
message.c: Add compression for the word "Illegal"
  problem.c: Added entries for PR_2_BAD_CHAR_DEV and PR_2_BAD_BLOCK_DEV
  pass1.c (pass1, check_device_inode), pass2.c (process_bad_inode): Use
  	a more stringent test for a valid device.
ChangeLog, Makefile.in:
  Makefile.in (install): Fix rm command to use $(DESTDIR) appropriately.
1997-08-14 17:17:16 +00:00
Theodore Ts'o 3cb6c5021d Many files:
dosio.c: New file to do DOS/BIOS disk accesses.
  namei.c (open_namei): Make pathlen be of type size_t.
  llseek.c: Always #include stdlib.h since it's need to define
  	size_t.
  io.h: Use errcode_t for magic numbers.
  icount.c (get_icount_el), dupfs.c (ext2fs_dup_handle), dblist.c
  	(dir_block_cmp): Use size_t where appropriate.
  read_bb.c (ext2fs_read_bb_inode), cmp_bitmaps.c
  	(ext2fs_compare_inode_bitmap): Use blk_t, ino_t and size_t
  	where appropriate.
  closefs.c (ext2fs_flush): Use dgrp_t instead of int where
  	appropriate.
  openfs.c (ext2fs_open), check_desc.c (ext2fs_check_desc): Use blk_t
  	instead of int where 	appropriate.
  rw_bitmaps.c (read_bitmaps), irel_ma.c, inode.c (ext2fs_write_inode),
  	initialize.c (ext2fs_initialize): brel_ma.c: Fix to make be
  	16-bit safe.
  link.c (ext2fs_link), unlink.c (ext2fs_unlink), lookup.c (lookup_proc),
  	ismounted.c (ext2fs_check_if_mounted), block.c (xlate_func):
  	Add #pragma argsused for Turbo C.
1997-08-11 20:29:22 +00:00
Theodore Ts'o 4cbe8af4b0 Many files:
block.c (ext2fs_block_iterate2): Use retval which is a errcode_t type.
  bitmaps.c (make_bitmap): Use size_t instead of int where appropriate.
  bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C.
  alloc.c (ext2fs_new_inode): Use ino_t instead of int for the group number.
  get_pathname.c: Use ino_t instead of int where appropriate.
  ext2fs.h: Make the magic structure element be errcode_t instead of int.
  alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c
  	bitmaps.c block.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 freefs.c get_pathname.c icount.c
  	initialize.c inline.c inode.c irel_ma.c link.c llseek.c
  	lookup.c mkdir.c namei.c newdir.c read_bb.c read_bb_file.c
  	rs_bitmap.c rw_bitmaps.c swapfs.c test_io.c tst_badblocks.c
  	tst_iscan.c unix_io.c unlink.c valid_blk.c version.c: Add an
  	#ifdef for HAVE_UNISTD_H
1997-08-10 23:07:40 +00:00
Theodore Ts'o a47b66ee09 ChangeLog, error_message.c, error_table.h, et_name.c:
error_table.h:
  et_name.c (error_table_name):
  error_message.c (error_message.c): Make code be 16-bit safe.
ChangeLog, e2fsck.c:
  e2fsck.c (check_mount): Add stronger warning message about the perils
  	of running e2fsck on a mounted filesystem.
1997-08-10 23:02:21 +00:00
Theodore Ts'o ab6b8ab64d ChangeLog, Makefile.in, e2label.c:
e2label.c: New file contributed by Andries Brouwer which provides an
  easy-to-use interface to modify the filesystem label.
1997-07-14 19:28:55 +00:00
Theodore Ts'o a1230b1376 ChangeLog, ext2_err.et.in, unix_io.c:
unix_io.c (unix_read_blk): If ext2fs_llseek() fails, but errno is
  	zero, then return EXT2_IO_LLSEEK_FAILED.
  ext2_err.et.in: Add a new error code, EXT2_IO_LLSEEK_FAILED.
1997-07-02 02:41:59 +00:00
Theodore Ts'o 00cb1c0277 ADD TAG: E2FSPROGS-1_11 1997-06-17 05:50:14 +00:00
Theodore Ts'o 98b9fc698d resize2fs.h:
Remove unused ext2_brel field in the ext2_resize_struct structure.
1997-06-17 05:50:14 +00:00
Theodore Ts'o bc210074ea Makefile.in:
Performed a "make depend" for the upcoming release
Many files:
  Checkins for the 1.10 release.
1997-06-17 05:41:36 +00:00
Theodore Ts'o 024996cf0a ChangeLog:
Check-in for the 1.11 source release.
1997-06-17 05:38:35 +00:00
Theodore Ts'o 8e74e66983 Makefile.in, .del-e2fsprogs-1.11.spec~42cd069e, resize2fs.h:
Fix up for release
1997-06-17 05:36:04 +00:00
Theodore Ts'o e22d4616ef ChangeLog, mke2fs.c:
Adjust the number of columns printed when displaying the superblock
  backups to avoid running over 80 columns when making a really big
  disk.
1997-06-17 03:57:27 +00:00
Theodore Ts'o 549860c5c7 ChangeLog, dblist.c, ext2fs.h, jump.funcs:
Added new function which returns the number of directory blocks in
  dblist.
1997-06-17 03:55:00 +00:00
Theodore Ts'o c762c8e632 Many files:
Checkin of work to date.  (Pretty much completely working now.)
1997-06-17 03:52:12 +00:00
Theodore Ts'o 05e112a11b ChangeLog, Makefile.in, version.h:
Allow people to set the version.h to something like 1.10-PLUS.
.del-inodemap.c~24510e64, main.c, resize2fs.c, resize2fs.h:
  More interim work.  All is functioning except progress meter.
1997-06-14 07:28:44 +00:00
Theodore Ts'o 36f21439f5 ChangeLog, unix_io.c:
Make the io_channel flush function do a fsync to flush the kernel
  buffers to disk.
bmove.c, ext2fs.h:
  Added debugging flag to block move function.
1997-06-14 07:25:40 +00:00
Theodore Ts'o 052db4b76e Makefile.in, .del-inodemap.c~24510e64, main.c, resize2fs.c, resize2fs.h:
New snapshot (almost fully functional)
1997-06-12 07:14:32 +00:00
Theodore Ts'o da2e97f7cf ChangeLog, pass1.c, problem.c:
pass1.c (mark_table_blocks): Mark the superblock and group descriptor
  	blocks first, so that any conflicts between these and the bitmap or
  	inode table blocks is noticed.
  problem.c: Fix message printed out when a block or inode bitmap
  	conflicts with other fs data, has the correct group number in it.
1997-06-12 04:28:07 +00:00
Theodore Ts'o 9941fb73f5 ChangeLog, inode.c:
Fix bug; the current inode number wasn't being set by the
  goto_blockgroup function.
bmove.c, ext2fs.h:
  Added new argument to bmove, so that the caller can pass the
  allocation bitmap.  If not specified, the allocation bitmap defaults
  to fs->block_map.
1997-06-11 22:27:41 +00:00
Theodore Ts'o 7ac02a5ebd ChangeLog, pass2.c:
Check the error return from ext2fs_dblist_iterate.
1997-06-11 18:32:35 +00:00
Theodore Ts'o 1e1da29fbd Many files:
bmove.c (ext2fs_move_blocks): New function which takes a bitmap of
  	blocks which need to be moved, and moves those blocks to another
  	location in the filesystem.
  rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a bitmap,
  	make sure all of the new parts of the bitmap are zero.
  bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap wasn't
  	being returned to the caller.
  alloc_tables.c (ext2fs_allocate_group_table): Add new function
  	ext2fs_allocate_group_table() which sets the group tables for a
  	particular block group.  The relevant code was factored out of
  	ext2fs_allocate_tables().
  dblist.c (make_dblist): Adjust the initial size of the directory block
  	list to be a bit more realize (ten plus twice the number of
  	directories in the filesystem).
  Check in interim work.
1997-06-09 14:51:29 +00:00
Theodore Ts'o 24b2c7a7a1 ChangeLog, Makefile.in, configure.in:
configure.in (rmakefile): Added (optional) private directory for resize2fs.
  Makefile.in: Change recursive descent rules to check to see if a
  	directory exists before trying to make it.
Many files:
  Initial checkin of work done to date.
1997-06-07 20:42:58 +00:00
Theodore Ts'o 5972d0d644 ChangeLog, Makefile.in:
Makefile.in (install): Install the ss_err.h header file out of the
  	build directory instead of the source directory (since it is a
  	constructed file).
1997-06-07 03:45:08 +00:00
Theodore Ts'o 583ccdc32d Many files:
Fix minor typos and grammer oops found by Bill Hawes (whawes@star.net).
1997-05-09 03:06:31 +00:00
Theodore Ts'o f635d7f65b ChangeLog, mke2fs.c, badblocks.c:
Pass the blocksize to the bad blocks command so that all of the
  filesystem gets tested in the case where the blocksize 2048 or 4096.
ChangeLog, badblocks.c:
  Fix bug where ext2fs_badblocks_list_test would test the list (and
  exceed array boundaries) if there were no bad blocks on the bad blocks
  list.  (Showed up when user tried: mke2fs -c -b 4096).
1997-05-09 02:50:16 +00:00
Theodore Ts'o 9559ea33eb ChangeLog, Makefile.in:
Fix up makefile to work in new CVS development environment.
1997-05-09 02:43:38 +00:00
Theodore Ts'o dc2b896092 ADD TAG: E2FSPROGS-1_10 1997-04-29 21:26:48 +00:00
Theodore Ts'o a29f4d30f2 Many files:
Checkin of e2fsprogs 1.10
1997-04-29 21:26:48 +00:00
Theodore Ts'o ae85148246 Many files:
Checked in e2fsprogs 1.10
1997-04-29 18:13:24 +00:00
Theodore Ts'o e1d2f77065 ADD TAG: E2FSPROGS-1_09 1997-04-29 17:57:00 +00:00
Theodore Ts'o 2ecc6fefa1 Many files:
Checked in e2fsprogs 1.09
1997-04-29 17:57:00 +00:00
Theodore Ts'o 521e368572 Many files:
Checked in e2fsprogs 1.08.
1997-04-29 17:48:10 +00:00
Theodore Ts'o 24757fa046 Many files:
Checked in e2fsprogs 1.08.
1997-04-29 17:39:27 +00:00
Theodore Ts'o 7fd86d2d5c Many files:
Files which shouldn't be here.
1997-04-29 17:32:42 +00:00
Theodore Ts'o af2cff663e Many files:
Checked in e2fsprogs-1.07
1997-04-29 16:17:16 +00:00