Commit Graph

182 Commits (f698d42f983fd529469211d14da1a6b943e69871)

Author SHA1 Message Date
Theodore Ts'o d71a495dd0 ChangeLog, util.c:
util.c: Use specific check for HAVE_SYS_STAT_H.
2001-05-07 16:53:26 +00:00
Theodore Ts'o 609c9d0f49 ChangeLog, fsck.8.in:
fsck.8.in: Add explicit language to describe how options get passed to
  	filesystem-specific checkers.
2001-05-05 06:45:05 +00:00
Theodore Ts'o cd130a0887 ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Fixed man page to describe the first optional
  	parameter to badblocks as last_block, instead of num_blocks.  (Debian
  	nbug #87216)
  badblocks.c: Change the blocks_count variable to be last_count, which
  	is a more accurate description of the variable.
2001-05-05 05:43:23 +00:00
Theodore Ts'o 0edb4d8504 e2image.8.in:
Updates and clarifications to the manual page.
2001-05-03 16:30:48 +00:00
Theodore Ts'o a3827953b2 e2image.c:
Update copyright date.
  :
2001-05-03 16:24:57 +00:00
Theodore Ts'o 348e43dccb ChangeLog, dumpe2fs.8.in, dumpe2fs.c:
dumpe2fs.c (main): Add new flag, -i, which will allow dumpe2fs to dump
  	out the filesystem statistics from an ext2 image file.
Many files:
  e2image.8.in: New manual page
  badblocks.8.in, e2label.8.in, mke2fs.8.in mklost+found.8.in,
  	tune2fs.8.in: Update location of e2fsprogs to be
  	http://e2fsprogs.sourceforge.net.
2001-05-03 14:43:43 +00:00
Theodore Ts'o 095b459dac ChangeLog, e2image.c:
e2image.c (main): Fix format of e2image to be easier to be parse by
  	ext2fs_open().
2001-05-03 13:33:11 +00:00
Theodore Ts'o 45d7086f4e ChangeLog, fsck.c:
fsck.c (device_already_active): If we're not able to determine the
  	base device, we should assume that the device is already active in
  	order to force serialization.
2001-05-01 15:44:37 +00:00
Theodore Ts'o ce57f14f40 ChangeLog, tune2fs.c:
tune2fs.c (parse_tune2fs_options): Interpret -c 0 as -c -1 (for
  	backwards compatibility with older kernels).  -c 0 makes more sense to
  	users.
tune2fs.8.in:
  Update tune2fs manual papge so that it is up to date.
2001-04-26 04:25:39 +00:00
Theodore Ts'o 4d0f22832c ChangeLog, tune2fs.c:
tune2fs.c (remove_journal_device): If the force flag is given, tune2fs
  	will remove the journal device information from the superblock even if
  	tune2fs failed to open the journal device or otherwise other failed to
  	remove the filesystem from journal device.
  	(parse_tune2fs_options): Fix -j option so that it works (it was
  	missing the open_flag being set to EXT2_FLAG_RW).
  	(main): Accept "-U clear" to set a null UID.
2001-04-23 20:58:03 +00:00
Theodore Ts'o 48015ced4e ChangeLog, mke2fs.8.in:
mke2fs.8.in: Manual page cleanups.  Temporarily comment out the
  	documentation for the extern journal device support.
2001-04-22 03:58:32 +00:00
Theodore Ts'o b10fd5e84e ChangeLog, mke2fs.c:
mke2fs.c (usage): Remove the deprecated -s option from the usage message.
2001-04-22 03:47:23 +00:00
Theodore Ts'o 2103ea787f ChangeLog, mke2fs.c:
mke2fs.c (main): Add better explanation about when the filesystem will
  	be checked after it is created.
2001-04-21 20:53:43 +00:00
Theodore Ts'o d6a27e0048 ChangeLog, mke2fs.c:
mke2fs.c (create_journal_dev): Call ext2fs_create_journal_superblock()
  first, so if it's going to error out, the user finds out before
  waiting for the entire device to get zero'ed.
ChangeLog, util.c:
  util.c (parse_journal_opts): Remove code which allowed a bare number
  	to be treated as a journal size.
2001-04-17 02:34:41 +00:00
Theodore Ts'o 1d08d9bfc2 ChangeLog, mke2fs.c, tune2fs.c:
mke2fs.c, tune2fs.c: Add newlines to error messages so that they look
  	nicer.
2001-04-17 01:01:49 +00:00
Theodore Ts'o 2537b6d0c1 ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
ke2fs.8.in, tune2fs.8.in: Change man paegs to document that the
  journal must be bewteen 1024 and 10,240 file system blocks.
  mke2fs.c, tune2fs.c: Change to use figure_journal_size()
  util.c, util.h (figure_journal_size): Change journal_default_size into
  	routine which also converts the requested journal size into filesystem
  	blocks and does bounds checking to make sure the journal is sized
  	reasonably.  Renamed function to journal_default_size.
  	parse_journal_opts): Remove bounds check for the journal size, since
  	this is now done in figure_journal_size, and based on the number of
  	filesystem blocks, as opposed to using the absolute size of the
  	journal.
