Commit Graph

446 Commits (19c689196bcd90510070b50cd08d0e962fe8311c)

Author SHA1 Message Date
Theodore Ts'o 19c689196b ChangeLog, fsck.c:
fsck.c (execute, wait_one): Treat fsck.ext3 the same as fsck.ext2
  	(because they are the same) for the purposes of the progress bar
  	display logic.
ChangeLog, ls.c:
  ls.c (list_super): Display the journal information fields in the
  	superblock if the filesystem has a journal.
2000-07-07 03:25:13 +00:00
Theodore Ts'o 45d9e2ff7c ChangeLog, tune2fs.8.in, tune2fs.c:
tune2fs.8.in: Update manual page to document what happens if
  	max_mount_count is negative.
  tune2fs.c (main): Allow setting the maximal count value to be
  	negative, since the kernel interprets that as forcing a check.
2000-07-07 03:12:54 +00:00
Theodore Ts'o 5b1519bf52 ChangeLog, fsck.c:
fsck.c (lookup, load_fs_info, check_all): Use lazy evaluation for
  	calling interpret_device(), since this requires root privileges if the
  	partitions need to be scanned.  Otherwise, it's not possible to do
  	non-proot fsck's for removeable devices such as floppies if there are
  	any LABEL= or UUID= entries in /etc/fstab.
2000-07-06 14:16:08 +00:00
Theodore Ts'o 981dc56ae3 ChangeLog, badblocks.8.in, badblocks.c:
badblocks.c (check_mount, main): Check to see if the filesystem is
  	mounted before doing a read/write or non-destructive test.  This can
  	be overriden using the new -f option.
  badblocks.8.in: Added documentation for the -f option.
2000-07-06 14:13:29 +00:00
Theodore Ts'o 35964b5c4a ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Update manual page to reflect that the blocks-count
  	parameter is now optional.  Also properly document the start-block
  	parameter.
  badblocks.c (main): Allow the blocks-count parameter to be optional.
  	If it's not specified, use the size of the device as a default.
2000-07-06 13:19:43 +00:00
Theodore Ts'o d49a22b734 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.
2000-07-06 00:31:27 +00:00
Theodore Ts'o e4c8e885d2 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.
2000-07-05 23:54:46 +00:00
Theodore Ts'o 9226904bfb 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).
2000-07-05 18:25:59 +00:00
Theodore Ts'o 1419717066 ChangeLog, debugfs.c:
debugfs.c (dump_inode): Make the generation field be printed as an
  	unsigned integer.
2000-07-05 17:48:34 +00:00
Theodore Ts'o 197fb3a33a ChangeLog, config.guess, config.sub:
config.guess, config.sub: Update to use latest version from FSF (2000-06-13)
2000-07-05 15:42:23 +00:00
Theodore Ts'o 9cbfb8d0d9 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.
2000-07-04 19:51:22 +00:00
Theodore Ts'o 8f13d8cb5c 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.
2000-07-04 19:41:29 +00:00
Theodore Ts'o 57dca85467 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.
2000-07-04 19:20:25 +00:00
Theodore Ts'o b2420d4057 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).
2000-07-04 18:51:20 +00:00
Theodore Ts'o 619dd191ef 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.
2000-07-04 12:37:55 +00:00
Theodore Ts'o 1f00aafd9f 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.
2000-07-04 12:34:34 +00:00
Theodore Ts'o a3ee70f221 POTFILES.in, it.po, nyc.po:
Update to include resize2fs files.
2000-06-12 22:40:09 +00:00
Theodore Ts'o a13575f4d2 ChangeLog, extent.c, main.c, resize2fs.c, resize2fs.h:
main.c, resize2fs.c, resize2fs.h, extent.c: Add NLS support.
2000-06-12 22:06:16 +00:00
Theodore Ts'o 5dd7ff07d0 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().
2000-06-12 17:35:13 +00:00
Theodore Ts'o 7dc435082e badblocks.8.in:
Update man page explanation for badblocks.
  Update man page's explanation for the -c option.
