summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* EFI GPT partitions use 'p' as a slice seperator. eg: da0p1 or da0p217.peter2002-10-041-1/+1
| | | | (There is a theoretical limit of 16384 partitions)
* Cast malloc() assignments.mdodd2002-10-021-6/+6
|
* Add an -o option to exit after receiving one reply. This can be useddd2002-10-022-5/+12
| | | | | | | | to test whether a link is live. PR: 38573 Submitted by: David Taylor <davidt@yadt.co.uk> Obtained from: NetBSD
* Don't crash when the user feeds us nonesense in the form:dd2002-10-021-3/+4
| | | | | | | ifconfig IF ether WHATEVER -alias PR: 42544 Submitted by: Mike Makonnen <makonnen@pacbell.net>
* Remove a comma trailing an if clause.phk2002-10-011-1/+1
| | | | | | According to Kirk: "Luckily, the statement is usually true". Spotted by: FlexeLint
* Changed "file system" back to "filesystem" in the usage message. Englishbde2002-10-011-3/+3
| | | | | | | | rules don't apply to tokens that are supposed to represent single args. This was only fixed in the man page. Fixed other differences between the man page and the usage message (1 formatting bug and 1 syntax bug).
* Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:phk2002-10-013-0/+3
| | | | | | | | | | | | | | | | Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
* - bzero() allocations.mdodd2002-09-301-1/+38
| | | | - check for malloc() failures.
* Turn warnings back on.mdodd2002-09-301-1/+0
|
* Add the "Monitor" interface flag.phk2002-09-272-0/+13
| | | | | | | | | | Setting this flag on an ethernet interface blocks transmission of packets and discards incoming packets after BPF processing. This is useful if you want to monitor network trafic but not interact with the network in question. Sponsored by: http://www.babeltech.dk
* Give up on a tty if opening it's special file returns ENOENT like we do forjhb2002-09-271-1/+1
| | | | | | ENXIO. Glanced at by: imp, gallatin
* Don't show disklabel in the examples, it is not necessary.phk2002-09-261-3/+2
|
* Do not dump core on 'ipfw add unreach': handling null strings inmaxim2002-09-251-0/+2
| | | | | | | | fill_reject_code(). Please note ipfw/ipfw2.c is not affected. PR: bin/42304 Submitted by: Andy@wantpackets.com MFC after: 1 day
* Use the standardized CHAR_BIT constant instead of NBBY in userland.mike2002-09-2521-30/+54
|
* Add support to fsck_ffs to account for storage for extendedmckusick2002-09-241-1/+19
| | | | | | attributes. Sponsored by: DARPA & NAI Labs.
* o Fix a typo.maxim2002-09-221-3/+3
| | | | | | | | o Remove EOL spaces. Submitted by: Harold Gutch <logix@foobar.franken.de> (typo patch) Approved by: luigi MFC after: 3 days
* Don't disklabel(8) the md(4) device, it is not needed, and we don't wantphk2002-09-223-22/+3
| | | | | | to propagete BSD disklabels to architectures not already so polluted. Sponsored by: DARPA & NAI Labs.
* Failure to rewrite the disklabel should not be fatal.phk2002-09-221-4/+2
| | | | Sponsored by: DARPA & NAI Labs.
* Construct new disklabels based on the medias stated parameters inphk2002-09-202-40/+94
| | | | | | | userland, rather than expect all possible GEOMetries to know about BSD disklabels. Sponsored by: DARPA & NAI Labs
* Straighten out get_params().phk2002-09-201-33/+34
| | | | Sponsored by: DARPA & NAI Labs.
* Initiate deorbit burn for the i386-only a.out related support. Moves arepeter2002-09-171-9/+10
| | | | | | | | | | | | | | | under way to move the remnants of the a.out toolchain to ports. As the comment in src/Makefile said, this stuff is deprecated and one should not expect this to remain beyond 4.0-REL. It has already lasted WAY beyond that. Notable exceptions: gcc - I have not touched the a.out generation stuff there. ldd/ldconfig - still have some code to interface with a.out rtld. old as/ld/etc - I have not removed these yet, pending their move to ports. some includes - necessary for ldd/ldconfig for now. Tested on: i386 (extensively), alpha
* Don't depend on <sys/types.h> pollution in <fcntl.h>. Sort includes.mike2002-09-161-8/+11
|
* I forgot fsdb was still sharing files with fsck.phk2002-09-161-1/+1
|
* Add a source file where EXTATTR checks will happen and hook it in evenphk2002-09-164-2/+93
| | | | | | if it doesn't do anything yet. Sponsored by: DARPA & NAI Labs.
* Don't depend on <sys/types.h> pollution in <fcntl.h>. Sort includes.mike2002-09-161-4/+6
|
* Try to pick up disk geometry with specific DIOC* ioctls, rather thanphk2002-09-151-1/+21
| | | | | | expecting a bogo-disklabel to contain them, if possible. This makes fdisk work with GEOM.
* Removed a debugging printf() left here in peter'smux2002-09-141-1/+0
| | | | | | last commit. Spotted by: kris
* Use the proper fields for security.sos2002-09-121-2/+2
| | | | PR: 41870
* Store the port number in "fwd" rules in host format, same as ipfw1luigi2002-09-121-2/+2
| | | | | | | | | | | has always done. Technically, this is the wrong format, but it reduces the diffs in -stable. Someday, when we get rid of ipfw1, I will put the port number in the proper format both in kernel and userland. MFC after: 3 days (with re@ permission)
* Commit "unrelated style fixes" part of Bruce's patch (regardingpeter2002-09-111-5/+5
| | | | | | bcopy/memcpy) seperately. Submitted by: bde
* Modify previous commit to solve the real problem that made gcc thinkpeter2002-09-111-5/+5
| | | | | | | the timestamp was aligned. ie: Use a void * instead of struct timeval * which gcc assumes will be aligned. Go back to memcpy(). Submitted by: bde
* In reference to previous commit: use err(3).nectar2002-09-091-4/+2
| | | | Noticed by: bde
* Back out previous commit. I was a bit overzealous: the fd_set size isnectar2002-09-091-2/+0
| | | | calculated dynamically here.
* Check for FD_SET overrun.nectar2002-09-091-0/+2
|
* Check for FD_SET overrun.nectar2002-09-091-0/+4
|
* Typo: s/o packet/on packet/blackend2002-09-081-1/+1
| | | | | PR: docs/42543 Submitted by: Michael Lyngbøl <lyngbol@bifrost.lyngbol.dk>
* Split cam_argmask and move "commands" into cam_cmdmask. This addressesmdodd2002-09-081-94/+102
| | | | | | | the issue of not having any free bits left for additional commands. Approved by: ken MFC after: 4 weeks
* Bandaid for mount_nfs segfaulting with the more obscure mount optionspeter2002-09-061-22/+34
| | | | | | | | | | | | in /etc/fstab. This isn't a real fix though and I'm still not sure why it started failing. mount(8) breaks up the nfs args into seperate repeated '-o option=value' arguments. But, the altflags variable that we use to track things is incrementally built up each time we see the next option and shows us the cumulative set of flags, not just the flag that we are currently looking at. As a result, the strstr hack for looking up flags in a giant -o opt=val,opt=val, etc string was failing and causing a segfault. I do not know what changed recently that caused this to suddenly break, but the code has been rather bogus for some time.
* Add 'camcontrol load' as a complement to 'camcontrol eject'.mdodd2002-09-062-1/+11
| | | | | Approved by: ken MFC after: 4 weeks
* Removed vestiges of the -a and -d options.bde2002-09-061-5/+3
| | | | Fixed other bugs in the usage message so that it matches the man page.
* Remove the -a maxcontig option, the kernel doesn't inspect fs_maxcontigphk2002-09-062-27/+3
| | | | | | anymore. Sponsored by: DARPA & NAI Labs.
* use 'file system superblock' for the error message. This will match othertrhodes2002-08-311-1/+1
| | | | | | disk utilities. Discussed with: bde
* Mention that fdisk(8) should be used to grow the containing slicekeramida2002-08-291-0/+6
| | | | | | | before growing partitions with growfs(8), if necessary. PR: docs/42148 Submitted by: Chris S.J. Peron <maneo@bsdpro.com>
* Add the -A flag to the usage line.iedowse2002-08-271-1/+1
| | | | | Submitted by: Yutaka KAWASE <yutaka@mailhost.net> MFC after: 3 days
* Fix some 'SYNOPSIS' and 'usage' messages.trhodes2002-08-278-10/+10
|
* Fix Synopsistrhodes2002-08-261-1/+1
|
* Unbreak the -c option by not using connect(2) for mount_nfs'siedowse2002-08-261-1/+2
| | | | | | | communication with the remote NFS server if this flag is specified. PR: bin/42003 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Print a more realistic usage message 'special_device' 'inode_number'. Thistrhodes2002-08-261-2/+2
| | | | | | matches the synopsis given in the manual page. MFC after: 3 days
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-257-18/+20
|
* Check if a host argument is a IPv6 presentation format address beforecjc2002-08-251-6/+6
| | | | | | | going to gethostbyname2(3). PR: bin/31632 MFC after: 3 days
OpenPOWER on IntegriCloud