aboutsummaryrefslogtreecommitdiff
path: root/sbin/hastctl
Commit message (Collapse)AuthorAgeFilesLines
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-271-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-05-091-1/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318000
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-041-2/+2
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Switch hastctl and hastd to libmd instead of openssl for sha256Allan Jude2017-02-041-5/+1
| | | | | | | | | | Reviewed by: bapt, brnrd, pjd Approved by: pjd (maintainer) Sponsored by: ScaleEngine Inc., FOSDEM DevSummit Differential Revision: https://reviews.freebsd.org/D9423 Notes: svn path=/head/; revision=313192
* Add missing history sections to a number of storage related man pagesAllan Jude2016-09-161-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gmultipath.8: Add HISTORY Adjust sentences with bad phrases picked up by igor ggatec.8: Add HISTORY ggated.8: Add HISTORY ggatel.8: Add HISTORY Seperate out sentence as advised by igor. hastctl.8: Add HISTORY hastd.8: Add HISTORY Fix sentence highlighted by igor. iscontrol.8: Add HISTORY mdmfs.8: Add HISTORY Address issues raised by igor mount_nfs.8: Add HISTORY Not sure where mount_nfs first showed up, but the verison used in the BSD's originates from 4.4BSD according to CSRG archive. Though commercial offerings from Sun and others covers older systems, eg https://groups.google.com/forum/#!topic/net.unix-wizards/lMe7aQikqJI nandfs.8: Add HISTORY Adjust sentence in description to address bad phrase highlighted by igor. nvmecontrol.8: Add HISTORY PR: 212491 PR: 212498 PR: 212499 PR: 212500 PR: 212501 PR: 212502 PR: 212505 PR: 212508 PR: 212540 PR: 212543 PR: 212546 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Notes: svn path=/head/; revision=305861
* MFHGlen Barber2016-03-021-6/+0
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-6/+0
| | | | | | | | | | | | | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* | Create a package for HAST.Glen Barber2016-02-081-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295415
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+28
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-4/+3
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ Merge headSimon J. Gerraty2014-04-281-0/+7
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | | Updated dependenciesSimon J. Gerraty2013-10-131-1/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | | | Merge from headSimon J. Gerraty2013-09-052-13/+8
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ \ sync from headSimon J. Gerraty2013-04-122-20/+82
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-251-4/+2
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-201-1/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267667
* | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffWarner Losh2014-05-061-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | from the latter. Notes: svn path=/head/; revision=265420
* | | | Make hastctl list command output current queue sizes.Mikolaj Golub2013-10-261-0/+7
| |_|/ |/| | | | | | | | | | | | | | | | | | | | Reviewed by: pjd MFC after: 1 month Notes: svn path=/head/; revision=257155
* | | Make hastctl(1) ('list' command) output a worker pid.Mikolaj Golub2013-07-011-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: pjd MFC after: 3 days Notes: svn path=/head/; revision=252472
* | | Get rid of libl dependency. We needed it only to provide yywrap. ButMikolaj Golub2013-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | yywrap is not necessary when parsing a single hast.conf file. Suggested by: kib Reviewed by: pjd Notes: svn path=/head/; revision=250503
* | | Remove code duplication.Mikolaj Golub2013-04-211-11/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=249741
* | | Add the Clang specific -Wmissing-variable-declarations to WARNS=6.Ed Schouten2013-04-191-0/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compiler flag enforces that that people either mark variables static or use an external declarations for the variable, similar to how -Wmissing-prototypes works for functions. Due to the fact that Yacc/Lex generate code that cannot trivially be changed to not warn because of this (lots of yy* variables), add a NO_WMISSING_VARIABLE_DECLARATIONS that can be used to turn off this specific compiler warning. Announced on: toolchain@ Notes: svn path=/head/; revision=249657
* | Rename 'status' command to 'list' and introduce new 'status' which producesDmitry Morozovsky2013-03-142-5/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | more terse output more observable for both scripts and humans. Also, it shifts hastctl closer to GEOM utilities with their list/status command pairs. Approved by: pjd MFC after: 4 weeks Notes: svn path=/head/; revision=248291
* | Removed redundant includes.Pawel Jakub Dawidek2013-03-141-10/+0
| | | | | | | | Notes: svn path=/head/; revision=248286
* | Fix casting.Mikolaj Golub2013-02-261-5/+5
| | | | | | | | | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=247345
* | Add i/o error counters to hastd(8) and make hastctl(8) displayMikolaj Golub2013-02-251-0/+6
|/ | | | | | | | | | them. This may be useful for detecting problems with HAST disks. Discussed with and reviewed by: pjd MFC after: 1 week Notes: svn path=/head/; revision=247281
* Fixes to man8 groff mandoc style, usage mistakes, or typos.Warren Block2012-05-241-1/+1
| | | | | | | | | | PR: 168016 Submitted by: Nobuyuki Koganemaru Approved by: gjb MFC after: 3 days Notes: svn path=/head/; revision=235873
* For functions that return -1 on failure check exactly for -1 and not forPawel Jakub Dawidek2012-01-101-9/+9
| | | | | | | | | any negative number. MFC after: 3 days Notes: svn path=/head/; revision=229945
* Spelling fixes for sbin/Ulrich Spörlein2012-01-071-1/+1
| | | | Notes: svn path=/head/; revision=229778
* Use NO_WCAST_ALIGN for usr.bin/hastctl and usr.bin/hastd; the alignmentDimitry Andric2011-12-191-0/+1
| | | | | | | | | | warnings in sbin/hastd/lzf.c are only emitted for i386 and amd64, and there they can be safely ignored. MFC after: 1 week Notes: svn path=/head/; revision=228712
* 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
* Prefer PJDLOG_ASSERT()/PJDLOG_ABORT() over assert().Pawel Jakub Dawidek2011-09-271-6/+5
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=225785
* When exiting with error because of an invalid command line argumentMikolaj Golub2011-07-131-3/+3
| | | | | | | | | use errx(3), not err(3), and the exit code from sysexits(3). Approved by: pjd (mentor) Notes: svn path=/head/; revision=223976
* Compile hastd and hastctl with capsicum support.Pawel Jakub Dawidek2011-06-271-0/+1
| | | | | | | X-MFC after: capsicum merge Notes: svn path=/head/; revision=223586
* Keep statistics on number of BIO_READ, BIO_WRITE, BIO_DELETE and BIO_FLUSHPawel Jakub Dawidek2011-05-231-0/+11
| | | | | | | | | | | | | | requests as well as number of activemap updates. Number of BIO_WRITEs and activemap updates are especially interesting, because if those two are too close to each other, it means that your workload needs bigger number of dirty extents. Activemap should be updated as rarely as possible. MFC after: 1 week Notes: svn path=/head/; revision=222228
* Currently we are unable to use capsicum for the primary worker process,Pawel Jakub Dawidek2011-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | because we need to do ioctl(2)s, which are not permitted in the capability mode. What we do now is to chroot(2) to /var/empty, which restricts access to file system name space and we drop privileges to hast user and hast group. This still allows to access to other name spaces, like list of processes, network and sysvipc. To address that, use jail(2) instead of chroot(2). Using jail(2) will restrict access to process table, network (we use ip-less jails) and sysvipc (if security.jail.sysvipc_allowed is turned off). This provides much better separation. MFC after: 1 week Notes: svn path=/head/; revision=221899
* Fix assert messages.Mikolaj Golub2011-04-261-2/+2
| | | | | | | Approved by: pjd (mentor) Notes: svn path=/head/; revision=221074
* Remove hast_proto_recv(). It was used only in one place, whereMikolaj Golub2011-04-171-1/+1
| | | | | | | | | | | hast_proto_recv_hdr() may be used. This also fixes the issue (introduced by r220523) with hastctl, which crashed on assert in hast_proto_recv_data(). Suggested and approved by: pjd (mentor) Notes: svn path=/head/; revision=220744
* hastd(8) maintains a map of dirty extents, not hastctl(8). Fix this.Mikolaj Golub2011-04-101-2/+2
| | | | | | | | Approved by: pjd (mentor) MFC after: 3 days Notes: svn path=/head/; revision=220520
* Forgot to commit this as part of r219873.Pawel Jakub Dawidek2011-03-221-1/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=219884
* When dropping privileges prefer capsicum over chroot+setgid+setuid.Pawel Jakub Dawidek2011-03-211-2/+1
| | | | | | | | | | | | We can use capsicum for secondary worker processes and hastctl. When working as primary we drop privileges using chroot+setgid+setuid still as we need to send ioctl(2)s to ggate device, for which capsicum doesn't allow (yet). X-MFC after: capsicum is merged to stable/8 Notes: svn path=/head/; revision=219847