aboutsummaryrefslogtreecommitdiff
path: root/sbin/badsect
Commit message (Collapse)AuthorAgeFilesLines
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-0/+1
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-7/+7
| | | | Notes: svn path=/head/; revision=140415
* The badsect(8) utility uses atol(), which doesn't allow very good errorRobert Watson2005-01-031-1/+4
| | | | | | | | | | | | | checking and only recognizes numbers in base 10. The attached patch checks errno after strtol() and uses a base of 0 to allow octal, or hex sector numbers too. PR: 73112 Submitted by: keramida MFC after: 2 weeks Notes: svn path=/head/; revision=139648
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-3/+6
| | | | Notes: svn path=/head/; revision=131488
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-092-8/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Add section number to .XrPhilippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116034
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+4
| | | | Notes: svn path=/head/; revision=114589
* Remove unused variable to make badsect WARNS=2 clean.Johan Karlsson2003-02-222-2/+0
| | | | Notes: svn path=/head/; revision=111265
* Spell libufs correctly in DPADD.Ruslan Ermilov2003-01-261-1/+1
| | | | | | | Reviewed by: juli Notes: svn path=/head/; revision=109883
* Convert badsect to use libufs.Juli Mallett2003-01-202-58/+18
| | | | Notes: svn path=/head/; revision=109600
* Create a new 32-bit fs_flags word in the superblock. Add code to moveKirk McKusick2002-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=107294
* s/filesystem/file system/g as discussed on -developersTom Rhodes2002-08-212-13/+13
| | | | Notes: svn path=/head/; revision=102231
* The .Nm utilityPhilippe Charnier2002-07-061-9/+13
| | | | Notes: svn path=/head/; revision=99501
* This commit adds basic support for the UFS2 filesystem. The UFS2Kirk McKusick2002-06-211-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filesystem expands the inode to 256 bytes to make space for 64-bit block pointers. It also adds a file-creation time field, an ability to use jumbo blocks per inode to allow extent like pointer density, and space for extended attributes (up to twice the filesystem block size worth of attributes, e.g., on a 16K filesystem, there is space for 32K of attributes). UFS2 fully supports and runs existing UFS1 filesystems. New filesystems built using newfs can be built in either UFS1 or UFS2 format using the -O option. In this commit UFS1 is the default format, so if you want to build UFS2 format filesystems, you must specify -O 2. This default will be changed to UFS2 when UFS2 proves itself to be stable. In this commit the boot code for reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c) as there is insufficient space in the boot block. Once the size of the boot block is increased, this code can be defined. Things to note: the definition of SBSIZE has changed to SBLOCKSIZE. The header file <ufs/ufs/dinode.h> must be included before <ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and ufs_lbn_t. Still TODO: Verify that the first level bootstraps work for all the architectures. Convert the utility ffsinfo to understand UFS2 and test growfs. Add support for the extended attribute storage. Update soft updates to ensure integrity of extended attribute storage. Switch the current extended attribute interfaces to use the extended attribute storage. Add the extent like functionality (framework is there, but is currently never used). Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@freebsd.org> Notes: svn path=/head/; revision=98542
* more file system > filesystemTom Rhodes2002-05-162-12/+12
| | | | Notes: svn path=/head/; revision=96707
* Sigh, more BBSIZE related breakage.Poul-Henning Kamp2002-05-121-0/+1
| | | | | | | Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96478
* Kill registerWarner Losh2002-03-201-1/+1
| | | | Notes: svn path=/head/; revision=92753
* o Use real prototypes and ANSI function definitions.Warner Losh2002-03-181-12/+5
| | | | | | | o Remove __P. Notes: svn path=/head/; revision=92538
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+1
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* Remove whitespace at EOL.Dima Dorfman2001-07-151-4/+4
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* Include missing header files which define functions for which gcc hasDima Dorfman2001-06-241-0/+1
| | | | | | | builtins (e.g., exit, strcmp). Notes: svn path=/head/; revision=78732
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-1/+1
| | | | Notes: svn path=/head/; revision=74531
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-181-1/+1
| | | | Notes: svn path=/head/; revision=70152
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68960
* Remove the block/char device distinction. badsect only worked on bdevs,Adrian Chadd2000-11-091-7/+1
| | | | | | | | | | and then mapped /dev/foo into /dev/rfoo to get to the character device. This isn't needed anymore. Reviewed by: ps Notes: svn path=/head/; revision=68521
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57668
* Remove xrefs to obsolete bad144(8).Nik Clayton2000-03-011-4/+1
| | | | | | | | PR: docs/17060 Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de> Notes: svn path=/head/; revision=57662
* $Id$ -> $FreeBSD$Peter Wemm1999-08-282-2/+2
| | | | Notes: svn path=/head/; revision=50476
* Fixed printf format errors.Bruce Evans1998-06-281-9/+9
| | | | Notes: svn path=/head/; revision=37233
* Correct use of .Nm. Add section number to .Xr. Add rcsid, usage(). Use err(3).Philippe Charnier1998-06-042-35/+35
| | | | Notes: svn path=/head/; revision=36626
* Remove Xref to format(8) which does not exist.Masafumi Max NAKANE1997-10-151-2/+1
| | | | Notes: svn path=/head/; revision=30449
* Expected to be found in /sbin not /etc.Philippe Charnier1997-06-041-2/+2
| | | | Notes: svn path=/head/; revision=26437
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22990
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Sort cross references.Wolfram Schneider1997-01-131-2/+3
| | | | Notes: svn path=/head/; revision=21635
* Eliminated includes of the "temporary" backwards compatibility headerBruce Evans1996-09-241-2/+2
| | | | | | | | | <sys/dir.h> in applications. Maintained existing (inadequate) ifdefs for dir.h vs dirent.h in libdialog, amd and rarpd, but didn't add any new ones. Notes: svn path=/head/; revision=18485
* Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bdeBruce Evans1995-04-021-8/+8
| | | | | | | Fix all the warnings from `gcc -Wall'. Notes: svn path=/head/; revision=7590
* Make this actually work. It always failed in FreeBSD because it attemptedBruce Evans1995-04-021-6/+27
| | | | | | | | | | | | | | | | | to open the mounted block device containing the directory to put the bad sector files in, and opening of mounted block devices hasn't been allowed since Net/2 or before. Attempt to open the raw device instead. Be more careful about long names. Use lstat() instead of stat() to search for block devices so that my symlink to the default floppy doesn't cause problems. Check for truncation of the block number when it is squeezed through the mknod() interface. The maximum used to be only 32767, but now it large enough. Notes: svn path=/head/; revision=7589
* Convert to our man installation style. Also fixed long-standing bugGarrett Wollman1994-08-051-1/+1
| | | | | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message. Notes: svn path=/head/; revision=1855
* BSD 4.4 Lite sbin SourcesRodney W. Grimes1994-05-263-0/+347
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin. Notes: svn path=/head/; revision=1558