aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Add get-status to the ATA RAID subsystem.Søren Schmidt2002-04-022-11/+61
| | | | Notes: svn path=/head/; revision=93662
* Move savecore back to the MI list so that it compiles for otherMarcel Moolenaar2002-04-021-6/+2
| | | | | | | archs than alpha and i386. Notes: svn path=/head/; revision=93651
* WARNS fixes.Maxim Konovalov2002-04-021-3/+3
| | | | | | | | | | Submitted by: kris Reviewed by: bde Approved by: ru MFC after: 2 weeks Notes: svn path=/head/; revision=93643
* style(9) cleanup.Maxim Konovalov2002-04-021-57/+53
| | | | | | | | | | Submitted by: kris (an early version of this patch) Reviewed by: bde Approved by: ru MFC after: 2 weeks Notes: svn path=/head/; revision=93638
* Add long long casts so that this compiles on archs with 64-bit longs.John Baldwin2002-04-011-4/+4
| | | | | | | Pointy-hat to: phk Notes: svn path=/head/; revision=93562
* Duh, savecore is called savecore.Poul-Henning Kamp2002-04-011-1/+1
| | | | Notes: svn path=/head/; revision=93515
* Fix a bzero length calculation. sizeof(struct ccb_getdev) should have beenKenneth D. Merry2002-04-011-1/+1
| | | | | | | | | sizeof(struct ccb_getdevstats). MFC after: 3 days Notes: svn path=/head/; revision=93501
* Savecore:Poul-Henning Kamp2002-03-312-754/+177
| | | | | | | | | | | | | Commandline compatible with the previous savecore unless you specify any options, none of them are implemented (yet). Scans all devices marked "dump" or "swap" for dump header signatures and saves dumps off under a name which is a MD5 hash of the header information. This should give unique filenames. A *.info file contains ascii version of the header information. Notes: svn path=/head/; revision=93492
* Here follows the new kernel dumping infrastructure.Poul-Henning Kamp2002-03-312-37/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Caveats: The new savecore program is not complete in the sense that it emulates enough of the old savecores features to do the job, but implements none of the options yet. I would appreciate if a userland hacker could help me out getting savecore to do what we want it to do from a users point of view, compression, email-notification, space reservation etc etc. (send me email if you are interested). Currently, savecore will scan all devices marked as "swap" or "dump" in /etc/fstab _or_ any devices specified on the command-line. All architectures but i386 lack an implementation of dumpsys(), but looking at the i386 version it should be trivial for anybody familiar with the platform(s) to provide this function. Documentation is quite sparse at this time, more to come. Sponsored by: DARPA, NAI Labs Details: Dumpon now opens the device and uses ioctl(DIOCGKERNELDUMP) to set it to be the dumpdevice. When "off" is set, /dev/null is used. Notes: svn path=/head/; revision=93491
* Add support for getting status (fan, temp, 5V and 12V levels) fromSøren Schmidt2002-03-302-0/+19
| | | | | | | | | Promise Superswap enclosures. Sponsored by: Advanis Notes: svn path=/head/; revision=93433
* Get this to WARNS=4 and closer to style(9) at a sacrifice inPoul-Henning Kamp2002-03-292-300/+102
| | | | | | | linelength. Notes: svn path=/head/; revision=93394
* Turn "ether" address family into a generic "link" familyRuslan Ermilov2002-03-272-72/+56
| | | | | | | | | | | | that could be used to set/get arbitrary length link level addresses. Alias "lladdr" parameter and "ether" family to the new "link" family for backward compatibility. PR: bin/31476 MFC after: 1 week Notes: svn path=/head/; revision=93281
* Add support for creating/deleting ATA RAID'sSøren Schmidt2002-03-272-82/+161
| | | | | | | Sponsored by: Advanis Notes: svn path=/head/; revision=93277
* Add missing \ before an 'n' to get the proper newline when runningWarner Losh2002-03-271-1/+1
| | | | | | | fdisk -s for each partition. Notes: svn path=/head/; revision=93266
* Fix problem in macro definition breaking compiles with -DDEBUG.Pierre Beyssac2002-03-261-1/+1
| | | | | | | | PR: bin/35773 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Notes: svn path=/head/; revision=93233
* add extra include path to get .h files from source being used to compileDarren Reed2002-03-261-0/+1
| | | | Notes: svn path=/head/; revision=93202
* Add forgotten flag in flag lists.Pierre Beyssac2002-03-251-2/+2
| | | | | | | | PR: docs/36267 (partial) Submitted by: Thomas Quinot <thomas.cuivre.fr.eu.org> Notes: svn path=/head/; revision=93132
* Replace __progname with the documented, more acceptable and functionally ↵Mark Murray2002-03-242-10/+9
| | | | | | | identical getprogname(3). Notes: svn path=/head/; revision=93103
* Replace __progname with the functionally identical but moreMark Murray2002-03-242-19/+14
| | | | | | | acceptable (documented) getprogname(3). Notes: svn path=/head/; revision=93102
* Add option -n to i386 boot2 to disallow boot interruption by keypress.Pierre Beyssac2002-03-231-1/+5
| | | | | | | | | | PR: i386/36016 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Reviewed by: rnordier MFC after: 1 week Notes: svn path=/head/; revision=93044
* Style(9) local vars after 'register' removal.David E. O'Brien2002-03-231-33/+41
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=93035
* o remove __PWarner Losh2002-03-2113-123/+122
| | | | | | | o remove main prototype Notes: svn path=/head/; revision=92883
* o __P removedWarner Losh2002-03-2121-130/+129
| | | | | | | o main prototype removed Notes: svn path=/head/; revision=92882
* o __P removal.Warner Losh2002-03-214-79/+46
| | | | | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__ Notes: svn path=/head/; revision=92881
* Revert 1.20:Mike Barcroft2002-03-211-2/+0
| | | | | | | | Memory disks may be used for other purposes besides newfs(8), so it isn't helpful to require the minimum size meet newfs(8)'s criteria. Notes: svn path=/head/; revision=92874
* Replaced hacks in sbin/Makefile,v 1.99 and usr.sbin/Makefile,v 1.217Ruslan Ermilov2002-03-211-4/+8
| | | | | | | | | with the NO_IPFILTER make.conf(5) knob. (So that we can "make the-rest-of-the-world" again.) Notes: svn path=/head/; revision=92868
* Provide a proper error message in mdconfig(8) when a filesystem is tooMike Barcroft2002-03-211-0/+2
| | | | | | | small, instead of a less meaningful error in newfs(8). Notes: svn path=/head/; revision=92866
* o __P removedWarner Losh2002-03-2038-1073/+501
| | | | | | | | | | o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype Notes: svn path=/head/; revision=92839
* o remove __PWarner Losh2002-03-201-160/+64
| | | | | | | | o Use ansi function definitions o unifdef -D__STDC__ Notes: svn path=/head/; revision=92838
* o remove __PWarner Losh2002-03-2016-694/+376
| | | | | | | | o Use ANSI function definitions o unifdef -D__STDC__ Notes: svn path=/head/; revision=92837
* Remove 'register' keyword.David E. O'Brien2002-03-2043-328/+328
| | | | | | | | | It does not help modern compilers, and some may take some hit from it. (I also found several functions that listed *every* of its 10 local vars with "register" -- just how many free registers do people think machines have?) Notes: svn path=/head/; revision=92806
* * add extra -I path to get the "matching" header files. (and split the oneDarren Reed2002-03-201-1/+3
| | | | | | | line up into three to make it more readable) Notes: svn path=/head/; revision=92775
* * add extra -I path to get the "matching" header files.Darren Reed2002-03-201-0/+1
| | | | Notes: svn path=/head/; revision=92774
* * need to compile printnat.c now that this function is in a separate .c fileDarren Reed2002-03-201-1/+2
| | | | | | | * add extra -I path to get the "matching" header files. Notes: svn path=/head/; revision=92773
* Swing the axe and remove some archaic features from newfs which modernPoul-Henning Kamp2002-03-204-339/+52
| | | | | | | | | | | | | | | | | | | | | | diskdrives do neither need nor want: -O create a 4.3BSD format filesystem -d rotational delay between contiguous blocks -k sector 0 skew, per track -l hardware sector interleave -n number of distinguished rotational positions -p spare sectors per track -r revolutions/minute -t tracks/cylinder -x spare sectors per cylinder No change in the produced filesystem image unless one or more of these options were used. Approved by: mckusick Notes: svn path=/head/; revision=92763
* Kill registerWarner Losh2002-03-202-4/+4
| | | | Notes: svn path=/head/; revision=92753
* "-" now sends output to stdout.Robert Watson2002-03-201-0/+1
| | | | Notes: svn path=/head/; revision=92744
* Teach growfs's dbg_open() that a filename of "-" for output means toRobert Watson2002-03-201-1/+4
| | | | | | | | | | | | open "/dev/stdout". This doesn't actually affect growfs, but does affect ffsinfo, permitting ffsinfo to output to the shell's stdout rather than requiring it be dumped to a file or explicitly pointed at a special device. Reviewed by: peter Notes: svn path=/head/; revision=92743
* Remove ipnat until the committer can actually test his changes.David E. O'Brien2002-03-201-1/+0
| | | | Notes: svn path=/head/; revision=92740
* Hopefully fix make world.Alfred Perlstein2002-03-191-1/+1
| | | | | | | Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=92729
* Add the undocumented -R option to disable randomness for regression-testing.Poul-Henning Kamp2002-03-197-3/+71
| | | | | | | | | | | Add a couple of simple regression tests accessible with "make test", they depend on the md(4) driver. FYI I have also tried running the test against a week old newfs and it passed. Notes: svn path=/head/; revision=92722
* Further cleanups.Poul-Henning Kamp2002-03-193-58/+96
| | | | Notes: svn path=/head/; revision=92717
* Remove stray registerWarner Losh2002-03-192-2/+2
| | | | Notes: svn path=/head/; revision=92715
* De-__P the man page, but I suspect that we need to freshly importWarner Losh2002-03-192-26/+26
| | | | | | | sys/disklabel.h since the one in here looks a little crunchy. Notes: svn path=/head/; revision=92714
* Replace a number of similar `for' loops with a new `ilog2()' functionIan Dowse2002-03-191-10/+17
| | | | | | | that computes the base-2 log of a power of 2. Notes: svn path=/head/; revision=92712
* Complete the ANSIfication of newfs by converting function declarationsIan Dowse2002-03-192-74/+17
| | | | | | | to C89 style. Notes: svn path=/head/; revision=92711
* The FSIRAND code is always compiled in, and it is unlikely thatIan Dowse2002-03-192-20/+1
| | | | | | | | | anyone needs a newfs without it. Remove the #ifdef's from around the code and the -DFSIRAND from the Makefile. Also remove redundant declarations of random() and srandomdev(). Notes: svn path=/head/; revision=92710
* Remove the ancient STANDALONE code.Ian Dowse2002-03-192-119/+1
| | | | | | | Approved by: phk Notes: svn path=/head/; revision=92709
* both ipnat and ipfstat now use libkvm rather than their own home-rolledDarren Reed2002-03-192-2/+5
| | | | | | | | kmem accessors, allowing them to be used with crash dumps as well as live systems, now. Notes: svn path=/head/; revision=92701
* o Remove __PWarner Losh2002-03-191-5/+3
| | | | | | | | o Use ANSI function definitions o mark usage() as __dead2 Notes: svn path=/head/; revision=92697