bde
3c856a893d
Fixed printing of and comparison with d_typename[]. It is not always
...
null terminated.
1997-12-12 18:01:57 +00:00
bde
7fbe90cce3
MF22 (oops, I committed it to the wrong tree yesterday).
...
Changed lots of %ld's in format strings back to %d. %ld was right
when daddr_t was long, but Lite2 changed daddr_t to int32_t which
is implemented as `int' on i386's.
1997-12-12 17:58:31 +00:00
bde
c38483ca29
Fixed the usual multiplication overflow bug in an lseek() offset calculation.
...
The scan for bad sectors was broken for offsets >= 4G on 32-bit systems.
1997-12-11 07:27:06 +00:00
bde
50f14fbd5e
Merged from Lite2 (fix misformattings in copyright).
1997-12-11 07:12:10 +00:00
charnier
1ef83148c9
Use err(3). Add usage(). Remove Xref: format(8) does not exist.
1997-09-04 11:40:51 +00:00
phk
4c23c063f9
Commit the longstanding bin/410 & kern/411 fix, in the hope that somebody
...
will find out if it works/breaks before we do our next release. It's all
about bad blocks in the remap area of the disk.
1995-12-01 11:07:01 +00:00
rgrimes
8f6e1a9b69
Merge RELENG_2_0_5 into HEAD
1995-06-11 19:33:05 +00:00
rgrimes
5a145b5eb1
Remove trailing whitespace.
1995-05-30 03:57:47 +00:00
phk
54ce0c789c
Change the ioctl to match what went into wd.c
1995-05-18 21:26:06 +00:00
phk
781b3a7a38
Basic bad-block scanner. Works. Slow. Adds the bad-spots automatically.
1995-05-15 19:02:09 +00:00
rgrimes
7706042b15
printf -> fprintf when you use a fd arg :-), oops!
1995-05-14 08:40:37 +00:00
rgrimes
4b0d4e2963
Don't add a slash to the end of _PATH_DEV, it already has one.
...
Print a final newline to stderr after the scan finishes, only do it
at the right place in this version, 1.1.5.1 caused an extra newline
if you where not running -s, and it went to stdout instead of stderr.
Obtained from: FreeBSD 1.1.5.1
1995-05-14 08:19:08 +00:00
rgrimes
da6944eeb7
Add bad144 -s option to scan entire slice of disk.
...
Obtained from: FreeBSD 1.1.5.1 (Just the scan function itself was added)
1995-05-14 07:05:47 +00:00
rgrimes
42a1db8e7f
mlink bad144.8 to man8/bad144.8 so we can find the manual page.
...
Use /${MACHINE} for MANSUBDIR instead of hardcoded /i386
Obtained from: FreeBSD 1.1.5.1
1995-05-14 02:30:19 +00:00
bde
16e3de6f98
- Don't write the label if the (undocumented) nflag is set.
...
- Don't write the label directly - use DIOCWDINFO.
- Avoid overflow in calculation of lseek() offsets.
- Fix format args in strings some more. %ld and %lu were often reversed and
#ifdefed out strings weren't fixed.
- Don't hard code the raw partition letter or DKBAD*.
- Write the qsort() comparision function in `C'.
- Fix all remaining warnings from `cc -Wall -Walmost-really-all'.
1995-04-15 21:59:26 +00:00
phk
4c8f3b9d67
Clean up, and make it work with Bruces wd.c changes.
...
Bad144 is on the way back.
1995-04-09 06:06:01 +00:00
bde
2e8df944ff
Define DKBAD_MAGIC the same as in 1.1.5 (as 0x4321 instead of 0). 0 is
...
a poor value for a magic number, and we need to be compatible.
1994-10-25 17:33:25 +00:00
wollman
f19a26b912
Get rid of update. Make man page installation work with our scheme
...
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
dg
17e7606224
Converted 'vmunix' to 'kernel'.
1994-08-05 09:14:37 +00:00
rgrimes
862fdf11a2
BSD 4.4 Lite usr.sbin Sources
1994-05-26 05:23:31 +00:00