aboutsummaryrefslogtreecommitdiff
path: root/sbin/ggate
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-163-6/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-168-8/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-165-10/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-125-5/+5
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-193-7/+0
|
* ggatec: Use ANSI C definition for init_initial_buffer_size.John Baldwin2022-02-011-1/+1
| | | | | This fixes -Wstrict-prototypes and -Wold-style-definition warnings from GCC 9.
* Various fixes for ggatec and ggatedAlan Somers2022-01-033-39/+88
| | | | | | | | | | Dynamically size buffers in ggatec. Instead of static size on the stack. Add flush support. Submitted by: Johannes Totz <jo@bruelltuete.com> MFC after: 2 weeks Reviewed by: asomers Differential Revision: https://reviews.freebsd.org/D31722
* pkgbase: Create a FreeBSD-ggate packageEmmanuel Vadot2021-09-073-0/+3
| | | | | | Move ggate* to it. Differential Revision: https://reviews.freebsd.org/D31790
* Fix remote code execution in ggatec(8).Gordon Tetlow2021-08-241-0/+20
| | | | | | Approved by: so Security: SA-21:14.ggatec Security: CVE-2021-29630
* build: remove LIBPTHREAD/LIBTHR build optionsKyle Evans2021-01-221-7/+2
| | | | | | | | | | | | | | | | | | WITHOUT_LIBTHR has been broken for a little over five years now, since the xz 5.2.0 update introduced a hard liblzma dependency on libthr, and building a useful system without threading support is becoming increasingly more difficult. Additionally, in the five plus years that it's been broken more reverse dependencies have cropped up in libzstd, libsqlite3, and libcrypto (among others) that make it more and more difficult to reconcile the effort needed to fix these options. Remove the broken options. PR: 252760 Reviewed by: brooks, emaste, kib Differential Revision: https://reviews.freebsd.org/D28263
* ggate: Fix ggated/ggatec debug print of offsets.Mark Johnston2020-09-092-13/+16
| | | | | | | | | | | | The request offset and length are always unsigned, so print them as such. Submitted by: Yoshihiro Ota <ota@j.email.ne.jp> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21388 Notes: svn path=/head/; revision=365502
* ggated(8): Avoid doubly opening the requested disk device.Mark Johnston2020-08-311-1/+13
| | | | | | | | | | | | | | | | - Initialize the disk device fd field in connection_new(). - Close the disk device after handing the connection over to a child worker. - Avoid re-opening a disk device for each connection from the same client, avoiding an fd leak. PR: 132845 Submitted by: Yoshihiro Ota <ota@j.email.ne.jp> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26168 Notes: svn path=/head/; revision=364995
* Fix typo not -> nor and add 'the' because we are talking about specific flagsWarner Losh2019-09-061-2/+2
| | | | | | | | | | and make the punctuation parallel between the three cases. Submitted by: Yoshihiro Ota-san Differential Revision: https://reviews.freebsd.org/D21530 Notes: svn path=/head/; revision=351936
* ggated: do not expose stack data in sendfail()Ed Maste2018-12-041-0/+1
| | | | | | | | | admbugs: 590 Submitted by: Fabian Keil <fk@fabiankeil.de> Obtained from: ElectroBSD Notes: svn path=/head/; revision=341470
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-275-0/+10
| | | | | | | | | | | | | | | | | 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-313-3/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* sbin: normalize paths using SRCTOP-relative paths or :H when possibleEnji Cooper2017-03-043-6/+6
| | | | | | | | | | This simplifies make logic/output MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=314656
* Add missing history sections to a number of storage related man pagesAllan Jude2016-09-163-4/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove last remnants of acd(4), mcd(4), and scd(4) drivers.Alex Kozlov2016-08-252-6/+6
| | | | | | | Approved by: jhb Notes: svn path=/head/; revision=304814
* Add pidfile support to ggated(8)Enji Cooper2016-01-283-25/+52
| | | | | | | | | | | | | | | | | | | | The tests will manipulate the system daemon today, which can cause undesired service interruption when the tests are run. This change allows the geom_gate tests to be run with an arbitrary ggated(8) daemon / geom_gate(4) device pairing. Other changes: - Sort #includes - Use a more common idiom for parsing options with getopt(3) Differential Revision: https://reviews.freebsd.org/D4836 MFC after: 2 weeks Reviewed by: bjk (manpages), pjd (maintainer timeout) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294973
* Cleanup; mostly language with a little bit of mdoc style.Christian Brueffer2015-07-143-17/+18
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=285538
* Unbreak ggatec and ggatel on i386 after r238119, which added two moreChristian Brueffer2015-07-142-0/+2
| | | | | | | | | | | | | | | | 'struct g_gate_ctl_create' fields. While the behaviour was technically undefined on other architectures as well, on the reporter's amd64 systems the uninitialized bytes the kernel cares about were always zero so everything worked as expected. PR: 197309, 199559 Submitted by: ota@j.email.ne.jp, Fabian Keil Reviewed by: pjd MFC after: 1 week Notes: svn path=/head/; revision=285531
* If ggated's exports_find() fails, the connection is removed beforeChristian Brueffer2015-07-141-1/+1
| | | | | | | | | | | | | | | | | (trying to) report the problem to the client. sendfail() is called with an already closed socket and thus it fails to inform the client about the problem. Fix this by calling sendfail() before connection_remove(). PR: 195944 Submitted by: Fabian Keil Reviewed by: pjd MFC after: 1 week Notes: svn path=/head/; revision=285529
* Add META_MODE support.Simon J. Gerraty2015-06-133-0/+69
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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-083-6/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-275-34/+32
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-193-3/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-163-3/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-103-0/+6
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2014-05-081-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * | | Updated dependenciesSimon J. Gerraty2013-03-113-0/+3
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-163-6/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync from headSimon J. Gerraty2012-11-044-7/+7
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-223-0/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | - ggatel.8 currently doesn't mention the 'rescue' command andJason Helfman2015-04-091-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | documents a non-existing 'attach' command instead. - while here address a spelling error PR: 199111 Differential Revision: https://reviews.freebsd.org/D2259 Submitted by: fk@fabiankeil.de Obtained from: ElectroBSD Approved by: wblock (mentor) MFC after: 1 week Notes: svn path=/head/; revision=281324
* | | | | Add articles, avoid use of "you", simplify a few sentences.Warren Block2015-04-021-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=280988
* | | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-253-6/+3
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | | use .Mt to mark up email addresses consistently (part1)Baptiste Daroussin2014-06-203-3/+3
| |_|/ |/| | | | | | | | | | | | | | | | | | | | 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
* | Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-193-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible. Notes: svn path=/head/; revision=241720
* | Make sure the compiler knows g_gate_xvlog() and g_gate_xlog() do notDimitry Andric2012-08-061-2/+2
|/ | | | | | | | | | | return. This silences a warning from clang 3.2 about uninitialized use of the variable 'mediasize' in sbin/ggate/shared/ggate.c. Reviewed by: pjd MFC after: 1 week Notes: svn path=/head/; revision=239106
* Because ggatel(8) operates on local GEOM providers, use unlimited queue size inPawel Jakub Dawidek2011-04-022-18/+4
| | | | | | | | | GEOM GATE to fix the issue described in r220264. This also means that we no longer need -q option, remove it. Don't bother to leaving it as a no-op, as ggatel(8) is just an example utility. Notes: svn path=/head/; revision=220265
* Please welcome HAST - Highly Avalable Storage.Pawel Jakub Dawidek2010-02-182-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | HAST allows to transparently store data on two physically separated machines connected over the TCP/IP network. HAST works in Primary-Secondary (Master-Backup, Master-Slave) configuration, which means that only one of the cluster nodes can be active at any given time. Only Primary node is able to handle I/O requests to HAST-managed devices. Currently HAST is limited to two cluster nodes in total. HAST operates on block level - it provides disk-like devices in /dev/hast/ directory for use by file systems and/or applications. Working on block level makes it transparent for file systems and applications. There in no difference between using HAST-provided device and raw disk, partition, etc. All of them are just regular GEOM providers in FreeBSD. For more information please consult hastd(8), hastctl(8) and hast.conf(5) manual pages, as well as http://wiki.FreeBSD.org/HAST. Sponsored by: FreeBSD Foundation Sponsored by: OMCnet Internet Service GmbH Sponsored by: TransIP BV Notes: svn path=/head/; revision=204076
* Style nits.Pawel Jakub Dawidek2010-02-182-5/+5
| | | | Notes: svn path=/head/; revision=204075
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.Antoine Brodin2009-12-281-2/+2
| | | | | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month Notes: svn path=/head/; revision=201145
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-2/+0
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* The signature for a pthread function requires that itMike Makonnen2008-06-261-0/+6
| | | | | | | | | | | | | | return a pointer to a void. The send_thread() and disk_thread() funtions; however, do not have a return value because they run for the duration of the daemon's lifetime. This causes gcc to barf when running with -O3. Make these functions return a null pointer to quiet it. PR: bin/124342 Submitted by: Garrett Cooper <gcooper@FreeBSD.org> (minus his comments) MFC after: 1 week Notes: svn path=/head/; revision=180020
* Fix spellingOleksandr Tymoshenko2008-06-201-2/+2
| | | | | | | | PR: kern/124723 Event: Bugathon#5 Notes: svn path=/head/; revision=179900
* Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longerRuslan Ermilov2008-03-291-1/+1
| | | | | | | build libkse. This should fix WITHOUT_LIBTHR builds as a side effect. Notes: svn path=/head/; revision=177714
* Tweak the handling of "WITHOUT_LIBPTHREAD". Also remove the accidentalDavid E. O'Brien2007-10-091-1/+1
| | | | | | | | | | treatment of 'LIBKSE' as an "old style" knob. Submitted by: ru Approved by: re(kensmith) Notes: svn path=/head/; revision=172500