summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Solve another bug in the mapping code: correctly skip lock sectors.phk2002-12-182-1/+7
| | | | | | | | | Make sure sector zero is protected if it contains metadata. Lower WARNS for gbde to 3 on non-i386 archs. rijndael-fst is evil but appearntly does the right thing and passes the test-vectors. MFC Candidate.
* Fix two blunders in the mapping functions which can lead to corrupt data,phk2002-12-181-1/+21
| | | | | | | | for request sizes larger than the sectorsize or for multi-key setups. See warning mailed to current@ for details of recovery. Found by: Marcus Reid <marcus@blazingdot.com>
* Untwist a twisty bit of logic which gcc for some reason cannot seephk2002-12-181-4/+4
| | | | through on ia64.
* Latest snapshot of devd. This one adds re-matching and stringimp2002-12-182-17/+89
| | | | expansion.
* Back out the previous commit, since there could be dire consequences ifgreen2002-12-171-4/+0
| | | | /etc/rc were accidentally executed (as requested by other committeers).
* /home/green/tmp/cvsSFosXggreen2002-12-171-0/+4
|
* Straighten out a compound if() to improve readability marginally.phk2002-12-171-1/+4
|
* A couple of stylistic improvements.phk2002-12-172-5/+6
|
* Add PERIPH and XPT debug options to camcontrol. This makes all CAM debugnjl2002-12-172-4/+22
| | | | | | | options tunable from userland. Approved by: ken MFC after: 3 days
* This is David Schultz's swapoff code which I am finally able to commit.dillon2002-12-153-26/+56
| | | | | | | This should be considered highly experimental for the moment. Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU> MFC after: 3 weeks
* Add a list of currently supported modes && an EXAMPLES section.trhodes2002-12-141-0/+34
| | | | | PR: 40465 Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
* MFp4: Make ifs consistant with rest of file.imp2002-12-131-3/+3
|
* mdoc(7) police: sort xrefs in SEE ALSO.ru2002-12-131-1/+1
|
* Remove the incorrect information about dump(8) and snapshots. All thetrhodes2002-12-131-6/+0
| | | | | | | | dump(8) issues are assumed to be fixed. PR: 46224 Submitted By: Chris Knight <chris@aims.com.au> Approved By: re (murray)
* Uniformly refer to a file system as "file system".ru2002-12-1211-35/+35
| | | | Approved by: re
* mdoc(7) police: overhaul.ru2002-12-121-21/+30
|
* mdoc(7) police: markup overhaul.ru2002-12-121-23/+37
| | | | Approved by: re
* mount_udf(8) is currently not in 4.X, so obviously it did not first appeartrhodes2002-12-121-1/+1
| | | | | | | | in 4.6 PR: 46117 Submitted by: Ryuichiro Imura <imura@ryu16.org> Approved by: re (bmah)
* vinum_info: Correct the print formats to allow for 64 bit pointers.grog2002-12-121-8/+8
| | | | Approved by: re (jhb).
* mdoc(7) police: Use the default .Os version.ru2002-12-111-1/+1
| | | | Approved by: re
* mdoc(7) police: markup nits.ru2002-12-091-25/+29
| | | | Approved by: re
* Slow down the operation of background fsck so as to leave some diskiedowse2002-12-071-1/+46
| | | | | | | | | | | | | | | bandwidth for other processes. Since the sleeping is done from userland, this avoids the locking issues that affected the kernel version. The algorithm used here is to measure a moving average of the times taken by a sample of read operations and then delay 1 in 8 reads by 16 times the measured average. This should correspond to a factor of 3 slowdown, but in practice the factor is larger (3.5 to 4) due to hz rounding effects. Reviewed by: mckusick Approved by: re
* MFp4 (imp_freebsd branch): snapshot of devd work:imp2002-12-078-316/+701
| | | | | | | | | | | | o improve parsing and lexing o create data structures based on the parsed file now. o Still need to rewrite main loop and add regex (still uses hard coded devd-generic) o minor man page updates. # There should be one more commit before rc2 Approved by: re (blanket)
* corrected buffer lengths for memset()suz2002-12-061-2/+2
| | | | | obtained from: KAME MFC after: 3 days
* Add the `L' option to dump to notify it that it is dumping amckusick2002-12-032-15/+91
| | | | | | | | | | | | | | | live filesystem. To obtain a consistent dump image, dump takes a snapshot of the filesystem and then does a dump of the snapshot. The snapshot is removed when the dump is complete. Also add an operator warning that the `L' option should be used if dump is run on a live filesystem without the `L' option being specified. The alternative would be to silently use a snapshot any time that a live filesystem is dumped, but this change in dump semantics seemed too drastic at this time. Sponsored by: DARPA & NAI Labs. Approved by: re
* Correct the estimated block count calculated by dump to accountmckusick2002-12-032-2/+4
| | | | | | for the minimal amount of space used by a snapshot. Sponsored by: DARPA & NAI Labs.
* Properly handle UFS2 sparsely allocated inodes. The UFS2 filesystemmckusick2002-12-031-25/+66
| | | | | | | | | | only preallocates a small number of inodes. The dump program tries to scan through all the allocated inodes on a filesystem which causes bad behavior if they have never been allocated. Thus dump must calculate the set of inodes that have actually been allocated and scan only those inodes. Sponsored by: DARPA & NAI Labs.
* Relax partition overlap check to allow Vinum partitions to overlapgrog2002-12-022-6/+12
| | | | | | | | | | | | other partitiosns. This is necessary when migrating conventional partitions to Vinum and was broken by recent more stringent overlap checks. This is arguably the wrong way to do it. A better method would be to have the loader understand a subset of Vinum partitioning and allow an install directly to Vinum, but until then, this is the best we have. Reviewed by: jhb Approved by: re (rwatson)
* Correctly calculate the initial number of fragments in a filesystemmckusick2002-12-021-2/+2
| | | | | | | | so that fsck does not complain with `SUMMARY BLK COUNT(S) WRONG IN SUPERBLK' the first time it is run on a new filesystem. Reported by: Poul-Henning Kamp <phk@freebsd.org> Sponsored by: DARPA & NAI Labs.
* Verify that alternate superblocks have a correct magic number beforemckusick2002-12-021-9/+10
| | | | | | | | | trying to use them. Set a minimum value for numdirs when using an alternate superblock to avoid spurious numdirs == 0 error. Calculate new fields when using an alternate superblock from a UFS1 filesystem to avoid segment faulting. Sponsored by: DARPA & NAI Labs.
* o Newer EFI implementations require that a GPT is preceeded bymarcel2002-12-025-55/+153
| | | | | | | | | | | | | | | | | | a PMBR. Make sure the create command creates a PMBR as well (if not already present). o When parsing the MBR, explicitly check for a PMBR and create a PMBR map node if one is found. o When parsing the MBR, recurse to handle extended partitions. This allows us to flatten nested MBRs when migrating to a GPT. o Have the migrate command bail out if it encounters a partition it doesn't know how to migrate. This avoids data loss. o Change the output of the show command so that the UUIDs of the GPT partitions fit on the same line. o Show when partitions are extended partitions and add the PMBR type. Approved by: re (blanket)
* Teach mdmfs how to pass UFS version numbers through to newfs. Becauserwatson2002-12-012-1/+15
| | | | | | | | | | | | of an argument name collision with -O, use -v, and default to whatever the newfs default is for the platform (generally, UFS1). This is required to support diskless workstations that use UFS2 for their mdmfs file systems. Reviewed by: dd, bmah Approved by: re (bmah) Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Synchronize usage() with reality.phk2002-12-011-8/+19
| | | | | | | Semi-automatic handling of /dev prefix for device names. Sponsored by: DARPA & NAI Labs. Approved by: re (blanket)
* De-danglify the manual page.phk2002-12-011-6/+6
| | | | | Submitted by: ceri Approved by: re (blanket)
* Add a manpage. Nobody expects the spanish inquisition, but themarcel2002-12-012-1/+233
| | | | | | mdoc(7) police... It's all yours ru :-) Approved by: re (blanket)
* Mark snapshots so that dump will dump them as zero lengthmckusick2002-11-301-2/+8
| | | | | | regular files rather than trying to interpret the snapshot. Sponsored by: DARPA & NAI Labs.
* Allow aliases to be used when specifying partition types. The use ofmarcel2002-11-301-5/+14
| | | | | | | | | | | UUIDs can then be limited to those cases when an alias doesn't exist. This greatly increases the likelyhood that a sysadmin finishes the partitioning without intermittent mental breakdowns. Current aliases are "efi", "swap" and "ufs". While here, staticize global variables and expand the usage message. Approved by: re (blanket)
* Add some more checks to newfs so that it will not build filesystemsmckusick2002-11-302-15/+29
| | | | | | | | | | that the kernel will refuse to mount. Specifically it now enforces the MAXBSIZE blocksize limit. This update also fixes a problem where newfs could segment fault if the selected fragment size was too large. PR: bin/30959 Submitted by: Ceri Davies <setantae@submonkey.net> Sponsored by: DARPA & NAI Labs.
* Create a new 32-bit fs_flags word in the superblock. Add code to movemckusick2002-11-2711-22/+17
| | | | | | | | | | | | | | | | | the old 8-bit fs_old_flags to the new location the first time that the filesystem is mounted by a new kernel. One of the unused flags in fs_old_flags is used to indicate that the flags have been moved. Leave the fs_old_flags word intact so that it will work properly if used on an old kernel. Change the fs_sblockloc superblock location field to be in units of bytes instead of in units of filesystem fragments. The old units did not work properly when the fragment size exceeeded the superblock size (8192). Update old fs_sblockloc values at the same time that the flags are moved. Suggested by: BOUWSMA Barry <freebsd-misuser@netscum.dyndns.dk> Sponsored by: DARPA & NAI Labs.
* Align timestamps when -t is used in ipfw and ipfw2.keramida2002-11-261-3/+11
| | | | | PR: kern/44843 Approved by: re (jhb)
* Fix a kernel panic with rules of the typeluigi2002-11-261-19/+31
| | | | | | | | | | prob 0.5 pipe NN .... due to the generation of an invalid ipfw instruction sequence. No ABI change, but you need to upgrade /sbin/ipfw to generate the correct code. Approved by: re
* Update documentation to match the behaviour of ipfw with respectluigi2002-11-261-4/+6
| | | | | | | | to net.inet.ip.fw.one_pass. Add to notes to explain the exact behaviour of "prob xxx" and "log" options. Virtually approved by: re (mentioned in rev.1.19 of ip_fw2.c)
* mdoc(7) police: Nits.ru2002-11-261-2/+2
| | | | Approved by: re
* mdoc(7) police: Fixed markup now that it was taken out of vendor branch.ru2002-11-251-30/+36
| | | | Approved by: re
* mdoc(7) police: markup, spelling.ru2002-11-251-8/+6
| | | | Also fixed a critical bug made in revision 1.62 by phk@.
* mdoc(7) police: Added missing markup bit.ru2002-11-252-2/+6
| | | | Approved by: re
* Fsck needs to check each CG's rotor values to ensure thay are not -ve.julian2002-11-241-3/+3
| | | | | | | | | | | It seems a common corruption to have them -ve (I've seen it several times) and if fsck doesn't fix it, it leads to a kernel pagefault. Reviewd by: kirk Submitted by: Eric Jacobs <eaja@erols.com> and me independently. MFC in: 2 days PR: bin/40967 Approved by: re
* Typo fix that I brought in rev 1.16keramida2002-11-211-1/+1
|
* Properly handle UFS2 sparsely allocated inodes. Fix bug that causedmckusick2002-11-201-24/+59
| | | | | | | the error "quotacheck: bad inode number 1 to nextinode". Sponsored by: DARPA & NAI Labs. Reported-by: Franky <franky@jasna.tarnow.pl> and Matthew Kolb <muk@msu.edu>
* o Bring the NOTICE section into the DESCRIPTION section and wrap it inchris2002-11-181-11/+12
| | | | | | | .Bf -emphasis ... .Ef o Grammar/spelling Sponsored by: DARPA, NAI Labs
OpenPOWER on IntegriCloud