summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Oops, DIOCGPC98 should be DIOCSPC98.nyan2003-05-011-1/+1
|
* Merged from src/sbin/fdisk/Makefile revision 1.10.nyan2003-05-011-1/+4
|
* Merged from src/sbin/fdisk/fdisk.c revision 1.69.nyan2003-05-011-1/+6
|
* Remove VINUMDEBUG. vinum(8) always compiles with VINUMDEBUG to be ablegrog2003-05-011-1/+1
| | | | to cope with kernel modules with VINUMDEBUG.
* Add the #includes previously in individual .c files.grog2003-05-011-4/+27
| | | | Change name of history file to History to avoid name conflicts.
* Move most #includes to vext.h.grog2003-05-011-57/+38
| | | | | | | | | | | | | | | | Change name of history file to History to avoid name conflicts. Don't try to make devices unless devfs has been removed. Don't accept resetconfig command from a file. Abused by: Jens Schweikhardt <schweikh@schweikhardt.net> Remove dead code (#if 0) vinum_mirror: Don't try to create mirrors with 0 drives. Found by: mismatch between enum kw in two different files.
* Move most #includes to vext.h.grog2003-05-011-50/+33
| | | | | | | | | | | | Change name of history file to History to avoid name conflicts. Rewrite minor number decoding. Now we have only three types of object: subdisks, plexes and volumes. The encoding for plexes and subdisks no longer reflects the object to which they belong. The super devices are high-order volume numbers. This gives vastly more potential volumes (4 million instead of 256). Don't try to chown directories if they haven't been created.
* Move most #includes to vext.h.grog2003-05-011-153/+206
| | | | | | | vinum_info: Use increasing verbosity to show time spent in disk driver. Correct a comment.
* Add media types and options for ATM. While on most ATM cards media cannotharti2003-04-291-0/+34
| | | | | | | | be changed, it is very convenient to be able to toggle SDH/Sonet, idle/unassigned cells and scrambled mode and to see the carrier state. Reviewed by: -arch (if_media.h definitions)
* document mode directivesam2003-04-281-2/+14
|
* add a "mode" directive to specify the operating mode for multi-mode devices;sam2003-04-283-3/+120
| | | | | this is mostly intended for use with multi-mode 802.11 devices that support some combination of 11a, 11b, and 11g
* This file does not seem to serve any purpose. It has never been hooked uptjr2003-04-281-240/+0
| | | | | to the build, and performs a subset of the functionality that the getconf(1) utility performs.
* Fix for dynamic linking.jake2003-04-271-1/+1
| | | | Submitted by: Alex Deiter <tiamat@komi.mts.ru>
* Add .Xr's to mdmfs(8).dougb2003-04-271-0/+1
| | | | Submitted by: Scot W. Hetzel <hetzels@westbend.net>
* Also MLINK the man page for mount_mfs.dougb2003-04-272-2/+4
|
* Install a mount_mfs symlink so that you can specify something like thisdougb2003-04-271-0/+1
| | | | | | | | | | | in /etc/fstab to get a memory disk: md /tmp mfs rw,-s8m,noatime 2 2 Back when mdmfs was created, there was vague discussion about doing this, but it never materialized. Reminded by: Ralf S. Engelschall <rse@engelschall.com>
* Create a new C++ header file called devd.hh which has all the classimp2003-04-263-101/+172
| | | | | | definitions in it. Begin to document the classes that we use, and how they interrelate (using comments that I can use with doxygen to automatically generate docs with).
* Update to use is_id_char() in the last patch. I should have done thisimp2003-04-261-2/+1
| | | | before the last commit.
* Make better use of the string type when parsing things. This switchesimp2003-04-261-28/+22
| | | | | | | | expand one from using a fixed buffer to using a string which dynamically allocates these things. Submitted by: green@ (against an earlier version of devd) Ignored for too long by: imp
* Fix typos in comments; some style(9) fixes; no code changes.schweikh2003-04-261-121/+117
| | | | | PR: misc/50979 Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
* Change default to be 'process all events before calling daemon.'imp2003-04-251-2/+4
| | | | | | | | Also, put a small work around into devd to prevent a hang on boot this would cause because select used to return 2 rather than 0 for no evetnts due to a bug I fixed a few days ago in subr_bus.c. I'll remove this workaround May 7th. You have until then to upgrade your kernel if you want to run a new devd with an older kernel.
* Back out previous delta to fix fsck on filesystems without an fstab entry,jmallett2003-04-251-1/+23
| | | | | | | | | | | | | where we want to take the disklabel filesystem type of "4.2BSD" and use fsck_4.2bsd on those filesystems. Add a comment about why the code is there, now that we know: * XXX This is a kludge to make automatic filesystem type guessing * from the disklabel work for "4.2BSD" filesystems. It does a * very limited subset of transliteration to a normalised form of * filesystem name, and we do not seem to enforce a filesystem * name character set.
* style(9): use NULL when assigning/comparing a char *,johan2003-04-233-9/+9
| | | | | | consitently compare fileid with 0 using == and !=. Reviewed by: silence on @audit
* Make this WARNS=5 clean by adding () in 'if (a || (b && c))'.johan2003-04-232-2/+2
| | | | Look at by: sebastian.ssmoller@web.de on audit@
* Make this WARNS=5 clean by using %j and (uintmax_t).johan2003-04-232-3/+5
| | | | Look at by: sebastian.ssmoller@web.de on audit@
* These are WARNS=5 clean, mark them as such to keep them that way.johan2003-04-232-0/+2
| | | | Look at by: sebastian.ssmoller@web.de on audit@
* Add testcases to ensure that overwriting bootcode does not trash label.phk2003-04-231-0/+26
|
* If we cannot open the parent device for writing, use GEOM::CONFIG_GEOMphk2003-04-232-24/+61
| | | | | | | | requests to write label and bootcode. The -r argument is ignored (with a warning). With a lot of help from: jake
* Do not link sunlabel to disklabel.phk2003-04-231-1/+0
|
* Add "-r" when we initialize the label first time.phk2003-04-221-1/+18
| | | | Add two more tests.
* Make this WARNS=2 clean by using %j and (uintmax_t).johan2003-04-222-2/+2
| | | | | Reviewed by: tjr@ on audit@ Approved by: silence from sos@
* Use explicit encoding/decoding funtions for sunlabel data structures.phk2003-04-212-34/+29
| | | | | | | | Use #defines for various magic numbers. Attach test-case to makefile. Reviewed by: jake
* Add minimal regression test for hotspot handling of the sunlabel.phk2003-04-211-0/+114
|
* Kill debug printf that crept in my last commitimp2003-04-211-1/+0
|
* Implement a two new flags, and change the meaning of another one.imp2003-04-212-14/+45
| | | | | | | | | | | | | | | 'd': now means don't do daemon(). 'D': Debug 'n': Don't wait to process all pending events before calling daemon. In the past, devd would call daemon immediately. However, this causes a race. If anything in the boot process depends on configuring the devices configured by devd, maybe they would be configured in time, maybe not. Now we don't call daemon until all pending events are processed, unless -n is specified. # -n is actually the default for a while due to the select(2) bug in devctl # that I just fixed to give people a chance to upgrade.
* Put an anti-foot-shooting measure in place. Set hw.bus.devctl_disableimp2003-04-211-0/+19
| | | | | | | | | to 0 when we startup. Print a warning in this case. This allows people that are playing with devd by hand to have something happen. Otherwise, it appears that devd isn't working because /dev/devctl is disabled and producing no events. Suggested by: peter on irc a long time ago.
* o Skip white space between variables better. This makesimp2003-04-211-6/+17
| | | | | | | | | | | 'a="b" c="d" at loc=1 on busN' properly set 'c' and process the rest of the stirng. Before it would ignore everything after variable 'a'. o Parse nomatch and other events differently. They are more different than the code allowed for, so we weren't properly parsing nomatch events. It appears this fixes some of the demand loading issues that I was having with devd. Noticed by: Gary Palmer
* devd.conf already has the examples in the todo listimp2003-04-211-1/+0
|
* Remove reference to diskpart(8)brueffer2003-04-201-1/+0
| | | | | PR: 51193 Submitted by: Yonatan@xpert.com
* Throw the switch--change to UFS2 as our default file system format forrwatson2003-04-202-2/+2
| | | | | | | | | | | | | | | | | | | | FreeBSD 5.1-RELEASE and later: - newfs(8) will now create UFS2 file systems unless UFS1 is specifically requested (-O1). To do this, I just twiddled the Oflag default. - sysinstall(8) will now select UFS2 as the default layout for new file systems unless specifically requested (use '1' and '2' to change the file system layout in the disk labeler). To do this, I inverted the ufs2 flag into a ufs1 flag, since ufs2 is now the default and ufs1 is the edge case. There's a slight semantic change in the key behavior: '2' no longer toggles, it changes the selection to UFS2. This is very similar to a patch David O'Brien sent me at one point, and that I couldn't find. Approved by: re (telecon) Reviewed by: mckusick, phk, bmah
* Add the beginning of a regression test.phk2003-04-182-0/+113
| | | | | | | So far it checks the overwrites of the BSD label inband (ie: dd if=/dev/ad0a of=/dev/ad2a). This excercises the geom::slice::hotspot code.
* Solve printf/cast issues to make this compile in i386 as well.phk2003-04-181-5/+5
|
* First scrub of s/disklabel/bsdlabel/phk2003-04-183-28/+29
| | | | bsdlabel.5 deliberately exempted, its contents looks less than useful.
* Quick grammar fix.trhodes2003-04-172-4/+4
|
* There is an undocument feature that ``route -vnd flush'' printsru2003-04-161-1/+1
| | | | | a nice dump of the entire routing table. Allow non-root users to see it too.
* Normalize, fix ``make checkdpadd''.ru2003-04-161-5/+6
|
* Use NI_xxx macros.sumikawa2003-04-161-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Hardlink sunlabel to disklabel so make release is happy. (This only affectsjake2003-04-151-0/+1
| | | | sparc64, where bsd^H^H^Hdisklabel isn't built.)
* - Use read(2) to get the existing sunlabel on a disk, instead of parsingjake2003-04-151-77/+81
| | | | | | | | | | | | | | kern.geom.conftxt, which md disks don't show up in. If the magic and the checksum are right assume its a valid sunlabel, otherwise use the DIOC ioctls to get the disk parameters and whip up a label out of thin air. - Don't just silently create or correct invalid c partitions, warn about invalid ones in label proto files. - Split checksumming into a function since we do it a couple times. Also don't include the sl_cksum field in the checksum, which avoids needing to clear it first. This is makes sunlabel a suitable replacement for disklabel in make release.
* Don't abuse module names to facilitate ifconfig module loading;mdodd2003-04-151-1/+1
| | | | | | such abuse isn't really needed. (And if we do need type information associated with a module then we should make it explicit and not use hacks.)
OpenPOWER on IntegriCloud