summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2009-05-12Various mount point handling fixes, most originally from halex@.Kenneth R Westerback
Don't do fstabfile check everywhere. Always allocate and handle mount point arrays. Use fstabfile to control 'n' command and writing mount point info. Since mount points are primed from /etc/fstab now, prime origmountpoints so 'U' works. 'D' and 'z' now free current mount point info. 'U' will not lose undo info when repeatedly invoked. 'n' accepts existing mount point name as valid.
2009-05-11Make sure last, catch-all, auto-allocated partition ends on aKenneth R Westerback
cylinder boundary if SUN_CYLCHECK is defined. Don't bother rounding any partition size to cylinder boundary if SUN_CYLCHECK is not defined. Should fix warning message on sparc64 noticed by dlg@. ok deraadt@
2009-05-11very long lines in comments are uglyTheo de Raadt
2009-05-11Always save an fstab file, even if it is empty; ok krwTheo de Raadt
2009-05-09Need to add new display type to wsconsctl(8), too.Marcus Glocker
Noted by miod@
2009-05-09fix example dd invocation; multipliers (e.g. bs=1m) use lower-case.Stuart Henderson
2009-05-06.Xr endrun 4Kevin Steves
spotted by jmc@
2009-05-06- document /etc/kbdtypeJason McIntyre
- standard options list - some minor tweakage based on a diff from Rodolfo Gouveia
2009-05-06endrun(4) - EndRun Technologies native time-of-day message timedeltaKevin Steves
sensor. Based on msts(4). Tested with Praecis Ct (http://www.endruntechnologies.com/network-time-source.htm). help and feedback mbalmer 'no problem with this sensor going in' deraadt
2009-05-05use logical or when it's intended to be a logical or; ok krw@Otto Moerbeek
2009-05-04in IPSEC BRIDGE:Jason McIntyre
- need to explicitly bring bridge0 up; from mpf - final example needs "link2"; from bsd ok mpf
2009-05-03Prevent the entry of duplicate mount points while in Editor mode.Kenneth R Westerback
ok deraadt@
2009-05-03Tune the medium profile to provide more /usr space as 'requested' by beckTheo de Raadt
also make the %'s add up to 100 again, which was part of the problem ok krw otto
2009-04-30in the big configuration, tune /tmp so that it scales up a bit slower,Theo de Raadt
and benefit /home in exchange ok otto
2009-04-30Prime mountpoint info with any fstab info that is available, withKenneth R Westerback
or without the '-f' option being present. Now you can see in Editor mode or 'disklabel <dev>' where the partitions that exist will be mounted in the current configuration. Tweaks (and libc fixes) from, and ok deraadt@
2009-04-29code that stank and made me upsetTheo de Raadt
2009-04-29KNFTheo de Raadt
2009-04-29increase the max for medium a bit, so e.g. a 6GB disk gets fully usedOtto Moerbeek
2009-04-28Sync with kernel changes.Michele Marchetto
Add support to route(8) for a new dummy operation to allow packets coming in with a particular label to leave the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
2009-04-27let vlan functionality make it into the -DSMALL ifconfig binaryTheo de Raadt
ok sthen
2009-04-26adjust the numbers for the "big" auto-allocation scheme with ottoTheo de Raadt
2009-04-26Adjust the medium auto scale after looking at how it performs between theTheo de Raadt
low and high ends of the disk sizes it applies to; with otto
2009-04-26smarter auto-allocation; numbers needs tweaking, but we are gettingOtto Moerbeek
closer, ok deraadt@ krw@
2009-04-26switch the require-order default to "no". regression tests still pass.Stuart Henderson
ok henning@ deraadt@
2009-04-26Fix 'n' (name mountpoint) Editor command. The check for the presenceKenneth R Westerback
of the -f flag was reversed.
2009-04-25scrub_opts must not be empty, scrub on its own does nothing.Henning Brauer
noticed due to a question from otto@, ok regress/sbin/pfctl/ ;)
2009-04-23ping -v can segfault when displaying received icmp packets that aren'tStuart Henderson
echo replies. it's because the pointer arithmetic is scaled to the size of struct icmp, so 28*28 bytes are added rather than just 28. fortunately a correct value was calculated 2 lines earlier, so we can just use that. "thats a cool fix" dlg, ok deraadt
2009-04-23Unrevert reversion of r1.192. This time make sure 'aflag' is treatedKenneth R Westerback
the same way 'dflag' is treated. i.e. reset it when the label is written out so a 'w' followed by a 'q' exits the editor without further questions. Also set it whenever the 'A' command is executed. Suggestions by Alexander Hall. ok deraadt@
2009-04-20No this change is wrong, because now 'w' followed by 'q' asks if youTheo de Raadt
are sure. This will require another solution, based perhaps on comparing against an earlier form of the label
2009-04-18Alexander Hall points out that disklabel -AE <disk> followed by quittingStuart Henderson
without making manual changes does not ask whether you'd like to save the new automatic disklabel. Change to follow the behaviour of -d and ask every time. ok krw@.
2009-04-16Update SMART attributes list. From kirill.timofeev@gmail.com.Alexander Yurchenko
2009-04-16Really turn fragment reassembly on by default. pfctl must handle thisDavid Krause
since the DIOCSETREASS ioctl is called on every ruleset load and was overriding the initial setting in pfattach(). Fix setting of the global no-df bitmask as well. ok henning@
2009-04-15restore printing of the fragment option; ok henning@David Krause
2009-04-12When auto-allocating, check the size of the disk and displayKenneth R Westerback
offset/size information in MB if the disk is <10G, and in GB otherwise. '-p' will override this default.
2009-04-11Always display any mountpoint info available. Thus a simple -A willKenneth R Westerback
now show the planned mountpoint layout. ok deraadt@
2009-04-11readlabel() either errored out or returned a pointer to the globalKenneth R Westerback
'lab'. So there is no need for the return value. Just use &lab wherever it was used. No functional change. Slightly different version read ok to blambert@
2009-04-11Treat the list of auto-allocation partitions as a priority list andKenneth R Westerback
stop auto-allocation as soon as a partition can't fit. Eliminate the 'no space to allocate ...' messages.
2009-04-10allow /usr/local to be up to 5MB in auto mode; ok krwTheo de Raadt
2009-04-10Re-work '-A' so that it sets a flag that -E and -w use, and which willKenneth R Westerback
just display the auto-allocation plan otherwise. Don't overwrite any spoofed partitions, insert auto allocated partitions where we can. This is much more install script and weird architecture friendly. I'm talking about you, macppc. Many suggestions and code from otto@, feedback from many, cattle prod applied by deraadt@. ok deraadt@ "if it works for >8GB ... put it in" miod@ "to be clear, ok" todd@
2009-04-07Fix the default value to be between low/high range. Thanks forTobias Weingartner
frantisek holop pointing out the issue. ok deraadt@
2009-04-06print prettier, from sthen@Henning Brauer
2009-04-061) scrub rules are completely gone.Henning Brauer
2) packet reassembly: only one method remains, full reassembly. crop and drop-ovl are gone. . set reassemble yes|no [no-df] if no-df is given fragments (and only fragments!) with the df bit set have it cleared before entering the fragment cache, and thus the reassembled packet doesn't have df set either. it does NOT touch non-fragmented packets. 3) regular rules can have scrub options. . pass scrub(no-df, min-ttl 64, max-mss 1400, set-tos lowdelay) . match scrub(reassemble tcp, random-id) of course all options are optional. the individual options still do what they used to do on scrub rules, but everything is stateful now. 4) match rules "match" is a new action, just like pass and block are, and can be used like they do. opposed to pass or block, they do NOT change the pass/block state of a packet. i. e. . pass . match passes the packet, and . block . match blocks it. Every time (!) a match rule matches, i. e. not only when it is the last matching rule, the following actions are set: -queue assignment. can be overwritten later, the last rule that set a queue wins. note how this is different from the last matching rule wins, if the last matching rule has no queue assignments and the second last matching rule was a match rule with queue assignments, these assignments are taken. -rtable assignments. works the same as queue assignments. -set-tos, min-ttl, max-mss, no-df, random-id, reassemble tcp, all work like the above -logging. every matching rule causes the packet to be logged. this means a single packet can get logged more than once (think multiple log interfaces with different receivers, like pflogd and spamlogd) . almost entirely hacked at n2k9 in basel, could not be committed close to release. this really should have been multiple diffs, but splitting them now is not feasible any more. input from mcbride and dlg, and frantzen about the fragment handling. speedup around 7% for the common case, the more the more scrub rules were in use. manpage not up to date, being worked on.
2009-04-04Translate the size values in the auto-allocate table from blocks toKenneth R Westerback
sectors at runtime instead of constantly converting the sector values in the label to blocks. Adjust names accordingly. No functional change.
2009-04-03Bring comment into line with other docs. -E(dit) is not just forKenneth R Westerback
new labels.
2009-04-01Remove duplicate entry for partition id 0x07 so NTFS partitionsJonathan Gray
will show as NTFS in fdisk output. ok todd@ otto@ deraadt@
2009-04-01the note explaining partition letters is not a caveat, it is integral toJason McIntyre
the way disklabel works; move it into DESCRIPTION ok krw
2009-04-01Don't be picky about character case when checking response.Jonathan Gray
ok deraadt@
2009-03-31When warning about a non-zero partition offset, show DL_GETPOFFSET()Kenneth R Westerback
and not DL_GETPSIZE().
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-03-31Beef up description of 'c' partition in CAVEATS and remove mentions ofKenneth R Westerback
'c' from descriptions of d(elete) and z(ero) commands. Feedback from jmc@ Slightly different version ok jmc@ deraadt@