Commit Graph

37 Commits (f58c260dc44be85a1d0b987654f6c750b00a1a0b)

Author SHA1 Message Date
Theodore Ts'o a7dc56f45e mke2fs.8, badblocks.8: fix spelling errors and other miscellaneous typos
Reported-by: Pete <pete@leptonyx.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2016-04-30 22:00:54 -04:00
Theodore Ts'o 7fef2bb11f badblocks: update man page's description of the -v option
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-09-15 19:33:34 -04:00
Theodore Ts'o e53e8fb009 badblocks: Add the -B option which forces the use of buffered I/O
If for some reason direct I/O does not work correctly, force the use
of buffered I/O.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-02-18 01:16:02 -05:00
Theodore Ts'o 4001b8a8ff badblocks.8: Alphabetize options in badblocks man page
... to make it easier to find a specific option in the man page.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-29 01:03:27 -04:00
Theodore Ts'o e3dee8c91f badblocks.8: Update description of the -s option in badblocks man page
Addresses-Debian-Bug: #523063

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-06-29 00:59:35 -04:00
Theodore Ts'o f56f32b0a5 badblocks: Use standard terminology for first/last block
Use consistent and standard terminology for the starting and ending
blocks for the badblocks test in the man page and in the messages
printed by the program.

Addresses-Debian-Bug: #440983, #440981

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-07-10 10:11:23 -04:00
Iustin Pop 264f64a5a8 badblocks: implement read throttling
Currently, badblocks will read as fast as it can from the drive. While
this is what one wants usually, if badblocks is run in read-only mode on
a drive that is in use, it will greatly degrade the other users of this
disk.

This patch adds a throttling mode for reads where each read will be
delayed by a percentage of the time the previous read took; i.e., an
invocation of '-d 100' will cause the sleep to be the same as the read
took, a value of 200 will cause the sleep to be twice as high, and a
value of 50 will cause it to be half.  This will not be done if the
previous read had errors, since then the hardware will possibly have
timeouts and that would decrease the speed too much.

This algorithm helps when the disk is used by other processes as then,
due to the increased load, the time spent doing the reads will be
higher, and correspondingly badblocks will sleep even more and thus it
will use less of the drive's bandwidth. This is different from using
ionice, as it is a voluntary (and partial) throttling.

Signed-off-by: Iustin Pop <iustin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-17 07:47:25 -04:00
Iustin Pop 931b0289ee badblocks: add a max bad blocks count option
Currently, badblocks will continue scanning the device until it reaches
last_block, even though it might be that the drive is not responding
at all anymore.

This patch introduces a new parameter ('-e') that allows one to specify
the maximum bad block count; if badblocks sees more than this number, it
will abort the test.

