summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mfiutil
Commit message (Collapse)AuthorAgeFilesLines
* Fix a ton of speelling errorseadler2015-10-211-4/+4
| | | | | | | arc lint is helpful Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com Differential Revision: https://reviews.freebsd.org/D3337
* mfiutil: increase buffer size to accommodate sprintf stringemaste2015-07-031-1/+1
| | | | | PR: 201289 MFC after: 1 week
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-271-2/+1
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-50/+50
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge headsjg2014-04-286-11/+206
| |\ \
| * \ \ Merge from headsjg2013-09-058-26/+525
| |\ \ \
| * \ \ \ sync from headsjg2013-04-127-4/+323
| |\ \ \ \
| * | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | |
| * | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | |
| | | | | |
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| | \ \ \ \
| *-----. \ \ \ \ Sync from headsjg2012-11-0411-115/+94
| |\ \ \ \ \ \ \ \
| * | | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | | Convert usr.sbin to LIBADDbapt2014-11-251-2/+1
| |_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking
* | | | | | | | Style (9) fixes, spaces to tabs.smh2014-09-191-50/+50
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix style issues noticed when I went to MFC r257820 MFC after: 2 days X-MFC-With: r257820 Sponsored by: Multiplay
* | | | | | | - Fix an off by one error when checking for the stop event. This resultedjhb2014-04-221-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in not showing the most recent event by default. - When the stop even is hit, break out of the outer loop to stop fetching more events. MFC after: 1 week
* | | | | | | Don't claim the adapter is idle if it is clearing a drive.jhb2014-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week
* | | | | | | Split the last gcc-specific flags off into CFLAGS.gcc. This alsodim2014-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | removes the need to use -Qunused-arguments for clang throughout the tree. MFC after: 3 days
* | | | | | | svn r251516 resized the buf argument a bit too much. Pass a hardcodedsbruno2013-12-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | size of 6 to humanize_number() to resolve this. PR: 184405 Submitted by: jhb MFC after: 2 weeks
* | | | | | | Noted that the stripe_size argument was not being displayed in the usagesbruno2013-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | message MFC after: 2 weeks
* | | | | | | mdoc: remove superfluous paragraph macro.joel2013-11-081-1/+0
| | | | | | |
* | | | | | | Add support for controlling mfi(4) controller properties:sbruno2013-11-074-1/+191
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allow user control of rebuild rate allow user control of silence/enable alarm MFC after: 2 weeks Sponsored by: Yahoo! Inc.
* | | | | | Add support to reconfigure a drive as SYSPD (real JBOD in LSIsbruno2013-08-263-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | terminology). Adds command "mfiutil syspd <drive#>" to change a drive to SYSPD. Drive will then be scanned/reported immediately as /dev/mfisyspdX by the host. "mfiutil good <drive#>" clears SYSPD mode, remove /dev/mfisyspdX and sets disk into UNCONFIGURED mode. Tested on Dell H310 SAS/SATA RAID controller. MFC after: 2 weeks Sponsored by: Yahoo! Inc.
* | | | | | Implement foreign volume handling. Allows admins to view foreign metadatasbruno2013-06-087-24/+492
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and clear or import it for use. PR: kern/172091 Submitted by: smh@freebsd.org Reviewed by: jhb@freebsd.org MFC after: 2 weeks
* | | | | | Add a remark to the effect that a manually started relearn will alwaysmarkj2013-05-131-0/+4
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | result in the battery being completely drained, even in transparent learning mode. MFC in: 3 days Sponsored by: Sandvine Inc.
* | | | | Switch to a 2-clause license.markj2013-04-081-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Approved by: emaste (co-mentor) X-MFC with: r249257
* | | | | Add support for getting and setting BBU properties related to batterymarkj2013-04-087-4/+326
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | relearning. Specifically, add subcommands to mfiutil(8) which allow the user to set the BBU and autolearn modes when the firmware supports it, and add a subcommand which kicks off a battery relearn. Reviewed by: sbruno, rstone Tested by: sbruno Approved by: rstone (co-mentor) MFC after: 2 weeks Sponsored by: Sandvine Incorporated
* | | | Remove redundant code.ed2012-10-204-60/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both mfi_flash.c and mfi_show.c contain very similar functions to print a list of firmwares. Move these routines into mfiutil.c. Reported by: jhb
* | | | More -Wmissing-variable-declarations fixes.ed2012-10-194-5/+2
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* | | Fix ARM compilation issue.mjacob2012-06-201-2/+4
| |/ |/| | | | | X-MFC: 237260
* | Add __unused macros to appropriate places in order to allow buildingeadler2012-06-196-15/+14
| | | | | | | | | | | | | | with WARNS=6 on base gcc, gcc46, and clang Approved by: cperciva MFC after: 1 week
* | Allow users with RO privilege to the device to read the RO attributes.eadler2012-06-1910-35/+41
|/ | | | | | | | PR: bin/167302 Submitted by: markham breitbach <markham@ssimicro.com> Discussed with: pjd (briefly) Approved by: cperciva MFC after: 1 week
* Decode new battery status indications.sbruno2012-05-181-0/+22
| | | | | | | Requires r235634 Reviewed by: ambrisko@ MFC after: 3 days
* MFhead_mfi r233621ambrisko2012-03-302-5/+4
| | | | | | | | | | | | | | Remove the magic mfi_array is 288 bytes and just use the sizeof the array since it is not 288 bytes. Change reporting of a "SYSTEM" disk to "JBOD" to match LSI MegaCli and firmware reporting. This means that fiutil command to "create jbod" is now a little confusing since a RAID per drive is not really what LSI defines JBOD to be. This should be fixed in the future and support added to really create LSI JBOD and enable that feature on cards that support it.
* mdoc: correct .Bd/.Bl arguments.joel2012-03-261-2/+2
| | | | Reviewed by: brueffer
* Remove superfluous paragraph macro.joel2012-03-251-1/+0
|
* Use the correct volume identifier field when parsing MR_EVT_ARG_LD_STRIPjhb2011-12-051-1/+1
| | | | | | arguments. MFC after: 2 weeks
* In build_volume(), check if arrays is allocated before traversing itsdelphij2011-11-291-3/+5
| | | | | | | | | items. While parsing the arrays input, it's possible that we reach the error path before initializing the 'arrays' pointer, which in turn leads to a NULL deference. Submitted by: Garrett Cooper MFC after: 1 week
* Avoid double free creating a new RAID with invalid command line arguments.emaste2011-11-231-0/+3
| | | | | | Submitted by: Xin Huang <xhuang sandvine com> Reviewed by: rstone@ MFC after: 1 week
* Improve battery capacity reportingemaste2011-09-271-10/+15
| | | | | | | | | | | | | | | | | | When a status pointer is passed in mfi_dcmd_command does not return an errno (if the ioctl is successful), so move the test for NO_HW_PRESENT outside of the error case. This should fix incorrect reporting for systems with a dead or no battery. Additionally, handle error codes other than NO_HW_PRESENT by omitting the battery capacity display. LSI's supercap-based parts (CV series) report their data using the same interface as battery-based parts, except that they do not include the capacity stats (state of charge, cumulative charge cycles, etc.) Reviewd by: jhb, bz Tested by: pluknet@, Garrett Cooper PR: bin/160581 MFC after: 1 week
* Move the logic to parse volume cache commands out into a separate functionjhb2011-09-022-119/+159
| | | | | | | | | and use a loop so that multiple cache commands can be strung together on the command line into a single update to the volume's properties. Reviewed by: bz Approved by: re (kib) MFC after: 1 week
* If a drive is not part of the array (i.e. missing) we need to print thebz2011-08-251-1/+1
| | | | | | | | | new line after the pd state information as well, so move it to the outside of the block. Submitted by: Mark Johnston at Sandvine Inc MFC atfer: 3 days Approved by: re (kib)
* Properly initialize an error variable to avoid returning uninitializedjhb2011-07-291-0/+1
| | | | | | | | | data when 'show drives' succeeds, often resulting in a failing exit code even though the command worked fine. Reviewed by: bz Approved by: re (kib) MFC after: 3 days
* Add global -d and -e options to either print device numbersbz2011-06-207-39/+161
| | | | | | | | | | (usually default) or enclosure:slot information as (Exx:Sxx) or both. Discussed with: jhb Reviewed by: jhb Sponsored by: Sandvine Incorporated MFC after: 1 week
* Add 'show logstate' to usage().bz2011-06-181-0/+1
| | | | MFC after: 1 week
* Contrary to when returning in all-good cases at the end of functions webz2011-06-097-62/+216
| | | | | | | | | | did not free memory (1) or close the file descriptor (2) in error cases. Reported by: Mark Johnston (1) Reported by: attilio (2) Reviewed by: jhb Sponsored by: Sandvine Incorporated MFC after: 1 week
* There are a couple of structs in mfireg.h with members named 'class'.emaste2011-06-021-4/+4
| | | | | | | | | | These cause problems when trying to include the header in a C++ project. Rename them to 'evt_class', and track the change in mfi and mfiutil. Submitted by: Mark Johnston Sponsored by: Sandvine Incorporated Reviewed by: jhb@ MFC after: 1 week
* Add a 'show progress' command that shows a summary of all in-progressjhb2011-04-293-2/+118
| | | | | | | | | commands for a given adapter. Specifically, it shows the status of any drive or volume activities currently in progress similar to the 'drive process' and 'volume progress' commands. Reviewed by: emaste MFC after: 1 week
OpenPOWER on IntegriCloud