aboutsummaryrefslogtreecommitdiff
path: root/sbin/recoverdisk
Commit message (Collapse)AuthorAgeFilesLines
* recoverdisk: Ensure medium_read is multiple of small_read.Poul-Henning Kamp6 days1-0/+3
|
* recoverdisk.1: Break lines at sentence stopsBenedict Reuschling2025-09-241-10/+13
| | | | | | While here, remove whitespaces at end of lines. Event: EuroBSDcon 2025 Devsummit
* recoverdisk.1: Fix typoPoul-Henning Kamp2025-09-241-1/+1
| | | | Spotted by: lme@
* Recoverdisk: Refine the determination of defaultsPoul-Henning Kamp2025-09-022-19/+59
|
* recoverdisk(1): Change time variables to time_t to compile on i386Poul-Henning Kamp2025-07-301-1/+1
| | | | | Reported by: fluffy PR: 288550
* Synchronize recoverdisk(1) with the datamuseum.dk version.Poul-Henning Kamp2025-07-222-343/+681
|
* recoverdisk: Fix comparison between stripesize and sectorsizePoul-Henning Kamp2025-01-051-1/+1
| | | | Discovered trying to read a 360KB floppy disk :-)
* recoverdisk: Consistently use item count as the first argument to callocJohn Baldwin2024-07-191-1/+1
| | | | | | Reported by: GCC 14 -Wcalloc-transposed-args Reviewed by: rlibby, imp, emaste Differential Revision: https://reviews.freebsd.org/D46010
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+1
|
* Register the bad read before bailing on terminal errors.Poul-Henning Kamp2021-02-021-9/+7
| | | | | This way running recoverdisk in a loop will not get stuck on a bad block which causes the disk or SD card detach.
* Do a sweep and remove most WARNS=6 settingsKyle Evans2020-10-011-2/+0
| | | | | | | | | | | | | | | Repeating the default WARNS here makes it slightly more difficult to experiment with default WARNS changes, e.g. if we did something absolutely bananas and introduced a WARNS=7 and wanted to try lifting the default to that. Drop most of them; there is one in the blake2 kernel module, but I suspect it should be dropped -- the default WARNS in the rest of the build doesn't currently apply to kernel modules, and I haven't put too much thought into whether it makes sense to make it so. Notes: svn path=/head/; revision=366304
* Don't send clear screen until we are committed to run.Poul-Henning Kamp2020-05-091-1/+2
| | | | Notes: svn path=/head/; revision=360841
* Bump date after recent changes and lintMateusz Piotrowski2020-04-031-5/+8
| | | | Notes: svn path=/head/; revision=359591
* Add two options to recoverdisk(1) inspired by a recentPoul-Henning Kamp2020-04-023-87/+395
| | | | | | | | | | | | | | | | data-archæology project: -u pattern Fill unread parts of the output with pattern. Default pattern is "_UNREAD_", empty pattern disables. -v Fancy status reporting using ANSI escapes and UTF-8 Notes: svn path=/head/; revision=359563
* recoverdisk(1): fclose() file supplied via '-r readlist' parameter whenAndriy Voskoboinyk2019-02-071-0/+1
| | | | | | | | | | | it's no longer needed PR: 204952 Reported by: David Binderman <dcb314@hotmail.com> MFC after: 5 days Notes: svn path=/head/; revision=343871
* SPDX: use the Beerware identifier.Pedro F. Giffuni2017-11-301-0/+2
| | | | Notes: svn path=/head/; revision=326408
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: ake use of our rounddown() macro when sys/param.h is available.Pedro F. Giffuni2016-05-011-2/+2
| | | | | | | No functional change. Notes: svn path=/head/; revision=298872
* Explicitly add more files to the 'runtime' package.Glen Barber2016-02-091-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295450
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge head from 7/28Simon J. Gerraty2014-08-191-2/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=270164
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge head@256284Simon J. Gerraty2013-10-131-5/+5
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * \ Merge from headSimon J. Gerraty2013-09-051-3/+3
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ sync from headSimon J. Gerraty2013-04-121-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-081-0/+5
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | | Sweep man pages replacing ad -> ada.Sergey Kandaurov2013-10-011-5/+5
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Approved by: re (blackend) MFC after: 1 week X-MFC note: stable/9 only Notes: svn path=/head/; revision=255977
* | | | Fix 'SEE ALSO' list.Oleg Bulyzhin2013-07-121-3/+3
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=253256
* | | Correct type for DIOCGSTRIPESIZE. Without this thereXin LI2013-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 Notes: svn path=/head/; revision=248279
* | Use stripesize as smallest block size if it's available.Xin LI2013-02-041-0/+5
|/ | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=246329
* 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