summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* bbsize and sbsize cannot ever be trusted from the disklabel, inphk2002-04-073-53/+4
| | | | | | | | | particular as there may not be one. Remove #if 0'ed code which might mislead people to think otherwise. unifdef -ULOSTDIR, fsck can make lost+found on the fly. Sponsored by: DARPA & NAI Labs
* Add code to try the nmount(2) syscall when mount(2) failed withmux2002-04-071-1/+22
| | | | | | | EOPNOTSUPP. This will make things less painful when I will commit the conversion of devfs, fdescfs and pseudofs to nmount. Reviewed by: phk
* Get us to WARNS=2 with a bit of constification and some printf fiddling.phk2002-04-074-52/+38
| | | | | | | Pick up the c-partitions magicness from sys/disklabel.h instead of defining our own magicness for it, remove trivial comment. Sponsored by: DARPA and NAI Labs.
* Nuke a totally pointless optional debug optionphk2002-04-072-30/+0
| | | | Sponsored by: DARPA and NAI Labs.
* When checking the alternate superblock, we used to copy any fieldsmckusick2002-04-071-61/+25
| | | | | | | | | | | | | | that might have changed, then did a byte-by-byte comparison with the alternate. If any unused fields got used, they had to be added to the exception list. Such changes caused too many false alarms. So, I have changed the comparison algorithm to compare a selected set of fields that are not expected to change. This new algorithm causes far fewer false hits and still does a good job of detecting problems when they have really occurred. In particular, this change should ease the transition to kernels supporting UFS2 which make some significant changes to the superblock. Sponsored by: DARPA, NAI Labs
* Sync with the new endianness in ata.hsos2002-04-051-7/+19
|
* Be able to print ATA133 mode.sos2002-04-051-1/+1
|
* Remove remaining traces of d_boot[01]phk2002-04-044-42/+2
|
* Fixed some style bugs in axings. Whitespace before __P was not axed whenbde2002-04-041-6/+6
| | | | | __P was axed. The ordering of several things was bogotified by axing ifdefs.
* Fixed some English errors in previous commit.bde2002-04-041-14/+15
| | | | | Fixed some style bugs in the removal of __P(()). Whitespace before "__P((" was not removed.
* Add more DWIM/autoadjustment and less evil style(9) banned exit(2) codes.phk2002-04-031-15/+17
| | | | | | Add some missing statics. Sponsored by: DARPA & NAI Labs.
* Unifdef -DCOMPATphk2002-04-031-22/+0
|
* Kill only usage of the undocumnted and unuse d_boot[01] fields ofphk2002-04-032-56/+0
| | | | | | struct disklabel. Sponsored by: DARPA & NAI Labs.
* Make the kernel dump header endianness invariant by always dumpingmarcel2002-04-031-11/+15
| | | | | | | | | in dump byte order (=network byte order). Swap blocksize and dumptime to avoid extraneous padding on 64-bit architectures. Use CTASSERT instead of runtime checks to make sure the header is 512 bytes large. Various style(9) fixes. Reviewed by: phk, bde, mike
* Add get-status to the ATA RAID subsystem.sos2002-04-022-11/+61
|
* Move savecore back to the MI list so that it compiles for othermarcel2002-04-021-6/+2
| | | | archs than alpha and i386.
* WARNS fixes.maxim2002-04-021-3/+3
| | | | | | | Submitted by: kris Reviewed by: bde Approved by: ru MFC after: 2 weeks
* style(9) cleanup.maxim2002-04-021-57/+53
| | | | | | | Submitted by: kris (an early version of this patch) Reviewed by: bde Approved by: ru MFC after: 2 weeks
* Add long long casts so that this compiles on archs with 64-bit longs.jhb2002-04-011-4/+4
| | | | Pointy-hat to: phk
* Duh, savecore is called savecore.phk2002-04-011-1/+1
|
* Fix a bzero length calculation. sizeof(struct ccb_getdev) should have beenken2002-04-011-1/+1
| | | | | | sizeof(struct ccb_getdevstats). MFC after: 3 days
* Savecore:phk2002-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.
* Here follows the new kernel dumping infrastructure.phk2002-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.
* Add support for getting status (fan, temp, 5V and 12V levels) fromsos2002-03-302-0/+19
| | | | | | Promise Superswap enclosures. Sponsored by: Advanis
* Get this to WARNS=4 and closer to style(9) at a sacrifice inphk2002-03-292-300/+102
| | | | linelength.
* Turn "ether" address family into a generic "link" familyru2002-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
* Add support for creating/deleting ATA RAID'ssos2002-03-272-82/+161
| | | | Sponsored by: Advanis
* Add missing \ before an 'n' to get the proper newline when runningimp2002-03-271-1/+1
| | | | fdisk -s for each partition.
* Fix problem in macro definition breaking compiles with -DDEBUG.pb2002-03-261-1/+1
| | | | | PR: bin/35773 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* add extra include path to get .h files from source being used to compiledarrenr2002-03-261-0/+1
|
* Add forgotten flag in flag lists.pb2002-03-251-2/+2
| | | | | PR: docs/36267 (partial) Submitted by: Thomas Quinot <thomas.cuivre.fr.eu.org>
* Replace __progname with the documented, more acceptable and functionally ↵markm2002-03-242-10/+9
| | | | identical getprogname(3).
* Replace __progname with the functionally identical but moremarkm2002-03-242-19/+14
| | | | acceptable (documented) getprogname(3).
* Add option -n to i386 boot2 to disallow boot interruption by keypress.pb2002-03-231-1/+5
| | | | | | | PR: i386/36016 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Reviewed by: rnordier MFC after: 1 week
* Style(9) local vars after 'register' removal.obrien2002-03-231-33/+41
| | | | Requested by: bde
* o remove __Pimp2002-03-2113-123/+122
| | | | o remove main prototype
* o __P removedimp2002-03-2121-130/+129
| | | | o main prototype removed
* o __P removal.imp2002-03-214-79/+46
| | | | | | o ansi function definitions. o main prototype removal o unifdef __STDC__
* Revert 1.20:mike2002-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.
* Replaced hacks in sbin/Makefile,v 1.99 and usr.sbin/Makefile,v 1.217ru2002-03-211-4/+8
| | | | | | with the NO_IPFILTER make.conf(5) knob. (So that we can "make the-rest-of-the-world" again.)
* Provide a proper error message in mdconfig(8) when a filesystem is toomike2002-03-211-0/+2
| | | | small, instead of a less meaningful error in newfs(8).
* o __P removedimp2002-03-2038-1073/+501
| | | | | | | o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
* o remove __Pimp2002-03-201-160/+64
| | | | | o Use ansi function definitions o unifdef -D__STDC__
* o remove __Pimp2002-03-2016-694/+376
| | | | | o Use ANSI function definitions o unifdef -D__STDC__
* Remove 'register' keyword.obrien2002-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?)
* * add extra -I path to get the "matching" header files. (and split the onedarrenr2002-03-201-1/+3
| | | | line up into three to make it more readable)
* * add extra -I path to get the "matching" header files.darrenr2002-03-201-0/+1
|
* * need to compile printnat.c now that this function is in a separate .c filedarrenr2002-03-201-1/+2
| | | | * add extra -I path to get the "matching" header files.
* Swing the axe and remove some archaic features from newfs which modernphk2002-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
* Kill registerimp2002-03-202-4/+4
|
OpenPOWER on IntegriCloud