summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fixup FILES section to use proper width and to use a cross-reference tojhb2002-11-181-2/+2
| | | | devd(8).
* Remove leading ^ from example of match line in vendor-supplied rules sincejhb2002-11-181-2/+2
| | | | the ^ is implicit at the beginning of the expressions.
* Add BUGS section and note departure of actual implementation from whatimp2002-11-182-0/+6
| | | | is documented so the pioneers will know why it works the way it does.
* Everything in the disklabel is unsigned so make all the input routinesjulian2002-11-182-114/+104
| | | | | | | | | | | | take unsigned values. his allows one to label disk with the number of blocks > 31 bits (though less then 32 bits) e.g. # size offset fstype [fsize bsize bps/cpg] c: 3125755904 0 unused 0 0 # (Cyl. 0 - 194569*) d: 3125755840 64 unused 0 0 # (Cyl. 0*- 194569*) which is needd to test UFS2
* Deal with the possibility that time_t != int32_t. Otherwise ia64 thoughtpeter2002-11-171-2/+4
| | | | the fs_old_size was the half part of fs_old_time etc.
* Properly calculate the initial number of fragments in a large filesystem.mckusick2002-11-151-1/+2
| | | | Sponsored by: DARPA & NAI Labs.
* update vlandev description; vlan code now auto-recognizes devices thatsam2002-11-151-6/+4
| | | | support h/w tagging
* o display new interface capability bitssam2002-11-151-1/+1
| | | | | | o capitilize capability bit strings for consistency Approved by: re
* Install devd.conf(5).tjr2002-11-141-1/+1
|
* Try to reword things a bit more to make it clearer.jhb2002-11-131-3/+13
| | | | Reviewed by: imp
* - Fix some minor grammar and spelling nits.jhb2002-11-131-10/+14
| | | | | | | - Massage the wording in a few places. - Put .Nm on lines by itself so it renders correctly. Reviewed by: imp
* Fix a "bug" in sysctl(8). Limit the length when we print a string frompeter2002-11-121-1/+1
| | | | | the kernel rather than ignoring the length and keeping on going till we finally hit a \0 character in the buffer.
* Remove inclusion of <sys/uuid.h>. We now include <sys/uuid.h> inmarcel2002-11-107-7/+0
| | | | | | <sys/gpt.h>. This avoids having to include both <sys/uuid.h> and <uuid.h>, which is considered by your friendly committer to be aestheticly displeasing (= ballyhoo barf barf :-)
* Fix one misspelling and two punctuation nits.bmah2002-11-071-3/+3
|
* Kill EOL whitespaces, style(9) fix.maxim2002-11-061-13/+12
|
* Fix UID/GID options parsing.maxim2002-11-061-2/+2
| | | | | | | PR: bin/42579 Submitted by: Belousov Oleg <oleg@belousov.com> Approved by: luigi MFC after: 2 weeks
* Take sizeof() the right string for fspath's iovec. The old string was thejhb2002-11-051-1/+1
| | | | same size so this doesn't fix a bug, but it makes it cleaner.
* Use more non-b0rked error reporting. Print the disk we are trying to openjmallett2002-11-051-3/+6
| | | | | | and (we have the disk error from libufs? the disk error: the errno). Requested by: bde, <many>
* Hook the new nextboot(8) manpage up to the build.gordon2002-11-041-1/+1
|
* Add a nextboot manual page.gordon2002-11-041-0/+116
| | | | Spotted by: brandt@fokus.gmd.de
* Run a revision on the GBDE encryption facility.phk2002-11-043-48/+106
| | | | | | | | | | | | | | | | | | | | Replace ARC4 with SHA2-512. Change lock-structure encoding to use random ordering rather for obscurity. Encrypt lock-structure with AES/256 instead of AES/128. Change kkey derivation to be MD5 hash based. Watch for malloc(M_NOWAIT) failures and ditch our cache when they happen. Remove clause 3 of the license with NAI Labs consent. Many thanks to "Lucky Green" <shamrock@cypherpunks.to> and "David Wagner" <daw@cs.berkeley.edu>, for code reading, inputs and suggestions. This code has still not been stared at for 10 years by a gang of hard-core cryptographers. Discretion advised. NB: These changes result in the on-disk format changing: dump/restore needed. Sponsored by: DARPA & NAI Labs.
* Bring newfs_msdos into the GEOM world. Totally rewrite and simplifyscottl2002-11-031-83/+49
| | | | | | | | getdiskinfo(). For the fixed-disk case, bpb->hid probably isn't handled correctly, but I'm not sure if this is a serious problem since the primary use of this program is to format floppy disks. Reviewed by: phk
* o Remove the fallback implementations of uuid_create(),marcel2002-11-026-68/+5
| | | | | uuid_from_string(), uuid_is_nil() and uuid_to_string(). o Include <uuid.h> where appropriate.
* o Replace 'struct uuid' with 'uuid_t',marcel2002-11-011-19/+20
| | | | | o Replace memcmp with uuid_equal(3), o Use uuid_to_string(3) to convert to UUIds to string.
OpenPOWER on IntegriCloud