aboutsummaryrefslogtreecommitdiff
path: root/sbin/recoverdisk
Commit message (Collapse)AuthorAgeFilesLines
* Fix mdoc date from previous commit.Ulrich Spörlein2012-01-061-1/+1
| | | | Notes: svn path=/head/; revision=229697
* Document the detrimental effect of kern.cam.XX.retry_count for recoverdisk(1)Ulrich Spörlein2012-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 Notes: svn path=/head/; revision=229652
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-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. Notes: svn path=/head/; revision=227081
* recoverdisk(8): treat output file consistently and abort on EINVALUlrich Spörlein2011-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] Notes: svn path=/head/; revision=221304
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-1/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Save (empty) worklist at successful completionPoul-Henning Kamp2009-03-231-0/+1
| | | | Notes: svn path=/head/; revision=190317
* Also use %zu to print the allocation size when malloc(3) fails.Ed Schouten2009-03-111-1/+1
| | | | | | | Discussed with: phk Notes: svn path=/head/; revision=189703
* Fix printf warnings on amd64 etc.Poul-Henning Kamp2009-03-111-1/+1
| | | | Notes: svn path=/head/; revision=189700
* One Pp is more than enough.Poul-Henning Kamp2009-03-111-1/+0
| | | | | | | Says: brueffer Notes: svn path=/head/; revision=189692
* Some improvements to recoverdiskPoul-Henning Kamp2009-03-112-19/+48
| | | | Notes: svn path=/head/; revision=189691
* Bail on ENXIO, you won't get any further any way.Poul-Henning Kamp2009-01-171-1/+4
| | | | | | | Submitted by: tobez Notes: svn path=/head/; revision=187360
* Improve reporting in recoverdisk a good deal.Poul-Henning Kamp2007-04-231-12/+26
| | | | | | | | Submitted by: Ulrich Spoerlein <uspoerlein@gmail.com> PR: 111630 Notes: svn path=/head/; revision=168972
* Revise markup.Ruslan Ermilov2006-09-301-31/+36
| | | | Notes: svn path=/head/; revision=162883
* Make recoverdisk compile on amd64 and possibly other 64bit archs.Matteo Riondato2006-05-302-5/+5
| | | | | | | | | | | Bump WARNS to 6. PR: amd64/97566 Reviewed by: phk@ MFC after: 3 days Notes: svn path=/head/; revision=159076
* o Take an account a media sectorsize for medium and bigsize calculation.Maxim Konovalov2006-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 Notes: svn path=/head/; revision=158337
* Extend utility to allow recovering single file from the deffectiveMaxim Sobolev2005-08-291-12/+28
| | | | | | | | | media. MFC after: 2 weeks Notes: svn path=/head/; revision=149605
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Use %zu to format size_t instead of %jd and an intmax_t cast.Dag-Erling Smørgrav2004-10-231-6/+5
| | | | | | | Approved by: hamlet Notes: svn path=/head/; revision=136815
* Stop amd64 warnings.Poul-Henning Kamp2004-10-231-3/+4
| | | | Notes: svn path=/head/; revision=136808
* Only print progress statistics once per second.Poul-Henning Kamp2004-10-081-9/+16
| | | | Notes: svn path=/head/; revision=136257
* This is a small tool which will read an entire disk(partition) usingPoul-Henning Kamp2004-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 Notes: svn path=/head/; revision=135911