aboutsummaryrefslogtreecommitdiff
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing of redirect_addr argument.Gleb Smirnoff2011-11-231-1/+2
| | | | | | | | PR: kern/162739 MFC after: 3 days Notes: svn path=/head/; revision=227901
* Correct and expand BSD partitioning scheme description.Warren Block2011-11-211-7/+9
| | | | | | | | | | | Correct GUID to GPT in RECOVERING section. Reviewed by: ae Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227800
* Fix date.Warren Block2011-11-211-1/+1
| | | | | | | | Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227777
* Add a section that explicitly describes partitioning schemes. ModifyWarren Block2011-11-211-126/+154
| | | | | | | | | | | | existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227774
* For unknown reason, since rev 1.1 of ifconfig.c, sin_family isn'tGleb Smirnoff2011-11-191-2/+1
| | | | | | | | | | set properly for the mask argument. Since I'd like to improve argument sanity checking in kernel side, in in_control(), fix this. Notes: svn path=/head/; revision=227738
* Finish making 'wcommitsize' an NFS client mount option.John Baldwin2011-11-142-0/+11
| | | | | | | | Reviewed by: rmacklem MFC after: 1 week Notes: svn path=/head/; revision=227507
* - new sentence should start on new line.Eitan Adler2011-11-131-2/+2
| | | | | | | | | PR: bin/146541 Submitted by: bjk Approved by: bjk Notes: svn path=/head/; revision=227491
* - fix duplicate "a a" in some commentsEitan Adler2011-11-132-2/+2
| | | | | | | | | Submitted by: eadler Approved by: simon MFC after: 3 days Notes: svn path=/head/; revision=227489
* - add "check" option to MD5 and friends to compare files against known hash.Eitan Adler2011-11-132-8/+40
| | | | | | | | | | | | PR: bin/146541 Submitted by: eadler Reviewed by: jhell@dataix.net Approved by: secteam (cperciva) Approved by: cperciva MFC after: 3 weeks Notes: svn path=/head/; revision=227488
* Bump date.Adrian Chadd2011-11-121-1/+1
| | | | Notes: svn path=/head/; revision=227479
* Add documentation for the new quiet time IE options.Adrian Chadd2011-11-121-0/+32
| | | | | | | | Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies Notes: svn path=/head/; revision=227477
* Fix build on some archs after r227464.Alexander Motin2011-11-121-3/+4
| | | | Notes: svn path=/head/; revision=227473
* Fix buildworld breakage due after r227464.Dimitry Andric2011-11-121-1/+1
| | | | | | | Pointy hat to: mav Notes: svn path=/head/; revision=227471
* Major GEOM MULTIPATH class rewrite:Alexander Motin2011-11-122-98/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Improved locking and destruction process to fix crashes. - Improved "automatic" configuration method to make it consistent and safe by reading metadata back from all specified paths after writing to one. - Added provider size check to reduce chance of ordering conflict with other GEOM classes. - Added "manual" configuration method without using on-disk metadata. - Added "add" and "remove" commands to allow manage paths manually. - Failed paths are no longer dropped from geom, but only marked as FAIL and excluded from I/O operations. - Automatically restore failed paths when all others paths are marked as failed, for example, because of device-caused (not transport) errors. - Added "fail" and "restore" commands to manually control FAIL flag. - geom is now destroyed on last path disconnection. - Added optional Active/Active mode support. Unlike Active/Passive mode, load evenly distributed between all working paths. If supported by the device, it allows to significantly improve performance, utilizing bandwidth of all paths. It is controlled by -A option during creation. Disabled by default now. - Improved `status` and `list` commands output. Sponsored by: iXsystems, inc. MFC after: 1 month Notes: svn path=/head/; revision=227464
* Use __packed to prevent alignment from taking place, which otherwise mayXin LI2011-11-111-5/+5
| | | | | | | | | | | | | change the on-disk format in an incompatible way. Without this change, msdosfs created on FreeBSD/arm would not be mountable. PR: bin/162486 Submitted by: Ian Lepore <freebsd damnhippie dyndns org> Reported by: Mattia Rossi <mrossi at swin.edu.au> MFC after: 3 days Notes: svn path=/head/; revision=227454
* Note that NAT instance argument can be tablearg.Gleb Smirnoff2011-11-101-2/+2
| | | | | | | | PR: misc/162265 Submitted by: Paul Procacci <pprocacci gmail.com> Notes: svn path=/head/; revision=227419
* Remove trailing whitespace.Ed Schouten2011-11-091-2/+2
| | | | Notes: svn path=/head/; revision=227407
* Add quiet time element configuration support to ifconfig.Adrian Chadd2011-11-081-0/+36
| | | | | | | | | | | | | This allows a hostap to specify to a set of stations that they should not transmit for a certain period of time after each beacon interval has expired. This is used when searching for radar pulses or general interference. Submitted by: Himali Patel <himali.patel@sibridgetech.com> Sponsored by: Sibridge Technologies Notes: svn path=/head/; revision=227336
* Fix multi-line comment formatting.Andrey V. Elsukov2011-11-071-1/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=227296
* Fix multi-line comment formatting.Andrey V. Elsukov2011-11-071-2/+4
| | | | | | | | Pointed by: jh MFC after: 1 week Notes: svn path=/head/; revision=227295
* Improve error reporting when MBR can not be written.Andrey V. Elsukov2011-11-071-36/+62
| | | | | | | | | | | | Remove obsolete code which uses DIOCSMBR ioctl. When writing MBR first check that GEOM_MBR is available, if it is not available, then try write MBR directly to provider. If both are failed, then recommend to use gpart(8). MFC after: 2 week Notes: svn path=/head/; revision=227292
* Initialize "acc" value inside the loop to reset failed attempts.Andrey V. Elsukov2011-11-061-2/+2
| | | | | | | | PR: misc/162262 MFC after: 3 days Notes: svn path=/head/; revision=227280
* Add reference to gpart(8).Andrey V. Elsukov2011-11-061-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=227273
* Add reference to gpart(8).Andrey V. Elsukov2011-11-061-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=227272
* Add recommendation to use gpart(8) when user tries write disklabelAndrey V. Elsukov2011-11-061-4/+15
| | | | | | | | | or bootcode to already opened provider. MFC after: 1 week Notes: svn path=/head/; revision=227270
* Remove unneeded checks.Andrey V. Elsukov2011-11-061-3/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=227262
* bsdlabel(8) could automatically fill many of disklabel's deprecatedAndrey V. Elsukov2011-11-061-11/+35
| | | | | | | | | | | | | | | | fields, but user could specify some of those fields when edits disklabel with `bsdlabel -e`. But without -A flag these fields might be overwritten with default values from the virgin disklabel. So, don't overwrite such fields if they are not zero. Also add checks to prevent creating disklabel with less than DEFPARTITIONS and more than MAXPARTITIONS partitions. PR: bin/162332 Tested by: Eugene Grosbein MFC after: 1 week Notes: svn path=/head/; revision=227248
* To be in sync with GEOM_PART_BSD limit the maximum number of supportedAndrey V. Elsukov2011-11-061-1/+1
| | | | | | | | | partitions to 20. MFC after: 1 week Notes: svn path=/head/; revision=227231
* Add missing static keywords for global variables to tools in sbin/.Ed Schouten2011-11-0431-49/+48
| | | | | | | | | These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. Notes: svn path=/head/; revision=227081
* remove trailing whitespace...John-Mark Gurney2011-10-291-3/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=226908
* error if /boot/mbr is empty... This can happen on a system like armJohn-Mark Gurney2011-10-291-0/+2
| | | | | | | | | | that doesn't have a /boot/mbr, and you touch it to get past the previous error message... MFC after: 1 week Notes: svn path=/head/; revision=226907
* Remove redundant space.Pawel Jakub Dawidek2011-10-271-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226861
* Implement 'async' mode for HAST.Pawel Jakub Dawidek2011-10-273-55/+81
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226859
* Minor cleanups.Pawel Jakub Dawidek2011-10-271-1/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226857
* Reduce indentation.Pawel Jakub Dawidek2011-10-271-24/+24
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226856
* Improve comment so it doesn't suggest race is possible, but that we handlePawel Jakub Dawidek2011-10-271-1/+1
| | | | | | | | | the race. MFC after: 3 days Notes: svn path=/head/; revision=226855
* - Eliminate the need for hio_nv.Pawel Jakub Dawidek2011-10-271-25/+55
| | | | | | | | | | - Introduce hio_clear() function for clearing hio before returning it onto free queue. MFC after: 3 days Notes: svn path=/head/; revision=226854
* Monor cleanups.Pawel Jakub Dawidek2011-10-271-6/+7
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226852
* Delay resuid generation until first connection to secondary, not until firstPawel Jakub Dawidek2011-10-271-6/+3
| | | | | | | | | | write. This way on first connection we will synchronize only the extents that were modified during the lifetime of primary node, not entire GEOM provider. MFC after: 3 days Notes: svn path=/head/; revision=226851
* Correct comments.Pawel Jakub Dawidek2011-10-271-3/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226842
* Clarify disks/volumes above 2TiB support in geom_raid:Alexander Motin2011-10-261-1/+4
| | | | | | | | | | | | | - add support for volumes above 2TiB with Promise metadata format; - enforse and document other limitations: - Intel and Promise metadata formats do not support disks above 2TiB; - NVIDIA metadata format does not support volumes above 2TiB. Sponsored by: iXsystems, Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=226816
* - Add support for a "!" character in regex matching in devd(8). It invertsHiroki Sato2011-10-263-4/+19
| | | | | | | | | | | | the logic (true/false) of the matching. - Add "!usbus[0-9]+" to IFNET ATTACH notification handler in the default devd.conf to prevent rc.d/netif from running when usbus[0-9]+ is attached. Reviewed by: imp Notes: svn path=/head/; revision=226775
* Build swapon with WARNS=6.Ed Schouten2011-10-252-6/+5
| | | | | | | Don't use a variable called stat, because it collides with stat(2). Notes: svn path=/head/; revision=226742
* Add support for creating GELI devices with older metadata version for usePawel Jakub Dawidek2011-10-252-7/+84
| | | | | | | | | | | | | | | | | with older FreeBSD versions: - Add -V option to 'geli init' to specify version number. If no -V is given the most recent version is used. - If -V is given don't allow to use features not supported by this version. - Print version in 'geli list' output. - Update manual page and add table describing which GELI version is supported by which FreeBSD version, so one can use it when preparing GELI device for older FreeBSD version. Inspired by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=226733
* Revert r226726. The line was not duplicated.Pawel Jakub Dawidek2011-10-251-0/+1
| | | | | | | | Spotted by: pluknet MFC after: 3 days Notes: svn path=/head/; revision=226731
* Remove duplicated line.Pawel Jakub Dawidek2011-10-251-1/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226726
* Add 'geli version' subcommand, which will print GELI metadata version of eachPawel Jakub Dawidek2011-10-252-0/+62
| | | | | | | | | | given GEOM provider or if not providers are given it will print versions supported by userland geli(8) utility and by ELI GEOM class. MFC after: 3 days Notes: svn path=/head/; revision=226723
* When we detect GELI metadata version that is newer than the highest wePawel Jakub Dawidek2011-10-251-5/+35
| | | | | | | | | | support, inform the user about that instead of 'MD5 hash mismatch'. Suggested by: Garrett Cooper <yanegomi@gmail.com> MFC after: 3 days Notes: svn path=/head/; revision=226722
* Simplify eli_resize() function.Pawel Jakub Dawidek2011-10-251-10/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226720
* Simplify eli_dump() function and allow to dump metadata stored in backup file.Pawel Jakub Dawidek2011-10-251-13/+3
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=226719