summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Swap the order of mount and nmount calls. We now call nmountmux2002-05-021-14/+14
| | | | | first, since all the consumers of mount_std in the tree have been converted to nmount.
* Set the permissions on restored symbolic links.iedowse2002-05-021-1/+19
| | | | | PR: bin/37665 Submitted by: "Michael C. Adler" <mad1@tapil.com>
* Minor bug fixes uncovered while working on UFS2.mckusick2002-05-022-2/+2
| | | | They should have no effect on existing systems.
* Make this compile and not segfault on ia64. ptr = strdup("foo"); ispeter2002-05-011-3/+4
| | | | | | fatal if the declaration of strdup() isn't in scope. The upper 32 bits of the pointer are lost since it defaults to returning "int". Fix some warnings while here, including trying to make gcc-3.1 happy.
* Add a hack so that fdisk(8) can initialize an ia64 disk. There ispeter2002-05-011-0/+10
| | | | | no /boot/mbr to read the boot code from (ia64 does not *have* bootblocks!). fdisk depended on magic in the /boot/mbr file to initialize some fields.
* Enlighten those who read the FINE POINTS of the documentation a bitcjc2002-05-011-3/+14
| | | | | | | | | more on how ipfw(8) deals with tiny fragments. While we're at it, add a quick log message to even let people know we dropped a packet. (Note that the second FINE POINT is somewhat redundant given the first, but since the code is there, leave the docs for it.) MFC after: 1 day
* Add partition type for IBM's JFS.grog2002-04-281-0/+1
| | | | Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
* Rename the file used to specify the nextboot to make it clear that thiswes2002-04-261-1/+1
| | | | | | | is a loader configuration file and can be used for more than just a kernel name. Submitted by: Gordon Tetlow <gordont@gnf.org>
* Add a -k option to reboot to specify the kernel to boot next timewes2002-04-262-5/+34
| | | | | | | | | | | | | | | | around. If the kernel boots successfully, the record of this kernel is erased, it is intended to be a one-shot option for testing kernels. This could be improved by having the loader remove the record of the next kernel to boot, it is currently removed in /etc/rc immediately after disks are mounted r/w. I'd like to MFC this before the 4.6 freeze unless there is violent objection. Reviewed by: Several on IRC MFC after: 4 days
* vinum_start: examine storage array devices, not just disks.grog2002-04-261-3/+4
| | | | | | | Submitted by: Holger Kipp <holger.kipp@alogis.com> PR: 37458 MFC after: 5 days (to get 4.6 code freeze)
* Remove the -v option, it is now default behaviour.phk2002-04-242-17/+5
| | | | Sponsored by: DARPA & NAI Labs
* Continue the cleanup preparations for UFS2 (& GEOM):phk2002-04-243-168/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | Use only one filedescriptor. Open in R/O or R/W based in the '-N' option. Make the filedescriptor a global variable instead of passing it around as semi-global variable(s). Remove the undocumented ability to specify type without '-T' option. Replace fatal() with straight err(3)/errx(3). Save calls to strerror() where applicable. Loose the progname variable. Get the sense of the cpgflag test correct so we only issue warnings if people specify cpg and can't get that. It can be argued that this should be an error. Remove the check to see if the disk is mounted: Open for writing would fail if it were mounted. Attempt to get the sectorsize and mediasize with the generic disk ioctls, fall back to disklabel and /etc/disktab as we can. Notice that on-disk labels still take precedence over /etc/disktab, this is probably wrong, but not as wrong as the entire concept of /etc/disktab is. Sponsored by: DARPA & NAI Labs.
* Unbreak NFS mounts when mount(8) is invoked as : mount path@server.mux2002-04-231-1/+5
| | | | Reviewed by: obrien
* Do our best to determine if the user is attempting an NFS mount whenmux2002-04-221-6/+19
| | | | | | | | | | | the filesystem type isn't given in the command line. In the case of an IPv6 address containing ':', one must use the '@' separator for it to be properly parsed (mount_nfs(8) still needs fixing at the moment though). PR: bin/37230 Reviewed by: obrien MFC after: 1 week
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-228-19/+19
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Add mount_udf and mount_smbfs to crossrefs.dwmalone2002-04-211-0/+2
| | | | | PR: 37200 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
* Add FBSDID. Start errx(3) messages with lowercase. Remove a ')' with no '('.charnier2002-04-211-14/+15
| | | | | | In usage(), use fprintf(3) instead of errx(3), to make the printed string really start with `usage: ...'. Reviewed by: marcel
* Use `The .Nm utility'charnier2002-04-201-4/+5
|
* Add character translation table between Unix and NetWare accordingbp2002-04-201-9/+9
| | | | | | | to Sweden standards. Submitted by: Roger Olofsson <roger.olofsson@kommun.engelholm.se> MFC after: 1 week
* Use `The .Nm utility'charnier2002-04-192-8/+10
|
* Push the .info file contents out when we're done so people canphk2002-04-191-0/+1
| | | | read the description while the megs shift from one place to another.
* just merged cosmetic changes from KAME to ease sync between KAME and FreeBSD.suz2002-04-192-1/+61
| | | | | | | (based on freebsd4-snap-20020128) Reviewed by: ume MFC after: 1 week
* De-__P, use ansi function definitionsimp2002-04-184-268/+117
|
* Fix the fdisk(8) manual page.trhodes2002-04-182-112/+115
| | | | | | | | | s/partition/slice/ in fdisk.8 fix a bug in fdisk(8) where it did not honer -t when using -I PR: 36563 and 35688 Submitted by: bde Reviewed by: bde
* Replaced exists() tests with two equivalent defined().ru2002-04-182-2/+2
| | | | | LIBDIR is defined in bsd.own.mk but sys.mk no longer includes bsd.own.mk as of revision 1.60.
* dump(8)'s manual page is confusing in its use of records, blocks,trhodes2002-04-171-13/+26
| | | | | | | | | | | blocksizes, etc does not give the default of -b only mentiones rdump in the NAME section uses both filesystem and file system in similar contexts PR: 34248 Submitted by: Gary W. Swearingen <swear@blarg.net> MFC after: 3 days
* Expand the reserved space section. Explain how the amount of reservedkeramida2002-04-161-4/+12
| | | | | | space can affect performance. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
* Change reference URLs.kuriyama2002-04-161-2/+2
| | | | | | Submitted by: Olivier Tharan <olivier.tharan@idealx.com> PR: docs/37094 MFC after: 1 week
* disklabel(8) manual page:trhodes2002-04-152-54/+50
| | | | | | | | | | | | | --change "-s newboot" to "-s newboot2" in an example --Fixed spelling --Fixed some confusion between slice/parition/primary partition and other things. PR: 35947 and 35951 Noticed by: Gary W. Swearingen <swear@blarg.net> Reviewed by: keramida Thanks to: grog MFC after: 2 days
* Sync with UDF p4 tree: Properly initialize part of the mntopts.asmodai2002-04-152-2/+2
| | | | Move to WARNS=1.
* Take the "tickadj" element out of struct clockinfo. Our adjtime(2)phk2002-04-151-2/+2
| | | | | implementation is being changed and the very concept of tickadj will no longer be meaningful.
* Actually add the UDF files!scottl2002-04-143-0/+225
|
* Add a filesystem driver for the Universal Disk Format. For more info,scottl2002-04-141-0/+1
| | | | | | | see http://people.freebsd.org/~scottl/udf MFC after: when asmodai gets the backport done Prodded by: phk asmodai des
* Do not use perl where sed is more than adequate.obrien2002-04-131-1/+4
|
* High-level changes (user visible):marcel2002-04-131-56/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | o Implement -c (clear) to clear previously kept headers (note that dumps not cleared will remain until -c is used), o Implement -f (force) to allow re-saving a previously saved dump, o Implement -k (keep) and make clearing the dump header the default, o Implement -v (verbose) and make most output conditional upon it, o Emit minimal output for the non-verbose case with the assumption that savecore is run mostly from within /etc/rc, o Update usage message to reflect what is and what's not, o mark -d as obsolete. Low-level changes: o Rename devname to device, for devname mirrors a global declaration and GCC 3.x warns about it, o Open the dump device R/W for clear and !keep to work, o Reorder the locals of DoFile according to style(9), o Remove newlines from strings passed to warn* and err*, o Use stat(2) to check if a dump has been saved before, o Truncate existing core and info files to support force, o First check for the magic and the version before we complain about parity errors. This prevents emitting parity error messages when there's no dump, o Keep track of the number of headers found and the number of headers saved to support the minimal output, o Close files we opened in DoFile. Not critical, but cleaner.
* I don't know what the MAINTAINER means in src/ part of FreeBSD.ru2002-04-121-2/+0
| | | | | | | | | I'll still be overseeing the changes that go into natd(8) and will maintain it the way I see it, non-preventing for the rest of developers. I will re-ask for the MAINTAINER bit if the ${MAINTAINER} gets defined.
* restore(8) manual page does not explain rrestore.trhodes2002-04-121-0/+4
| | | | | PR: 34234 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Removed the cruft that became cruft after rev. 1.4.ru2002-04-121-5/+1
| | | | Fixed CLEANFILES.
* Update dumpon manual page to explain single/multi-user usabilitytrhodes2002-04-091-6/+4
| | | | | PR: 36465 No Objections from: ru
* GC kget(1), userconfig is long dead.phk2002-04-094-199/+0
|
* Rename DIOCGKERNELDUMP to DIOCSKERNELDUMP as it strictly speakingphk2002-04-091-4/+4
| | | | | | is a "set" not a "get" operation. Sponsored by: DARPA & NAI Labs.
* Move generic disk ioctls from <sys/disklabel.h> to <sys/disk.h>.phk2002-04-082-2/+2
| | | | Sponsored by: DARPA & NAI Labs
* Don't set WARNS to 2, we're default compatible now.phk2002-04-082-2/+0
| | | | Noticed by: bde
* Add the possibility to use a no_rip_out configuration option in orderasmodai2002-04-072-0/+5
| | | | | | | to stop routed from sending out RIP updates. PR: 29090 Submitted by: Matthew Braithwaite <mab@red-bean.com>
* bbsize and sbsize cannot ever be trusted from the disklabel, inphk2002-04-073-53/+4
| | | | | | | | | particular as there may not be one. Remove #if 0'ed code which might mislead people to think otherwise. unifdef -ULOSTDIR, fsck can make lost+found on the fly. Sponsored by: DARPA & NAI Labs
* Add code to try the nmount(2) syscall when mount(2) failed withmux2002-04-071-1/+22
| | | | | | | EOPNOTSUPP. This will make things less painful when I will commit the conversion of devfs, fdescfs and pseudofs to nmount. Reviewed by: phk
* Get us to WARNS=2 with a bit of constification and some printf fiddling.phk2002-04-074-52/+38
| | | | | | | Pick up the c-partitions magicness from sys/disklabel.h instead of defining our own magicness for it, remove trivial comment. Sponsored by: DARPA and NAI Labs.
* Nuke a totally pointless optional debug optionphk2002-04-072-30/+0
| | | | Sponsored by: DARPA and NAI Labs.
* When checking the alternate superblock, we used to copy any fieldsmckusick2002-04-071-61/+25
| | | | | | | | | | | | | | that might have changed, then did a byte-by-byte comparison with the alternate. If any unused fields got used, they had to be added to the exception list. Such changes caused too many false alarms. So, I have changed the comparison algorithm to compare a selected set of fields that are not expected to change. This new algorithm causes far fewer false hits and still does a good job of detecting problems when they have really occurred. In particular, this change should ease the transition to kernels supporting UFS2 which make some significant changes to the superblock. Sponsored by: DARPA, NAI Labs
* Sync with the new endianness in ata.hsos2002-04-051-7/+19
|
OpenPOWER on IntegriCloud