summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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
2007-05-19Now that the amd64 floppy and cd image -c setting have been fixed,Otto Moerbeek
recommit the -c changes. For now, we warn only if we cannot honour -c. ok millert@ deraadt@
2007-05-19kill trailing whitespace;Jason McIntyre
2007-05-19Mention the mfs and portal papers.Jonathan Gray
2007-05-19backout -c changes; they were not tested on all the media. all newfsTheo de Raadt
changes obviously *MUST* be checked against whatever weird things the floppies do to fit
2007-05-18Fix mismerge; remove statement without effect. OK otto@ pedro@Todd C. Miller
2007-05-18The unit of the -c options is fragments, so adjust man page andOtto Moerbeek
variable name; correct the loop packing more inodes into the cg: in some cases it could put more fragments into the cg than requested; give an error if the -c option cannot be honoured. ok millert@ pedro@
2007-05-18Do a bounds check to see if the inode table fits on the disk.Otto Moerbeek
Prevents a core dump found by djm@ when doing mount_mfs -s 80 (yeah, that's a tiny file system); ok millert@ pedro@
2007-05-18prettier MakefilesTheo de Raadt
2007-05-18unify the way we prefer other thingsTheo de Raadt
2007-05-15Make usage declaration match prototype; Make it __dead also.Thordur I. Bjornsson
ok otto@
2007-05-13g/c unused varsTodd C. Miller
2007-05-13Sync editit() with sendbug.Ray Lai
OK krw@.
2007-05-12remove references to mount_vnd.8 and fsck_vnd.8 as these are not hookedFelix Kronlage
into the build yet. ok jmc@
2007-05-11pass the right size arg to memset, otherwise we end up with aOtto Moerbeek
partially initialized summary info struct. ok millert@ pedro@
2007-05-11it's silly for reboot to poweroff. adapted from diff by diana eichertTed Unangst
2007-05-10Do not crash when lists include the "any" keyword. Reported byHans-Joerg Hoexer
<ralf.horstmann at gmx.net>, thanks! Slightly different fix. Also add a regression test. ok mpf@
2007-05-08Introduce the mouse.rawmode and mouse.scale fields forRobert Nagy
touchscreen calibration via ioctls. ok miod@
2007-05-07Bump crypto buffer logging (before crypto/after crypto) to level 70 fromChad Loder
level 30. This was a huge cause of log spam at level 30 and below, and is really not that useful.
2007-05-07It was possible for phase 1 negotiation to fail due to lifetime durationChad Loder
mismatch without any log message stating so. This diff makes sure that all phase 1 negotiation failures due to proposal attribute mismatch are logged. Also change these messages from LOG_NEGOTIATION debug level 70 to always be logged (not just with debug). General idea OK hshoexer, tested here in production.
2007-05-07Document "M active|passive" ui command.Joel Knight
ok jmc@ mpf@
2007-05-05Do not rely on fs_cpg; this is especially important for ffs2 whichTodd C. Miller
does not use fs_cpg at all. From FreeBSD. OK otto@
2007-05-05Add support for ffs2 and a new flag, -m, which will output aTodd C. Miller
newfs command that can be used to make a filesystem with the same settings. OK otto@
2007-05-05Kill a log message which looks like an error message but is actuallyChad Loder
both meaningless and harmless. ("nat_t_check_vendor_payload: bad size") ok todd