summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Connect up gpt and mca subdirs for ia64peter2002-07-201-1/+3
|
* Grab a snapshot of Marcel's WIP ia64 machine check decoder.peter2002-07-202-0/+509
| | | | Obtained from: marcel
* Grab a snapshot of Marcel's gpt tool. This is still a work-in-progresspeter2002-07-2010-0/+1454
| | | | | | but is useful to have handy. EFI GPT partitions are used instead of the fdisk+disklabel combination. They are pure 64 bit LBA, are fully extensible, support up to 16383 partitons per disk, etc.
* s/${INSTALL} -c/${INSTALL} ${COPY}/ru2002-07-181-1/+1
|
* di_createtime -> di_birthtime.roberto2002-07-171-1/+1
| | | | Submitted by: Udo Schweigert <Udo.Schweigert@siemens.com>
* Change utimes to set the file creation time (for filesystems thatmckusick2002-07-174-19/+37
| | | | | | | | support creation times such as UFS2) to the value of the modification time if the value of the modification time is older than the current creation time. See utimes(2) for further details. Sponsored by: DARPA & NAI Labs.
* Introduce the DEVFS "rule" subsystem. DEVFS rules permit thedd2002-07-176-0/+949
| | | | | | | | | | | administrator to define certain properties of new devfs nodes before they become visible to the userland. Both static (e.g., /dev/speaker) and dynamic (e.g., /dev/bpf*, some removable devices) nodes are supported. Each DEVFS mount may have a different ruleset assigned to it, permitting different policies to be implemented for things like jails. Approved by: phk
* Fixed some print format errors. Avoid some warnings about possiblebde2002-07-161-4/+5
| | | | | | (but not actual) alignment problems. Both of these bugs were detected on ia64's and were fatal on ia64's due to premature setting of WARNS to 4.
* Replace extra call to "tunefs" with the equivalent of "newfs -U".rse2002-07-151-2/+1
| | | | Reviewed by: phk
* The .Nm utilitycharnier2002-07-141-7/+10
|
* A bunch of minor fixes:luigi2002-07-131-8/+11
| | | | | | | | | | | | * accept "icmptype" as an alias for "icmptypes"; * remove an extra whitespace after "log" rules; * print correctly the "limit" masks; * correct a typo in parsing dummynet arguments (this caused a coredump); * do not allow specifying both "check-state" and "limit", they are (and have always been) mutually exclusive; * remove an extra print of the rule before installing it; * make stdout buffered -- otherwise, if you log its output with syslog, you will see one entry for each printf(). Rather unpleasant.
* Remove unused variables due to libufs(3) commit. Clean up extraneous use ofjmallett2002-07-111-4/+3
| | | | semicolon at closing paren of a function body.
* Convert dumpfs(8) to libufs(3), rather than rolling local functions for ajmallett2002-07-112-39/+14
| | | | number of things.
* Add a bit of information on FFS snapshots to the mount(8) manual page.trhodes2002-07-111-0/+67
| | | | | | PR: 30139 Submitted by: Chris Knight <chris@aims.com.au? MFC after: 3 days
* Convert old style (type foo *)0 casts to NULLsdillon2002-07-111-3/+3
| | | | | PR: kern/40360 Requested by: Hiten PAndya via direct email
* Fixed 4 printf format errors that were fatal on alphas. %qd is not evenbde2002-07-111-7/+9
| | | | | suitable for printing quad_t's since it is equivalent to %lld but quad_t is unsigned long on alphas. quad_t shouldn't be used anyway.
* Uncommented WARNS=0. ipfw2.c is full of printf format errors that arebde2002-07-111-1/+1
| | | | | | | | fatal on alphas. Fixed setting of WARNS. WARNS should never be set unconditionally, since this breaks testing of different WARNS values by setting it at a higher level (e.g., on the command line).
* Replace the 'at least the amount of physical memory + 64K' with a betterdillon2002-07-091-2/+5
| | | | explanation in regards to sizing the dump device.
* Oops, the previous revision (1.22) introduced a potential alignmentiedowse2002-07-081-15/+20
| | | | | | | | | issue, since the MAXBSIZE-sized buffers are accessed as arrays of block pointers, but were declared as char[] arrays. Use a union to avoid this, which also makes a number of casts unnecessary. Pointed out by: bde Reviewed by: bde
* Fixed some world breakage caused by not updating clients when <timeconv.h>bde2002-07-081-0/+1
| | | | | was split off from <time.h>. This became fatal here when -Werror was reenabled.
* - Do not include <utmp.h> for no reason.robert2002-07-082-4/+0
| | | | - Remove unneeded utmp path constant.
* Use a fixed MAXBSIZE-size auto array instead of a static pointeriedowse2002-07-081-6/+2
| | | | | | | | | to a malloc'd buffer in dmpindir() and dirindir(). These functions recursively call themselves to handle deeper levels of indirect blocks, so a single static buffer was not suitable. Bug tracked down by: Don Lewis <dl-freebsd@catspoiler.org> Approach suggested by: bde
* Replace the use of %qd with intmax_t/%jd and fix a number of -Walliedowse2002-07-084-20/+23
| | | | | | | and -Wformat warnings: o Include timeconv.h for the time conversion functions. o Remove unused variables. o Correct a few cases where %d was used when printing longs.
* Remove nfsd and mountd from src/sbin, look for it in src/usr.sbingordon2002-07-079-4202/+0
|
* Unhook sbin/nfsd and sbin/mountd from the build. They will be moving togordon2002-07-071-2/+0
| | | | | | /usr/sbin shortly. Reviewed by: jake (mentor)
* Don't explicit kill of the process' own pid.ume2002-07-071-5/+4
| | | | | | PR: bin/38862 Submitted by: Martin Faxer <gmh003532@brfmasthugget.se> with some modification MFC after: 1 week
* Fix some printf format errors.iedowse2002-07-072-6/+6
| | | | Submitted by: Don Lewis <dl-freebsd@catspoiler.org>
* The .Nm utility.charnier2002-07-0613-67/+103
|
* The .Nm utility. Add FreeBSD Id.charnier2002-07-061-3/+6
|
* The .Nm utilitycharnier2002-07-0658-231/+344
|
* Implement the last 2-3 missing instructions for ipfw,luigi2002-07-051-124/+108
| | | | | | | | | | | | | | | | now it should support all the instructions of the old ipfw. Fix some bugs in the user interface, /sbin/ipfw. Please check this code against your rulesets, so i can fix the remaining bugs (if any, i think they will be mostly in /sbin/ipfw). Once we have done a bit of testing, this code is ready to be MFC'ed, together with a bunch of other changes (glue to ipfw, and also the removal of some global variables) which have been in -current for a couple of weeks now. MFC after: 7 days
* o Change almost all magic numbers to the appropriate constants.maxim2002-07-051-28/+32
| | | | | | | | | o Fix zero payloading, unbreak ping -s 0. o Increase socket recieve buffer, ping -s 65467 is working now. Submitted by: anti-magic sweep based on kris's patch Reviewed by: bde, silence on -audit MFC after: 2 months
* More strict ip options parsing.maxim2002-07-051-53/+44
| | | | | Reviewed by: bde (style), silence on -audit MFC after: 2 months
* Update my email address.archie2002-07-031-1/+1
|
* Apply __FBSDID(); fix local variable(names) that stomp on globalmarkm2002-07-032-46/+56
| | | | definitions; fix some const strings; fix some signedness issues.
* Apply __FBSDID(), ISOfy, fix easy warning.markm2002-07-031-6/+5
|
* Minor spelling and grammar fixes in the atacontrol(8) manual page.trhodes2002-07-021-11/+11
| | | | PR: 39393
* The new ipfw code.luigi2002-06-272-1/+3180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code makes use of variable-size kernel representation of rules (exactly the same concept of BPF instructions, as used in the BSDI's firewall), which makes firewall operation a lot faster, and the code more readable and easier to extend and debug. The interface with the rest of the system is unchanged, as witnessed by this commit. The only extra kernel files that I am touching are if_fw.h and ip_dummynet.c, which is quite tied to ipfw. In userland I only had to touch those programs which manipulate the internal representation of firewall rules). The code is almost entirely new (and I believe I have written the vast majority of those sections which were taken from the former ip_fw.c), so rather than modifying the old ip_fw.c I decided to create a new file, sys/netinet/ip_fw2.c . Same for the user interface, which is in sbin/ipfw/ipfw2.c (it still compiles to /sbin/ipfw). The old files are still there, and will be removed in due time. I have not renamed the header file because it would have required touching a one-line change to a number of kernel files. In terms of user interface, the new "ipfw" is supposed to accepts the old syntax for ipfw rules (and produce the same output with "ipfw show". Only a couple of the old options (out of some 30 of them) has not been implemented, but they will be soon. On the other hand, the new code has some very powerful extensions. First, you can put "or" connectives between match fields (and soon also between options), and write things like ipfw add allow ip from { 1.2.3.4/27 or 5.6.7.8/30 } 10-23,25,1024-3000 to any This should make rulesets slightly more compact (and lines longer!), by condensing 2 or more of the old rules into single ones. Also, as an example of how easy the rules can be extended, I have implemented an 'address set' match pattern, where you can specify an IP address in a format like this: 10.20.30.0/26{18,44,33,22,9} which will match the set of hosts listed in braces belonging to the subnet 10.20.30.0/26 . The match is done using a bitmap, so it is essentially a constant time operation requiring a handful of CPU instructions (and a very small amount of memmory -- for a full /24 subnet, the instruction only consumes 40 bytes). Again, in this commit I have focused on functionality and tried to minimize changes to the other parts of the system. Some performance improvement can be achieved with minor changes to the interface of ip_fw_chk_t. This will be done later when this code is settled. The code is meant to compile unmodified on RELENG_4 (once the PACKET_TAG_* changes have been merged), for this reason you will see #ifdef __FreeBSD_version in a couple of places. This should minimize errors when (hopefully soon) it will be time to do the MFC.
* Remove the kernel file-size limit for UFS2, so that only the limitiedowse2002-06-261-1/+4
| | | | | | | | | | imposed by the filesystem structure itself remains. With 16k blocks, the maximum file size is now just over 128TB. For now, the UFS1 file size limit is left unchanged so as to remain consistent with RELENG_4, but it too could be removed in the future. Reviewed by: mckusick
* Fix an integer overflow that causes fsck_ffs to crash when itiedowse2002-06-261-1/+1
| | | | | | encounters very large file sizes in the filesystem. Reviewed by: mckusick
* Remove old pre-TIRPC code for getting transport handles. The code thatalfred2002-06-251-5/+0
| | | | follows spams over the contents of them making the removed code useless.
* Correct default location of history file.grog2002-06-231-1/+1
| | | | Observed by: Chris Bolt <chris-lists@bolt.cx>
* Get rid of paranoia that zeros the boot block area as this hasmckusick2002-06-221-7/+0
| | | | | | | bad effect on existing bootstraps. Submitted by: Jake Burkholder <jake@locore.ca> Sponsored by: DARPA & NAI Labs.
* This commit was generated by cvs2svn to compensate for changes in r98567,obrien2002-06-212-3/+5
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Sync with NetBSD.obrien2002-06-212-3/+5
| | | | | | | | | | | | * don't whine about non-regular files. It is perfectly normal to keep a CVS or RCS directory in /etc/rc.d. * manpage tweak
* | Reduce the -I's as we don't need them all.obrien2002-06-211-1/+1
| |
* | Don't say that an umounted filesystem is required for -n. An unmountedbde2002-06-211-1/+0
| | | | | | | | | | filesystem is no more or less required for -n than for any other option. The previous commit clarified the actual requirement.
* | This commit adds basic support for the UFS2 filesystem. The UFS2mckusick2002-06-2138-1966/+2160
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | nmount'ify unionfs further by using separate options insteadmux2002-06-151-17/+17
| | | | | | | | | | | | | | of passing a flags mount options. This removes the include of sys/fs/unionfs/union.h in mount_unionfs as it should be. Reviewed by: phk
* | Convert UDF to nmount.mux2002-06-151-12/+15
| | | | | | | | Reviewed by: scottl
OpenPOWER on IntegriCloud