2000-06-12 16:45:30 +00:00
Theodore Ts'o abf7d3880b ChangeLog, getsize.c:
getsize.c (main): Add debugging code under #ifdef DEBUG
2000-06-10 19:27:17 +00:00
Theodore Ts'o bbd47d76b7 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.
2000-06-10 19:21:33 +00:00
Theodore Ts'o 3e025efc0f lsdel.c:
Fix missed call to ext2fs_get_next_inode() to check for
  EXT2_ET_BAD_BLOCK_INODE.
2000-06-10 15:20:41 +00:00
Theodore Ts'o ee753091cf ChangeLog, lsdel.c:
Handle bad blocks in inode table.
2000-06-09 04:24:36 +00:00
Theodore Ts'o 26ab531523 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.
2000-05-29 15:05:42 +00:00
Theodore Ts'o d61f617602 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.
2000-05-27 16:04:00 +00:00
Theodore Ts'o 275ec02c28 Makefile.in:
Add another dependency hack to allow parallel makes to work correctly.
2000-05-27 15:18:02 +00:00
Theodore Ts'o 2e8d40d562 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.
2000-05-27 15:15:40 +00:00
Theodore Ts'o d647a1ea4d 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.
2000-05-27 14:40:09 +00:00
Theodore Ts'o 415ed79ebc Many files:
Remove generated file.
2000-05-25 23:46:39 +00:00
Theodore Ts'o 7fd86d3967 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
2000-05-25 23:42:22 +00:00
Theodore Ts'o dc5f68cad3 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.
2000-05-25 23:31:54 +00:00
Theodore Ts'o 6928adc90a 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.
2000-05-25 23:28:50 +00:00
Theodore Ts'o f0f4acbdd5 ChangeLog, Makefile.in:
Makefile.in: Add hack dependency rule so that parallel makes work
  	correctly.
2000-05-25 23:22:11 +00:00
Theodore Ts'o bdcb8234e7 .cvsignore:
Supress build files when builddir==srcdir
2000-05-25 23:19:08 +00:00
Theodore Ts'o 91e544f2de 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.)
2000-05-25 16:43:00 +00:00
Theodore Ts'o 93d29696df ChangeLog, test_script.in:
test_script.in: Ignore files in the test directory (to avoid spurious
  	messages when builddir==srcdir).
2000-05-25 16:40:54 +00:00
Theodore Ts'o 1d2792181f 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.
2000-05-19 02:38:14 +00:00
Theodore Ts'o fa7ef7176e ChangeLog, ext2fs.h:
ext2fs.h: Add appropriate ifdef's to support C++ compilation.
2000-05-19 02:11:41 +00:00
Theodore Ts'o c96e511a0c ChangeLog, fsck.c:
fsck.c (interpret_device): Add better error messages if a UUID= or
  	LABEL= specification is given.
2000-05-08 14:47:15 +00:00
Theodore Ts'o 4ea0a1109d 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".
2000-05-08 13:33:17 +00:00
Theodore Ts'o 3030daa8ab 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.
2000-04-07 20:06:04 +00:00
Theodore Ts'o cc73e0401d 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.
2000-04-06 23:05:32 +00:00
Theodore Ts'o e2207ce595 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().
2000-04-06 21:51:18 +00:00
Theodore Ts'o 68853373db configure.in, ChangeLog:
configure.in (fdatasync): Add test for fdatasync(), since not all
  	functions have this function.
2000-04-06 21:44:19 +00:00
Theodore Ts'o 0cee8a5c42 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
2000-04-06 21:38:34 +00:00
Theodore Ts'o 3eccb84d89 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.
2000-04-06 21:20:23 +00:00
Theodore Ts'o 561f28ff9d configure:
configure.in (fdatasync): Add test for fdatasync(), since not all
  	functions have this function.
2000-04-06 20:57:26 +00:00
Theodore Ts'o fa7cc28004 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.
2000-04-03 16:51:06 +00:00
Theodore Ts'o 373b8337c7 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.
2000-04-03 16:22:35 +00:00