summaryrefslogtreecommitdiffstats
path: root/sbin/recoverdisk/recoverdisk.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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-011-7/+12
| | | | | | | | | | | | | | | 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]
* 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
|
* Some improvements to recoverdiskphk2009-03-111-17/+31
|
* 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
* Make recoverdisk compile on amd64 and possibly other 64bit archs.matteo2006-05-301-4/+4
| | | | | | | | 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-061-42/+162
| | | | | | | | | | 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
* 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-281-0/+137
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