summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Addition style(9) change.obrien2007-11-201-3/+3
|
* style(9)obrien2007-11-201-95/+96
|
* Add -o option to match ping(8)dd2007-11-202-5/+12
| | | | | Reviewed by: dwmalone, maxim MFC after: 2 weeks
* Use an intermediate pointer to avoid strict alias check warningsjb2007-11-201-2/+3
| | | | | on gcc 4.2. This is required for tinderbox which doesn't have -f-no-strict-aliasing in it's custom CFLAGS.
* Reduce the WARNS level across the board due to a warning that occursjb2007-11-191-1/+3
| | | | on at least arm and sparc64. i386/pc98, ia64 and amd64 are all OK.
* o Fix Dd format.maxim2007-11-181-1/+1
| | | | Pointed out by: ru
* This makefile builds contrib code, so I won't try to fix all thejb2007-11-181-0/+2
| | | | casts from pointer to int here.
* Fix signed/unsigned comparison compiler warning.jb2007-11-181-2/+2
|
* Use a cast that doesn't create a compiler warning.jb2007-11-181-2/+2
|
* - New sysctl variable: net.inet.ip.dummynet.io_fastoleg2007-11-171-1/+19
| | | | | | | | | | | | | | If it is set to zero value (default) dummynet module will try to emulate real link as close as possible (bandwidth & latency): packet will not leave pipe faster than it should be on real link with given bandwidth. (This is original behaviour of dummynet which was altered in previous commit) If it is set to non-zero value only bandwidth is enforced: packet's latency can be lower comparing to real link with given bandwidth. - Document recently introduced dummynet(4) sysctl variables. Requested by: luigi, julian MFC after: 3 month
* o Mask maximum file permissions we get from mount_ntfs -mmaxim2007-11-171-1/+4
| | | | | | | | | with ACCESSPERMS. Document in mount_ntfs(8) only the nine low-order bits of mask are used (taken from mount_msdosfs(8)). PR: kern/114856 Submitted by: Ighighi MFC after: 1 month
* Fix exit code when using -l on a non-existent md(4) device.flz2007-11-161-3/+9
| | | | | | PR: conf/116177 Submitted by: Remi Guyomarch <rguyom@pobox.com> MFC after: 3 days
* Briefly document what the -c option of the "label" command does.ru2007-11-151-1/+3
| | | | MFC after: 3 days
* Revise the markup and apply some wordsmithing.ru2007-11-151-24/+27
| | | | | Reviewed by: pjd MFC after: 3 days
* * Expand the example descriptions, fix mdoc-bugs inkeramida2007-11-111-9/+20
| | | | | | "(-a and -t vnode are implied)" and reuse it near the cd9660 example. * Spell 'backing store' as two words.
* Instead of hardcoding md10 as the device node in the cd9660 example,keramida2007-11-091-3/+2
| | | | | | use a trick submitted by Ruslan. MFC after: 1 day
* Cleanup of userland __P usekevlo2007-11-079-84/+88
|
* Don't mask the address in inet_makenetandmask() according to what classmtm2007-11-041-1/+0
| | | | | | it appears to be in: there is also CIDR. Noticed by: tegge
* Add an option to limit the number of source MACs that can be behind a bridgethompsa2007-11-042-6/+33
| | | | | | | | interface. Once the limit is reached packets with unknown source addresses are dropped until an existing host cache entry expires or is removed. Useful to use with the STICKY cache option. Sponsored by: miniSuperHappyDevHouse NZ
* Allow building of a special rescue version of geom thatmarcel2007-11-043-4/+44
| | | | has a subset of the classes compiled-in.
* sync with vap code base; updates for 11n support and somesam2007-11-021-495/+1125
| | | | | | | general code cleanups Reviewed by: thompsa, avatar MFC after: 1 week
* minor wireless-related correctionssam2007-11-021-10/+18
| | | | MFC after: 1 week
* Don't look for GPT primary and secondary tables on a disk unless we havejhb2007-11-011-4/+10
| | | | | | | | | a valid PMBR. Without this fix, if label a disk with a GPT, then relabel it with an MBR the GPT tables are still present. If you then try to create a GPT with 'gpt create', gpt(8) will fail to open the device because the partitions in the stale GPT overlap with the slices in the MBR. MFC after: 1 week
* Fix 'gpt boot' to work on disk devices and not just plain files. Writes tojhb2007-11-011-5/+10
| | | | | | disk devices have to consist of a block of sectors. Thus, when writing gptboot to the boot partition, round the size of the gptboot file up to a sector boundary, pre-zero it, and write out the full buffer to disk.
* Document -t.obrien2007-11-011-0/+4
|
* Fix an error in bit shifting logic for network addresses. The routemtm2007-10-291-20/+24
| | | | | | | | | | | | | | | command would add incorrect routing entries if network numbers weren't fully "spelled" out according to their class. For example: # route add 128.0/16 (works) # route add 128/16 (doesn't work) # route add 193.0.0/24 (works) # route add 193/24 (doesn't work) Also, rework the way a netmask is deduced from network number if it [netmask] is not specified. Submitted by: Nuno Antunes <nuno.antunes@gmail.com> (mostly) MFC after: 1 week
* o Fix indentation. No functional changes.maxim2007-10-271-10/+10
|
* First cut at support for booting a GPT labeled disk via the BIOS bootstrapjhb2007-10-247-36/+361
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on i386 and amd64 machines. The overall process is that /boot/pmbr lives in the PMBR (similar to /boot/mbr for MBR disks) and is responsible for locating and loading /boot/gptboot. /boot/gptboot is similar to /boot/boot except that it groks GPT rather than MBR + bsdlabel. Unlike /boot/boot, /boot/gptboot lives in its own dedicated GPT partition with a new "FreeBSD boot" type. This partition does not have a fixed size in that /boot/pmbr will load the entire partition into the lower 640k. However, it is limited in that it can only be 545k. That's still a lot better than the current 7.5k limit for boot2 on MBR. gptboot mostly acts just like boot2 in that it reads /boot.config and loads up /boot/loader. Some more details: - Include uuid_equal() and uuid_is_nil() in libstand. - Add a new 'boot' command to gpt(8) which makes a GPT disk bootable using /boot/pmbr and /boot/gptboot. Note that the disk must have some free space for the boot partition. - This required exposing the backend of the 'add' function as a gpt_add_part() function to the rest of gpt(8). 'boot' uses this to create a boot partition if needed. - Don't cripple cgbase() in the UFS boot code for /boot/gptboot so that it can handle a filesystem > 1.5 TB. - /boot/gptboot has a simple loader (gptldr) that doesn't do any I/O unlike boot1 since /boot/pmbr loads all of gptboot up front. The C portion of gptboot (gptboot.c) has been repocopied from boot2.c. The primary changes are to parse the GPT to find a root filesystem and to use 64-bit disk addresses. Currently gptboot assumes that the first UFS partition on the disk is the / filesystem, but this algorithm will likely be improved in the future. - Teach the biosdisk driver in /boot/loader to understand GPT tables. GPT partitions are identified as 'disk0pX:' (e.g. disk0p2:) which is similar to the /dev names the kernel uses (e.g. /dev/ad0p2). - Add a new "freebsd-boot" alias to g_part() for the new boot UUID. MFC after: 1 month Discussed with: marcel (some things might still change, but am committing what I have so far)
* Add the full module path name to the kld_file_stat structurejb2007-10-221-2/+2
| | | | | | | | | | | | | | for kldstat(2). This allows libdtrace to determine the exact file from which a kernel module was loaded without having to guess. The kldstat(2) API is versioned with the size of the kld_file_stat structure, so this change creates version 2. Add the pathname to the verbose output of kldstat(8) too. MFC: 3 days
* Fix a last-minute, but more importantly, an untested change thatmarcel2007-10-211-1/+1
| | | | | made the previous commit non-functional: the usage string was put in the wrong field...
* Add the show command to print the partition information ala gpt(8).marcel2007-10-212-6/+205
| | | | | Update the manpage accordingly. While here, mention the MBR scheme and add a bugs section. With this commit gpt(8) can be obsoleted.
* Change IPTOS_CE to IPTOS_ECN_CE.rpaulo2007-10-191-2/+2
| | | | Approved by: njl (mentor)
* Comply with the removal of IPTOS_CE and IPTOS_ECT.rpaulo2007-10-191-2/+2
| | | | | | Discussed on freebsd-net with no objections. Approved by: njl (mentor), rwatson
* Remove stale reference to mount_std.rodrigc2007-10-191-1/+0
|
* Backout sensors framework.netchild2007-10-152-141/+0
| | | | | Requested by: phk Discussed on: cvs-all
* Added whiteout behavior option. ``-o whiteout=always'' is default modedaichi2007-10-141-0/+4
| | | | | | | | | | | (it is established practice) and ``-o whiteout=whenneeded'' is less disk-space using mode especially for resource restricted environments like embedded environments. (Contributed by Ed Schouten. Thanks) Submitted by: Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) MFC after: 1 week
* Import OpenBSD's sysctl hardware sensors framework.netchild2007-10-142-0/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * <sys/sensors.h> * HW_SENSORS definition for <sys/sysctl.h> * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin <cnst@FreeBSD.org> Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts)
* o Fix a typo in ipfw table usage example.maxim2007-10-141-1/+1
| | | | | | PR: docs/117172 Submitted by: novel MFC after: 1 week
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalobrien2007-10-091-1/+1
| | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith)
* Repo copy libpthreads to libkse.obrien2007-10-091-1/+1
| | | | | | This introduces the WITHOUT_LIBKSE nob, and changes WITHOUT_LIBPTHREADS to mean with neither threading libs. Approved by: re(kensmith)
* Fix the module name matching to the drivers present in the kernel. Previouslythompsa2007-10-041-7/+14
| | | | | | | | | | | | it would return true on a partial match where it would think the edsc module was already present by having a positive match on 'ed'. This changes it so that it compares the full string including the nul terminators. This also fixes a buffer overflow in the ifkind variable where the length of the interface name in *argv wasnt checked for size. Reviewed by: brooks Approved by: re (gnn)
* Always install libpthread.* symlinks if at least one ofru2007-10-011-2/+1
| | | | | | | | | | | | the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
* o Cosmetic: fix the issue when "ipfw(8) show" produces "not" twice:maxim2007-09-231-2/+2
| | | | | | | | | | $ ipfw -n add 1 allow layer2 not mac-type ip 00001 allow ip from any to any layer2 not not mac-type 0x0800 PR: bin/115372 Submitted by: Andrey V. Elsukov Approved by: re (hrs) MFC after: 3 weeks
* o s/filesystem/file system/g.maxim2007-09-231-2/+2
| | | | | | Pointed out by: ru Approved by: re (bmah) MFC after: 3 days
* Bring in the GEOM Virtualisation class, which allows to create huge GEOMpjd2007-09-235-1/+823
| | | | | | | | | providers with limited physical storage and add physical storage as needed. Submitted by: Ivan Voras Sponsored by: Google Summer of Code 2006 Approved by: re (kensmith)
* For arguments declared as numbers always use expand_number(3).pjd2007-09-211-3/+1
| | | | | | | | | | | | | | This allows to use numbers in human-readable form in many geom(8) utilities. Such a simple change and makes live so much nicer. Some examples: gstripe label -s 16k gmirror label -s 4k gnop create -o 1g -s 128m -S 2k gjournal label -s 2g geli label -i 128k -s 4k Approved by: re (kensmith)
* Use 'val' function argument instead of 'optarg' global variable.pjd2007-09-211-2/+2
| | | | | | | This doesn't fix any real bug, because in those tw ocases we always passed 'optarg' as 'val'. Approved by: re (kensmith)
* - Remove references to unexisting man pagesgabor2007-09-201-5/+2
| | | | | | | PR: docs/116099 Submitted by: Ben Kaduk <minimarmot@gmail.com> Approved by: re (bmah) MFC after: 3 days
* Convert fsck_ffs to nmount(). This seems to solverodrigc2007-09-192-21/+55
| | | | | | | | an intermittent problem where MNT_RELOAD fails for the root file system. Reported and tested by: phk Approved by: re (bmah)
* Fix "quotacheck -a" from core dumping on 64 bit systems by correctlympp2007-09-161-9/+10
| | | | | | | | declaring the return value used by the routines in preen.c as a pointer type, instead of "int", which was causing the pointer to be truncated. Tested by: marck Approved by: re (bmah)
OpenPOWER on IntegriCloud