While this is not useful for testing a device that will need to be used
as a filesystem (because we don't get an exhaustive list of bad blocks),
it is useful for testing if a device has bad blocks at all: for example,
with a count of 1, it will finish after the first error thus not needing
to test the whole device if the only purpose of the test is to check for
any bad blocks.

Signed-off-by: Iustin Pop <iustin@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2008-06-17 07:33:29 -04:00
Theodore Ts'o 52a079315b Document the -X flag in the badblocks man page
Addresses Debian Bug: #379695

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2007-04-02 18:42:59 -04:00
Theodore Ts'o d3cb5e52ef Fix typo's in badblocks(8)'s man page.
Addresses Debian Bug: #357951

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2006-03-27 12:16:30 -05:00
Theodore Ts'o 8139367bbd Fix spelling mistakes in man pages. (Addresses Debian Bugs: #304591,
#304592, #304594, #304597, #304593)
2005-04-16 14:05:09 -04:00
Theodore Ts'o df95e09a52 Document the default blocksize used by badblocks(8).
(Addresses Debian Bug #273679)
2004-09-28 10:30:27 -04:00
Theodore Ts'o 167af997e3 badblocks.c (main): Change the default number of blocks tested
at once from 16 to 64.  (Addresses Debian bug #232240)
2004-02-28 08:20:41 -05:00
Theodore Ts'o 84c054577f badblocks.c: Use an unsigned integer to support 4-byte test
patterns with the high bit set.  Let the user explicitly
	specify a random pattern with the argument "random".
2003-05-18 01:11:52 -04:00
Theodore Ts'o 849b6bc8ec badblocks.c, badblocks.8.in: Functional enhancements contributed
by Thayne Harbaugh.  These patches allow the -t option to
	control the test pattern(s) used when checking the disk.
	Test patterns may be specified in all modes (r/w, r/o and
	non-destructive).
2003-05-07 09:52:14 -04:00
Theodore Ts'o 19445ef970 Fixed up minor documentation issues (man page for badblocks and usage
message for e2fsck).
2003-01-29 21:04:52 -05:00
Theodore Ts'o a141135451 fsck.c (main): If no filesystems are specified on the command
line, default to -As.  (Addresses Debian Bug #153102)

badblocks.8.in: Clarify why it's bad to do a non-destructive
	test on a r/o mounted filesystem.  (Addresses Debian Bug
	#131350)
2002-08-17 17:39:39 -04:00
Theodore Ts'o 541d173d91 Update with the Debian package e2fsprogs-1.26-1.
Clarify and clean up the badblocks man page and the com_err info file.
2002-02-23 21:23:26 -05:00
Theodore Ts'o 3ed57c27df In mke2fs and e2fsck, specifying the -c option twice will now do
a read/write test on the disk.  Update the man pages to encourage
using the -c option, and to discouraging running badblocks separately,
since users tend to forget to set the blocksize when running 
badblocks.
2001-12-24 15:01:59 -05:00
Theodore Ts'o 177a9acef4 badblocks.8.in: Fix spelling typo. (Addresses Debian bug #110621) 2001-08-30 18:07:40 -04:00
Theodore Ts'o 12da49c947 Many files:
badblocks.8.in, dumpe2fs.8.in, e2label.8.in, mke2fs.8.in,
  	mklost+found.8.in, tune2fs.8.in: Fix typo; removed excess "anonymous"
  	in the AVAILABILITY section.
2001-05-12 15:49:17 +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 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 a551b78347 ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Added text explaining that the -n and -w options are
  	mutually exclusive.
  badblocks.c (usage): Fix usage message to make it clear that the block
  	count must be specified if the starting block is to be specified.
  	(The starting block should be a option, in the long run.)
  badblocks.c (test_nd): Save and restore the currently_testing variable
  	before going into the write verification loop.  This avoids a loop
  	termination problem if the last block on the disk is bad.  Also, turn
  	off the SIGALRM signal while restoring blocks after the user types ^C.
  	The num_saved variable is now static so that it won't get clobbered by
  	a longjmp.  buf_used and bb_count are no longer static, since they
  	aren't used by the cleanup routines anymore.
  badblocks.c (main): Removed an unsued varaible (buf_size).  Fixed bad
  	getopt argument that didn't allow the 'b' option to take an argument.
  	Added error checking when parsing the starting block number.  Fixed
  	lint warning in fscanf format string.
2000-07-13 22:05:31 +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 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 4d003982f9 ChangeLog, badblocks.8.in, badblocks.c:
badblocks.8.in: Updated manual page with suggestions from David
  	Beattie.
  badblocks.c (test_nd): Generalized cleanup and bug-fixes.  We now
  	explicitly clear out the signal handlers to prevent a longjmp to a
  	deactivated stack frame.
  	(test_rw): Fixed a signed vs. unsigned comparison error.
2000-04-03 16:01:11 +00:00
Theodore Ts'o ffe4cab315 Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, lsattr.1.in,
  	mklost+found.8.in, tune2fs.8.in: Update Remy Card's e-mail address.
  chattr.1.in: Update which attributes aren't supported.
2000-04-03 13:27:41 +00:00
Theodore Ts'o dd018f5aa4 ChangeLog, badblocks.8.in, badblocks.c:
badblocks.c: Fix non-destructive read/write patches from David
  	Beattie.  Non-standard variable-length automatic arrays removed.
  	Non-destrutive write test fixed so that logic is clearer and more
  	provably correct.  (I believe the old code had a bug where the disk
  	data wasn't restored if it was interrupted at the wrong time.)
  badblocks.8.in: Document new options in man page.
2000-02-06 23:57:07 +00:00
Theodore Ts'o caf8ce4cc4 Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
  fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
  tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
  	format (bold option flags and italicized variables), as suggested by
  	Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
  e2fsck.8.in: Update man page to use a more standard format (bold
  	option flags and italicized variables), as suggested by Andreas Dilger
  	(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
  uuid_generate.8.in: Update man page to use a more standard format
  	(bold option flags and italicized variables), as suggested by Andreas
  	Dilger (adilger@enel.ucalgary.ca)
1999-10-21 19:56:34 +00:00
Theodore Ts'o a789d84060 Many files:
e2label.c: Fix -Wall warning by making functions static.
  chattr.1.in: Document that the append-only attribute may only be set
  	or cleared by the superuser.
  Update all manual pages to that the availability section is
  	up-to-date.
  e2label.8.in, tune2fs.8.in: Update manual page to state that labels
  	must be no longer than 16 characters, or they will be truncated.
  e2label.c (change_label), tune2fs.c (main): If the label is longer
  	than 16 characters, print a warning message stating that the label
  	will be truncated.
  mke2fs.c (PRS): If the user specifies a filesystem size, and it's
  	larger than the apparent size of the device, print a warning message
  	and ask if the user wants to proceed.
1998-03-30 01:20:55 +00:00
Theodore Ts'o 92bcc595dc ChangeLog, badblocks.8.in, mke2fs.c:
badblocks.8: Update documentation to note that output format of
  	badblocks is suitable for use with e2fsck -l or mke2fs -l.
  mke2fs.c (handle_bad_blocks): Fix bug so that all groups with bad
  	superblock backup blocks are printed (not just the first one).
1998-02-16 22:29:34 +00:00
Theodore Ts'o ca8abba7e0 Many files:
resize2fs.h: If EXT2_FLAT_INCLUDES is defined, then assume all
  	of the ext2-specific header files are in a flat directory.
  ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
  	resize2fs.h: Rename variables named "new" to "new_block",
  	"new_inode", or "new_loc" to avoid C++ reserved word
  	clash.
  ext2_block_move.c, ext2_inode_move.c, extent.c, resize2fs.c,
  	sim_progress.c: Use ext2fs_get_memory(),
  	ext2fs_free_memory(), et. al., instead of malloc() and
  	free().
  ext2_block_move.c, ext2_inode_move.c, extent.c: Explicitly cast
  	all assignments from void * to be compatible with C++.
  banalysis.c, banalysis.h, ext2_inode_move.c, ext2_block_move.c:
  	Change private to priv_data to avoid C++ namespace clash.
ChangeLog, badblocks.8.in:
  badblocks.8.in: Add documentation for the -s option.
1998-01-19 14:55:24 +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 19c78dc07f Many files:
Checked in e2fsprogs-1.07
1997-04-29 16:17:09 +00:00
Theodore Ts'o 74becf3c0a Many files:
Checkin of e2fsprogs 1.02.
1997-04-26 14:37:06 +00:00