summaryrefslogtreecommitdiffstats
path: root/sbin/recoverdisk
Commit message (Collapse)AuthorAgeFilesLines
* Sweep man pages replacing ad -> ada.pluknet2013-10-011-5/+5
| | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only
* Fix 'SEE ALSO' list.oleg2013-07-121-3/+3
|
* Correct type for DIOCGSTRIPESIZE. Without this theredelphij2013-03-141-1/+1
| | | | | | | | | would be a stack overflow which will crash the program later. PR: bin/176953 Submitted by: r4721 tormail org MFC after: 3 days
* Use stripesize as smallest block size if it's available.delphij2013-02-041-0/+5
| | | | MFC after: 2 weeks
* Fix mdoc date from previous commit.uqs2012-01-061-1/+1
|
* Document the detrimental effect of kern.cam.XX.retry_count for recoverdisk(1)uqs2012-01-051-2/+18
| | | | | | | | | recoverdisk(1) wants to know about read errors when doing the 1MB/64k reads as fast as possible so it can continue and retry them later with smaller reads (down to sector size). Any retries by lower layers will only slow it down. Prodded by: arundel
* Add missing static keywords for global variables to tools in sbin/.ed2011-11-041-1/+1
| | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file.
* recoverdisk(8): treat output file consistently and abort on EINVALuqs2011-05-012-26/+42
| | | | | | | | | | | | | | | This improves usability a little as we no longer require using touch. Also reword the manpage wrt. parameters and fix usage() [1] With no media in a cd(4) drive, the reads will loop producing EINVAL, abort in that case [2]. Document the shortcoming of sectorsize and MAXPHYS (a quick solution to this might be having MAXPHYS as the "bigsize", in short testing it didn't make a difference on throughput). Submitted by: arundel [1] PR: bin/154528 [2]
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-1/+0
| | | | Submitted by: Ulrich Spörlein
* Save (empty) worklist at successful completionphk2009-03-231-0/+1
|
* Also use %zu to print the allocation size when malloc(3) fails.ed2009-03-111-1/+1
| | | | Discussed with: phk
* Fix printf warnings on amd64 etc.phk2009-03-111-1/+1
|
* One Pp is more than enough.phk2009-03-111-1/+0
| | | | Says: brueffer
* Some improvements to recoverdiskphk2009-03-112-19/+48
|
* Bail on ENXIO, you won't get any further any way.phk2009-01-171-1/+4
| | | | Submitted by: tobez
* Improve reporting in recoverdisk a good deal.phk2007-04-231-12/+26
| | | | | Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> PR: 111630
* Revise markup.ru2006-09-301-31/+36
|
* Make recoverdisk compile on amd64 and possibly other 64bit archs.matteo2006-05-302-5/+5
| | | | | | | | Bump WARNS to 6. PR: amd64/97566 Reviewed by: phk@ MFC after: 3 days
* o Take an account a media sectorsize for medium and bigsize calculation.maxim2006-05-063-45/+290
| | | | | | | | | | o Introduce -r and -w keys which allow to load and save a worklist. o Replace README by man page. PR: bin/96677 Submitted by: Ulrich Spoerlein Approved by: phk MFC after: 1 month
* Extend utility to allow recovering single file from the deffectivesobomax2005-08-291-12/+28
| | | | | | media. MFC after: 2 weeks
* Start the dreaded NOFOO -> NO_FOO conversion.ru2004-12-211-1/+1
| | | | OK'ed by: core
* For variables that are only checked with defined(), don't provideru2004-10-241-1/+1
| | | | any fake value.
* Use %zu to format size_t instead of %jd and an intmax_t cast.des2004-10-231-6/+5
| | | | Approved by: hamlet
* Stop amd64 warnings.phk2004-10-231-3/+4
|
* Only print progress statistics once per second.phk2004-10-081-9/+16
|
* This is a small tool which will read an entire disk(partition) usingphk2004-09-282-0/+149
1M blocks and optionally write the read data to a file or disk. If a read error happens, the 1M block gets put on the end of the worklist and will be retried with 64k blocksize. If a read error happens again, the 64k block gets put at the end of the worklist and will be retried with single sector reads. The program keeps trying until you stop it. You can refresh a disk: recoverdisk /dev/ad1 /dev/ad1 or salvage a floppy: recoverdisk /dev/fd0 myfloppy.flp
OpenPOWER on IntegriCloud