summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2007-06-02do not shadow globals (in if_exists)Henning Brauer
2007-06-02on pcap error, check wether the interface went away and exit if it did.Henning Brauer
spinning and flooding syslog in that case was not so nice.
2007-06-02installboot not just for i386; ok krwJason McIntyre
2007-06-02safer snprintf construct with more paranoid length calculationPeter Valchev
ok millert
2007-06-01ufs1_daddr_t cleanup, okay otto@Pedro Martelletto
2007-06-01daddr64_t changes; not fssize is still an int; ok pedro@Otto Moerbeek
2007-06-01add RAID to the list of partition types for which we do not prompt for aTodd T. Fries
filesystem ok krw@
2007-06-01ufs_daddr_t is a dead type. growfs is the only program that uses it, yetTheo de Raadt
it is ffs1-aware only. therefore all the types are on disk, and thus, they are actually int32_t. ok pedro
2007-06-01Don't use cg.cg_niblk but fs.fs_ipg; the former has no meaning any more.Otto Moerbeek
Fixes PR 5494; with pedro@; ok pedro@ millert@
2007-06-01Let conf_trans_node() set all parts of the node, so that we don'tMoritz Jodeit
have to expose the node to the outside. Without this, conf_trans_node() created a node, linked it into the conf_trans queue and returned it to the caller. If something failed in one of the callers, the half-initialized node would still be linked in the queue and could get accessed later on. ok hshoexer@
2007-06-01really goneTheo de Raadt
2007-06-01convert ufs2_daddr_t -> daddr64_t for greater clarity; ok pedro otto thibTheo de Raadt
2007-06-01remove crufty adosfs. everytime we try to change a vfs layer interface,Theo de Raadt
adosfs has the issue and in an entirely different way. noone uses this code so this is hte best way to handle the problem diff from pedro who went to sleep but we need to move ahead; ok thib
2007-06-01since real boottime vnd support would have caused many problems,Alexander von Gernler
do a poor man's (but yet working) solution and provide the user with instructions to enhance fstab(5) and rc.local(8) with own boot time support. tweaks and ok jmc@
2007-06-01support for softraid level 'c'.Ted Unangst
2007-05-31fix a funny memory miscalculation bug in options parsingPeter Valchev
ok henning otto theo
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31typo, ok tedu@Alexander von Gernler
2007-05-31Cope with new ioctl interface (use pfsync_state instead of pf_state)Ryan Thomas McBride
ok henning@ toby@ pyr@
2007-05-30some i missed...Jason McIntyre
- consistent text for STANDARDS - note which options are extensions to POSIX
2007-05-30Unbreak route.c after TOKEN removal by henning (bad henning, no cookie)Ryan Thomas McBride
looks ok otto@
2007-05-29remove the ztsscale sysctl; ok deraadt@Robert Nagy
2007-05-29Updated disklabel format to support larger disks and partitions. WeOtto Moerbeek
free room in struct partition by packing fragment size and fragments/block more tighlty and use the resulting space to make offset and size 48 bits. For the disk part we use spare fields in struct disklabel. Kernel converts in-mem copy of the on-disk label if needed, disklabel(8) writes new version. We are careful to only change fields not used by bootloaders. Conception of basic scheme by deraadt. ok deraadt@ krw@
2007-05-28Make disk assembly smarter and add two qualifiers to it:Marco Peereboom
1) noautoassemble; when set the softraid volume will not be assembled during autoconf. 2) force; when set it will overwrite metadata on disk While writing this I ran into 3 bugs that were fixed along the way 1) bcopy in sr_read_meta was copying data to the wrong pointer 2) in sr_read_meta the wrong metadata was coppied into the chunk 3) sr_free_discipline was freing a pointer that wasn't malloc'd ok dlg
2007-05-27Simplify symlink creation. ok grunkAlexander Bluhm
2007-05-27cleanup the nfssvc() system call.Thordur I. Bjornsson
* Remove alot of dead kerberos code like the options for NFSSVC_AUTHIN and NFSSVC_AUTHFAIL wich where originally to get the kerberos auth info into the kernel. (that hasnt worked for long, if ever.) Also remove some helper functions and associated goo, however theres still alot of it left. * Remove NFSSVC_BIOD, biod's where replaced with kernel threads a long time ago. * NFSSVC_MNTD wich was is NQNFS leftover. Update the man page and nfsd(8). nfssvc(2) besides being special has only one user in the tree nfsd(8), therefore no library bumps are needed. (discussed with deraadt@). ok beck@, "go a head" deraadt@ Tested by ckuethe@
2007-05-27Complain to stderr if cloned pflog interface doesn't exist. Previously only ↵Jason Dixon
logged LOG_ERR to syslog. ok henning@
2007-05-27Don't include sys/mbuf.h it is not needed. OK mcbride@ msf@Claudio Jeker
2007-05-27fsck_vnd just serves no real purpose, so remove it.Alexander von Gernler
enabling fs_passno in fstab for vnd-type filesystems will lead to an error, just like for the other filesystem types where fsck_something does not exist discussed with and ok deraadt@
2007-05-27No need to shutdown(2) DGRAM socket before closing it. Found while lookingClaudio Jeker
at the code with jdixon@
2007-05-27fix .Xr's to mount_vnd(8)Alexander von Gernler
suggested and ok jmc@
2007-05-27sync usage(); ok grunkJason McIntyre
2007-05-27sync argument names; ok grunkJason McIntyre
2007-05-27Prevent buf[-1] access if strlen(buf) == 0.Ray Lai
Simplify some if-else statements while here. OK grunk@ and tedu@.
2007-05-26+.Xr mount_vnd 8 ,Jason McIntyre
2007-05-26tweaks;Jason McIntyre
2007-05-26link mount_vnd to the build, and remove usr.sbin/vnconfig, which is nowAlexander von Gernler
completely contained at the new place. provide a legacy link to /usr/sbin to go away after next release. ok deraadt@
2007-05-26improve the EXAMPLES for fstab entries of mount_vnd(8):Alexander von Gernler
- reduce the number of used svnd devs to the default number of an OpenBSD System - make it more obvious that vnd's w/ different levels or no encryption can be specified. diff from Okan Demirmen, thanks
2007-05-26make mount_vnd a C program by pulling in the vnconfig(8) source and addingAlexander von Gernler
a mount_vnd(8) interface to it. merge manpages as well. next goal is to have this here completely replace the usr.sbin/vnconfig directory. prodded by many, manpage discussion and help jmc@, "go ahead" deraadt@
2007-05-26When the SIOCGIFMEDIA ioctl fails, don't report a problem withKenneth R Westerback
'SGIOCGIFMEDIA'. Noticed by Stuart Henderson.
2007-05-24Make 'disklabel -w -d <disk>' work. i.e. write the default disklabelKenneth R Westerback
onto disk. More elegant than "dd if=/dev/zero of= ..." to clear out an old disklabel. Think of it as treating the spoofed disklabel created by readdisklabel() like an automatically generated disktab entry. Makes some install scripts (macppc to start) easier.
2007-05-23Remove all vnode dependencies so that we can bootstrap softraid volumes.Marco Peereboom
Code from tedu. Replace all kernel string magic with dev_t passed in from bioctl. Suggestion from beck and tedu. Help from miod. Fix chunk crc. ok tedu
2007-05-23Get rid of some obsolete exampels.Hans-Joerg Hoexer
ok and prodding @jmc
2007-05-21small cleanups:Constantine A. Murenin
* use NULL instead of 0 for pointers, as per style(9) * wrap a long for-loop line in sysctl_malloc() * fix -Wall complaint in print_sensor() ok otto@
2007-05-21Add ffs2 support. Adapted from the ufs2 changes in FreeBSD and NetBSD.Todd C. Miller
2007-05-21Add ffs2 support; some parts adapted from ffs2 dump changes in FreeBSD.Todd C. Miller
2007-05-21Use SBLOCKSEARCH[] to find the superblock. OK pedro@Todd C. Miller
2007-05-21options w/o args come before options which take args;Jason McIntyre
2007-05-20add a -f option to allow specifing an alternativeRobert Nagy
control device; "put it in" miod@
2007-05-20Update usage wrt -c option when called as mount_mfs.Todd C. Miller