2001-03-26 20:07:13 +00:00
Theodore Ts'o 93345d1588 ChangeLog, mke2fs.c:
mke2fs.c (main): Flush out the "creating journal" message.  Also
  	handle the case where the default journal size returns zero blocks ==
  	no journal.  Print out how often the filesystem will be checked.
2001-02-17 06:09:50 +00:00
Theodore Ts'o c5423c5b3e ChangeLog, e2image.c:
e2image.c (main): Add code to write the e2image header.
ChangeLog, e2image.h:
  e2image.h (struct ext2_image_hdr): Fix type for fs_hostname
2001-02-08 05:45:17 +00:00
Theodore Ts'o be4244bafd ChangeLog, tune2fs.8.in:
tune2fs.8.in: Update man page to reflect that 2.0.39 supports
  	sparse_super.
2001-02-08 03:28:18 +00:00
Theodore Ts'o 8b164f974d ChangeLog, dumpe2fs.c:
dumpe2fs.c (list_desc): Fix fencepost error when calculating the range
  of inode table blocks.  Add '0x' to values printed in hex.
2001-02-08 03:24:18 +00:00
Theodore Ts'o fff18b4e76 ChangeLog, chattr.c, lsattr.c:
chattr.c, lsattr.c: Define the _LARGEFILE64_SOURCE to force the use of
  the LFS so that lstat will work on large files.
2001-02-08 03:06:43 +00:00
Theodore Ts'o 6b7e807e0a uuidgen.c:
Add check for HAVE_STDLIB_H before including stdlib.h
2001-02-08 02:38:07 +00:00
Theodore Ts'o a05c589a5e Makefile.in:
Update makefile dependencies
2001-01-18 02:37:21 +00:00
Theodore Ts'o dc2ec525f5 ChangeLog, mke2fs.8.in, mke2fs.c, tune2fs.8.in, tune2fs.c:
tune2fs.c, mke2fs.c, tune2fs.8.in, mke2fs.8.in: Change user interface
  	so that -J is used to specify journal options, and -j is used to
  	request creation of a journal using default values.  (This is a UI
  	change, but we haven't done a formal release, and it makes things much
  	more consistent with the rest of the options out there.)
  tune2fs.c: Add support for removing a filesystem from an external
  	journal; we correctly remove the filesystem UUID from the external
  	journal's filesystem list.
2001-01-18 01:51:15 +00:00
Theodore Ts'o 5683e6e2c7 ChangeLog, util.c, util.h:
util.h, util.c (journal_default_size): New function from Andreas
  	Dilger to calculate an appropriate default journal size given a
  	filesystem size.
  util.c (parse_journal_opts): Allow the creation of a journal as small
  	as 1MB.
2001-01-18 01:47:48 +00:00
Theodore Ts'o 020888625f ChangeLog, mkjournal.c:
mkjournal.c (ext2fs_add_journal_device): Fix bug where the device
  	number of the filesystem (instead of the journal) was being dropped
  	into s_journal_dev.
ChangeLog, dumpe2fs.c:
  dumpe2fs.c (print_journal_information): Use s_first_data_block to find
  	the correct block to read the journal superblock.
2001-01-18 01:44:19 +00:00
Theodore Ts'o 16ed5b3af4 ChangeLog, Makefile.in, dumpe2fs.c, jfs_user.h, mke2fs.c, tune2fs.c:
tune2fs.c: Changed the external journal code so that it simply adds a
  	filesystem to a journal; the journal must have bene created via
  	"mke2fs -O journal_dev /dev/XXX".
  mke2fs.c: Add support for creating an external journal device by using
  	the command "mke2fs -O journal_dev /dev/XXX".  Also changed the
  	external journal code so -j device=/dev/XXX it simply adds a
  	filesystem to that journal; the journal must have been created via
  	separate step.
  dumpe2fs.c (print_journal_information): Add support for dumping
  	information about an external journal device.
