aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* The disk labels generated by bsdlabel can no address more thanBrooks Davis2004-09-092-7/+22
| | | | | | | | | | | | | | 0xffffffff sectors. Document this limit and avoid installing bogus labels on disks with more sectors. Allowing the installation of labels addressing as much of the disk as possiable may be a useful addition in some situations, but this was easy to implement and should reduce confusion. PR: bin/71408 Notes: svn path=/head/; revision=134973
* add support for documented readonly option...John-Mark Gurney2004-09-081-1/+5
| | | | | | | | | | also print out the option that is unknow so that the user knows what (s)he did wrong.. MFC after: 3 days Notes: svn path=/head/; revision=134965
* sync with private code:Alfred Perlstein2004-09-083-4/+4
| | | | | | | | fix a 5.x'ism that 4.x needs protection from. make this code compile standalone. Notes: svn path=/head/; revision=134940
* Fix/clean up return values checking.Pawel Jakub Dawidek2004-09-084-31/+31
| | | | Notes: svn path=/head/; revision=134937
* Allow to setup GBDE on providers which contain '/' in their names,Pawel Jakub Dawidek2004-09-061-2/+0
| | | | | | | | | e.g. mirror/<name>, stripe/<name>. Approved by: phk Notes: svn path=/head/; revision=134841
* Use a spare byte in struct if_data to store the structure size withoutBrooks Davis2004-09-011-1/+4
| | | | | | | | | | | | increasing it. Add code to ifconfig to use this size to find the sockaddr_dl after the struct if_data in the routing message. This allows struct if_data to grow (up to 255 bytes) without breaking ifconfig. Submitted by: peter Notes: svn path=/head/; revision=134609
* Move back to WARNS=2Scott Long2004-09-011-1/+1
| | | | Notes: svn path=/head/; revision=134597
* Create DIP_SET() and IBLK_SET() macros to fix lvalue warnings.Scott Long2004-09-015-40/+59
| | | | | | | Inspired by: kan Notes: svn path=/head/; revision=134589
* Enter the autofs.Alfred Perlstein2004-08-313-0/+182
| | | | Notes: svn path=/head/; revision=134576
* Correct a style bug: remove a gratuitous space between ( and ".Tom Rhodes2004-08-311-1/+1
| | | | | | | Ok'ed by: fjoe Notes: svn path=/head/; revision=134565
* Add a suffix descriptor for the acpi thermal values as a hint for the userlandPeter Wemm2004-08-301-2/+12
| | | | | | | sysctl tool to print a more readable value for temperatures. Notes: svn path=/head/; revision=134541
* When configuring RAID3 with verification option, force synchronizationPawel Jakub Dawidek2004-08-301-0/+7
| | | | | | | | | | of parity component, because we can't return an EIO error for read of every sector which wasn't written first. Discussed with: phk Notes: svn path=/head/; revision=134539
* o Restore a historical ipfw1 logamount behaviour: rules with 'log'Maxim Konovalov2004-08-291-0/+7
| | | | | | | | | | | | | | keyword but without 'logamount' limit the amount of their log messages by net.inet.ip.fw.verbose_limit sysctl value. RELENG_5 candidate. PR: kern/46080 Submitted by: Dan Pelleg MFC after: 1 week Notes: svn path=/head/; revision=134475
* Warn the user if we are not going to use the whole provider's space.Pawel Jakub Dawidek2004-08-281-1/+21
| | | | Notes: svn path=/head/; revision=134422
* Warn the user if we are not going to use whole provider space.Pawel Jakub Dawidek2004-08-281-5/+9
| | | | | | | Requested by: Michael Handler <handler@grendel.net> Notes: svn path=/head/; revision=134420
* - If error string begins with "warning: ", don't exit, treat it as a warningPawel Jakub Dawidek2004-08-281-4/+6
| | | | | | | | only. - Use getprogname() function when informing about versions problem. Notes: svn path=/head/; revision=134419
* Fix 'show' command for pipes and queues.Pawel Jakub Dawidek2004-08-231-1/+7
| | | | | | | | | PR: bin/70311 Submitted by: Pawel Malachowski <pawmal-posting@freebsd.lublin.pl> MFC after: 3 days Notes: svn path=/head/; revision=134225
* Add missing GEOM classes, which are aware of geom(8).Pawel Jakub Dawidek2004-08-231-0/+6
| | | | | | | Submitted by: kuriyama Notes: svn path=/head/; revision=134196
* Fix sysctl name.Pawel Jakub Dawidek2004-08-221-1/+1
| | | | Notes: svn path=/head/; revision=134169
* Implementation of 'verify reading' algorithm, which uses parity data forPawel Jakub Dawidek2004-08-222-6/+39
| | | | | | | | | | | verification of regular data when device is in complete state. On verification error, EIO error is returned for the bio and sysctl kern.geom.raid3.stat.parity_mismatch is increased. Suggested by: phk Notes: svn path=/head/; revision=134168
* Implement new reading algorithm, which will use parity component for readingPawel Jakub Dawidek2004-08-212-9/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | as well, even if device is in complete state. I observe 40% of speed-up with this option for random read operations, but slowdown for sequential reads. Basically, without this option reading from a RAID3 device built from 5 components (c0-c4) looks like this: Request no. Used components 1 c0+c1+c2+c3 2 c0+c1+c2+c3 3 c0+c1+c2+c3 With the new feature: Request no. Used components 1 c0+c1+c2+c3 2 (c1^c2^c3^c4)+c1+c2+c3 3 c0+(c0^c2^c3^c4)+c2+c3 4 c0+c1+(c0^c1^c3^c4)+c3 5 c0+c1+c2+(c0^c1^c2^c4) 6 c0+c1+c2+c3 [...] Notes: svn path=/head/; revision=134124
* Generalize the UFS bad magic value used to determine when a filesystemJohn Baldwin2004-08-192-6/+11
| | | | | | | | | | | has only been partly initialized via newfs(8) so that it applies to both UFS1 and UFS2. Submitted by: "Xin LI" delphij at frontfree dot net MFC: maybe? Notes: svn path=/head/; revision=134011
* - Add a manual page for graid3(8) utility.Pawel Jakub Dawidek2004-08-183-1/+213
| | | | | | | | - Connect it to the build. - Inform geom(8) about it. Notes: svn path=/head/; revision=133978
* Add a line to BUGS section about the need of implementation description.Pawel Jakub Dawidek2004-08-181-0/+2
| | | | Notes: svn path=/head/; revision=133967
* Add some missing empty lines.Pawel Jakub Dawidek2004-08-181-0/+2
| | | | Notes: svn path=/head/; revision=133962
* Fix typo.Pawel Jakub Dawidek2004-08-181-1/+1
| | | | Notes: svn path=/head/; revision=133961
* Actually one can specify more than one device to stop.Pawel Jakub Dawidek2004-08-182-2/+2
| | | | Notes: svn path=/head/; revision=133960
* Ok, let's try again:Pawel Jakub Dawidek2004-08-181-0/+290
| | | | | | | Add manual page for gmirror(8) utility. Notes: svn path=/head/; revision=133959
* - Add a manual page for gmirror(8) utility.Pawel Jakub Dawidek2004-08-182-1/+1
| | | | | | | | | | - Connect it to the build. - Inform geom(8) manual page about it. Reviewed by: trhodes Notes: svn path=/head/; revision=133958
* Use a local "compress" symbol corresponding to a variable in BSS,Ruslan Ermilov2004-08-161-2/+2
| | | | | | | | | | rather than the one from libz, corresponding to a function, when linking statically. PR: bin/70392 Notes: svn path=/head/; revision=133814
* Connect RAID3 GEOM class to the build.Pawel Jakub Dawidek2004-08-161-0/+1
| | | | Notes: svn path=/head/; revision=133812
* Introduce GEOM RAID3 class, i.e. kernel module, which implements RAID3Pawel Jakub Dawidek2004-08-162-0/+351
| | | | | | | | | | transformation and graid3(8) userland utility, which can be used for configuration. No manual page yet, sorry. Hardware provided by: Daniel Seuffert Notes: svn path=/head/; revision=133808
* Avoid using void pointers in additive expressions.Stefan Farfeleder2004-08-142-3/+3
| | | | | | | PR: 56653 Notes: svn path=/head/; revision=133723
* Don't declare everything we find on a loopback interface for passive:Poul-Henning Kamp2004-08-141-3/+9
| | | | | | | | | | | Only the actual loopback address should be declared passive, other addresses are very likely to be desirable to announce. Check for IFF_LOOPBACK instead of IFF_PASSIVE to determine if we have an unknown interface type. Notes: svn path=/head/; revision=133715
* Removed commented out bitrot.Ruslan Ermilov2004-08-132-2/+0
| | | | Notes: svn path=/head/; revision=133650
* Remove trailing whitespace and change "prisoniD" to "prisonID".Christian S.J. Peron2004-08-131-2/+2
| | | | | | | | Pointed out by: simon Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=133607
* Add the ability to associate ipfw rules with a specific prison ID.Christian S.J. Peron2004-08-122-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the only thing truly unique about a prison is it's ID, I figured this would be the most granular way of handling this. This commit makes the following changes: - Adds tokenizing and parsing for the ``jail'' command line option to the ipfw(8) userspace utility. - Append the ipfw opcode list with O_JAIL. - While Iam here, add a comment informing others that if they want to add additional opcodes, they should append them to the end of the list to avoid ABI breakage. - Add ``fw_prid'' to the ipfw ucred cache structure. - When initializing ucred cache, if the process is jailed, set fw_prid to the prison ID, otherwise set it to -1. - Update man page to reflect these changes. This change was a strong motivator behind the ucred caching mechanism in ipfw. A sample usage of this new functionality could be: ipfw add count ip from any to any jail 2 It should be noted that because ucred based constraints are only implemented for TCP and UDP packets, the same applies for jail associations. Conceptual head nod by: pjd Reviewed by: rwatson Approved by: bmilekic (mentor) Notes: svn path=/head/; revision=133600
* The geom(8) utility needs dynamic linker functionality to work, so it can'tPawel Jakub Dawidek2004-08-121-0/+2
| | | | | | | | be staticaly linked. This fixes problems on systems compiled with NO_DYNAMICROOT. Notes: svn path=/head/; revision=133570
* Add support for the examination and modification of the devices.Hartmut Brandt2004-08-129-8/+817
| | | | | | | | | This is implemented through SNMP and requires the ilmi daemon to run on the system. To prevent bloat in rescue the atmconfig for rescue is compiled without this stuff. Notes: svn path=/head/; revision=133565
* Forgot to commit those: introduce hardcoded provider functionality,Pawel Jakub Dawidek2004-08-101-14/+31
| | | | | | | | which allow to store provider's name in the metadata and avoid problems when few providers share the same last sector. Notes: svn path=/head/; revision=133447
* New ipfw option "antispoof":Andre Oppermann2004-08-092-3/+49
| | | | | | | | | | | | | | | | | | For incoming packets, the packet's source address is checked if it belongs to a directly connected network. If the network is directly connected, then the interface the packet came on in is compared to the interface the network is connected to. When incoming interface and directly connected interface are not the same, the packet does not match. Usage example: ipfw add deny ip from any to any not antispoof in Manpage education by: ru Notes: svn path=/head/; revision=133387
* The multiplier prefix is actually a multiplier suffix.Dag-Erling Smørgrav2004-08-091-1/+1
| | | | Notes: svn path=/head/; revision=133384
* - Introduce option for hardcoding providers' names into metadata.Pawel Jakub Dawidek2004-08-094-41/+79
| | | | | | | | | | | | | | | It allows to fix problems when last provider's sector is shared between few providers. - Bump version number for CONCAT and STRIPE and add code for backward compatibility. - Do not bump version number of MIRROR, as it wasn't officially introduced yet. Even if someone started to play with it, there is no big deal, because wrong MD5 sum of metadata will deny those providers. - Update manual pages. - Add version history to g_(stripe|concat).h files. Notes: svn path=/head/; revision=133373
* change the name of the md module, to g_md, introduce a define with theJohn-Mark Gurney2004-08-091-1/+1
| | | | | | | name MD_MODNAME, and make mdconfig use this new define... Notes: svn path=/head/; revision=133357
* Fix long standing mediaopt setting bugs seen on sparc64. ThoughPyun YongHyeon2004-08-091-6/+12
| | | | | | | | | | | | | | | the bug exists in little-endian machine, it was not triggered due to the difference of memory ordering between little/big endian machines. Instead of relying on possibly modified value during function invokcations, use saved copy of ifr.ifr_addr.sa_family. Also add a comment at the top of ifconfig.c clarifying the issue so the bug won't re-appear. Approved by: jake Reviewed by: yar Notes: svn path=/head/; revision=133352
* Use fallthrough to simplify the multiplier logic; optimistically addDag-Erling Smørgrav2004-08-081-9/+14
| | | | | | | | support for the T multiplier; improve the error message for unrecognized multipliers. Notes: svn path=/head/; revision=133348
* Fix some whitespace issues, and move a curly brace out of an #ifdef toDag-Erling Smørgrav2004-08-081-13/+14
| | | | | | | avoid confusing auto-indenting editors. Notes: svn path=/head/; revision=133347
* Due to popular demand, hook up geom_vinum to the build.Lukas Ertl2004-08-071-0/+1
| | | | Notes: svn path=/head/; revision=133270
* Document the remove command.Marcel Moolenaar2004-08-071-1/+37
| | | | Notes: svn path=/head/; revision=133260
* Implement a remove command. The remove command iterates the GPTMarcel Moolenaar2004-08-075-3/+217
| | | | | | | | | | | | partitions and removes any that matches the pre-conditions. The options are the same for the add command and are used to select the partitions to remove. Currently the remove command without any options deletes all GPT partitions. This is rather harmful and will need anti-footshooting measures. Notes: svn path=/head/; revision=133259