2001-01-16 07:47:31 +00:00
Theodore Ts'o 44c09c0454 ChangeLog, mke2fs.8.in, mke2fs.c:
mke2fs.c: Add new filesystem types, largefile and largefile4, for
  	those filesystems whose average inode size is 1MB and 4MB,
  	respectively.  Allow the inode ratio specified to be has high as 4MB.
  	Make the s_max_mount_count vary between 20 and 40, to avoid needing to
  	check all of the filesystems at the same time.  Add some random jitter
  	to the s_max_mount_count value so that we avoid checking all of the
  	filesystems at the same time when we reboot.
2001-01-14 17:02:09 +00:00
Theodore Ts'o 08dd830ddd ChangeLog, tune2fs.8.in:
tune2fs.8.in: Add description of the -j option.
tune2fs.c:
  Minor whitespace and option ordering fixes from Andreas Dilger
2001-01-14 16:25:58 +00:00
Theodore Ts'o 4055ef7301 ChangeLog, tune2fs.c:
tune2fs.c (add_journal): Minor fixes from Andreas Dilger. Flush stdout
  	after printing in-progress message.
  	(main): Exit with status code 1 if we failed to determine the mount
  	status of the device.
ChangeLog, gcc-wall-cleanup:
  gcc-wall-cleanup: Remove additional annoying warning messages emited
  	by gcc 2.95.2.
ChangeLog, uuid.h:
  uuid: Change arguments to make it clear which argument is the source
  	and which is the destination.
2001-01-14 16:11:14 +00:00
Theodore Ts'o c8c071a073 ChangeLog, e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c:
e2image.c, mke2fs.c, mklost+found.c, tune2fs.c, util.c, uuidgen.c: Fix
  	gcc -Wall complaints, including one bug in tune2fs caused by a block
  	automatic shadowing version of the variable we really wanted to use,
  	which broke the logic testing to see if the filesystem was mounted.
ChangeLog, MCONFIG.in:
  (gcc-wall-new): Added new target which forgoes the make clean so we
  	only check the newly modified .c files.
2001-01-11 16:08:23 +00:00
Theodore Ts'o 4d4045475f ChangeLog, badblocks.c:
badblocks.c (flush_bufs): Use ext2fs_sync_device() to sync and flush
  	the device.
2001-01-11 16:04:59 +00:00
Theodore Ts'o dfcdc32f8d ChangeLog, libext2fs.texinfo:
libext2fs.texinfo: Change ino_t to ext2_ino_t
ChangeLog, extent.c, main.c, resize2fs.c:
  extent.c, main.c, resize2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, mke2fs.c:
  mke2fs.c: Change ino_t to ext2_ino_t.
ChangeLog, test_icount.c, test_rel.c:
  test_icount.c, test_rel.c: Change ino_t to ext2_ino_t
2001-01-11 15:38:00 +00:00
Theodore Ts'o 832381536e ChangeLog, Makefile.in, tune2fs.c:
Makefile.in, tune2fs.c: Move e2label functionality into tune2fs, using
  	argv[0] as a dispatch.  This allows e2label to be (more) safely used
  	on mounted filesystems.
2001-01-09 00:16:26 +00:00
Theodore Ts'o 8820c79f75 Many files:
get_device_by_label.h (get_volume_label_by_spec): Add function prototype.
  get_device_by_label.c: Use string_copy() instead of strdup() for
  	portability's sake.  Fix a few other gcc -Wall complaints.
  fsck.h, fsck.c (string_copy): Export string_copy() extern.
  badblocks.c: Fix various gcc -Wall complaints, including an incorrect
  	reference to sync in flush_bufs().
ChangeLog, configure, configure.in:
  configure.in: Add checks for the header files sys/mkdev.h and
  	sys/sysmacros.h.
2001-01-06 04:20:03 +00:00
Theodore Ts'o 6398532038 ChangeLog, Makefile.in, mke2fs.c, tune2fs.8.in, tune2fs.c, util.c, util.h:
tune2fs.c (update_feature_set, add_journal): Moved to separate
  	functions.  Added ability to add and remove the journal while the
  	filesystem is live.  Added support for setting a time-based UUID.
  	Removed zero-initialized static variables.
  mke2fs.c, util.c, util.h (strcasecmp, proceed_question,
  	check_plausibility, parse_journal_opts, check_mount): Moved functions
  	to util.c so they can be used by tune2fs.
  mke2fs.c (main): Change ext2fs_add_journal_fs() to
  	ext2fs_add_journal_inode() to reflect function renaming.
2001-01-03 17:02:13 +00:00
Theodore Ts'o ef9abe5f25 ChangeLog, e2image.c, mke2fs.c:
mke2fs.c, e2image.c: Removed references to struct ext2fs_sb to struct
  	ext2_super_block.
2001-01-01 15:31:53 +00:00
Theodore Ts'o b21e38a0df ChangeLog, tune2fs.c:
tune2fs.c (main): Add support to allow HAS_JOURNAL flag to be cleared,
  	but only if the filesystem is unmounted or mounted read-only.  Changed
  	struct ext2fs_sb to struct ext2_super, and cleaned up old code which
  	was needed for old versions of ext2_fs.h (not needed since we're using
  	our own version now).
2001-01-01 15:26:58 +00:00
Theodore Ts'o d4cf2fcda2 ChangeLog, fsck.c:
fsck.c (check_all): Call interpet_device to resolve LABEL= and UUID=
  	right away so that the device_already_active() logic can do the right
  	thing.  Also cleaned up the the root filesystem logic checking code;
  	fixed up a logic bug with the parallel_root option.
2000-12-31 14:09:38 +00:00
Theodore Ts'o f10748d88c ChangeLog, lsattr.c:
lsattr.c (list_attributes): Minor cleanup to smooth out logic flow.
  	Also removed static initialized variables to zero.
ChangeLog, lsattr.1.in:
  lsattr.1.in: Add pointer to chattr man page for definition of the file
  	attributes.
2000-12-31 13:55:14 +00:00
Theodore Ts'o 9a71884968 ChangeLog, chattr.1.in, chattr.c:
chattr.c (decode_arg, get_flag): Use a table-driven method for
  	decoding the ext2 file flags character options.  Add support for the
  	journaled data flag.
  chattr.1.in: Document the -j/+j/=j flag.
2000-12-31 13:48:12 +00:00
Theodore Ts'o 16ad33346d ChangeLog, mke2fs.c:
mke2fs.c (usage): Document the -j option.
  (main): Print the number blocks used in the journal.
ChangeLog, mke2fs.8.in:
  Minor clarity edits.
2000-12-31 03:21:56 +00:00
Theodore Ts'o b9fd8c1fdb ChangeLog, base_device.c, fsck.c:
base_device.c (base_device): Add support for DAC960 device names.
  fsck.c (device_already_active): Handle the case where base_device
  	doesn't know how to interpret the device name, instead of core
  	dumping.
2000-12-29 03:10:45 +00:00
Theodore Ts'o 26900ae444 flushb.c, findsuper.c:
Adjust legal language.
2000-12-09 21:46:59 +00:00
Theodore Ts'o d48755e97f ChangeLog, mke2fs.c:
mke2fs.c (main, parse_journal_opts): Add support for creating V1
  	superblocks.  We now pass in a journal_flags field to the journal
  	creation routines for this purpose.
  mke2fs.c: Remove zero initializers to save a few bytes from the
  	executable image.  (Are we excited yet?)
2000-12-09 14:36:04 +00:00
Theodore Ts'o 74a74d22d8 ChangeLog, findsuper.c:
findsuper.c: And non-subtle copyright licensing restriction to get
  	Yann to remove this program from the Debian package.  :-)
2000-12-09 14:33:29 +00:00
Theodore Ts'o 0e8a9560d8 Many files:
jfs_e2fsck.h, jfs_user.h: Replaces jfs_compat.h.  The jfs.h file has
  	been moved to the include/linux directory.
  journal.c, revoke.c, recovery.c: Updated files from Stephen to support
  	the V2 superblock and revoke processing.  The journal.c and revoke.c
  	files are copies from the ext3 kernel source.
  Makefile.in: Added revoke.c to the list of source/object files.
Makefile.in:
  Fix up some mistakes in the source file list, and regenerate the
  dependencies.
  Update Makefile dependencies.
ChangeLog, jfs.h:
  jfs.h: Remove excess #include of JFS_DEBUG.  Not needed for e2fsprogs,
  	since we optioanlly define it in the configuration file system.
2000-12-09 06:41:25 +00:00
Theodore Ts'o 3e377db294 ChangeLog, MCONFIG.in, Makefile.in, Makefile.in.in:
Fix so that top-level "make check" works correctly.
e2image.c:
  Fix program name for e2image.
2000-12-09 02:37:33 +00:00
Theodore Ts'o 793e27df73 ChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h:
fsck.c (device_already_active): Change to use new version of
  	base_device() which now returns dynamically allocated memory.
  base_device.c (base_device): New version moved from fsck.c which now
  	understands ugly devfs names.  (Debian bug #65181)
  base_device.tst: Test case for base_device.c
2000-12-03 06:33:56 +00:00
Theodore Ts'o 2d09179aec ChangeLog, fsck.8.in:
fsck.8.in: Add clarification that filesystems with a fs_passno of 0
  	are skipped with the -A option.  (Debian wishlist/bug #63442)
2000-12-02 07:03:32 +00:00