summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* When creating connection on behalf of primary worker, set pjdlog prefixpjd2011-03-211-0/+4
| | | | | | | to resource name and role, so that any logs related to that can be identified properly. MFC after: 1 week
* If there is any traffic on one of out descriptors, we were not checking forpjd2011-03-211-2/+14
| | | | | | | long running hooks. Fix it by not using select(2) timeout to decide if we want to check hooks or not. MFC after: 1 week
* Use 'list scan' in favor of 'scan', as 'scan' has a different purpose.gjb2011-03-201-1/+1
| | | | | Pointed out by: bschmidt MFC after: 1 day
* Use resolvconf(8) to update /etc/resolv.conf.ume2011-03-181-25/+46
| | | | | If you don't want to use resolvconf(8) to update /etc/resolv.conf, you can put resolvconf_enable="NO" into /etc/dhclient-enter-hooks.
* Add resolvconf(8) which manages resolv.conf.ume2011-03-182-0/+38
|
* For secondary, set 2 * HAST_KEEPALIVE seconds timeout for incomingtrociny2011-03-173-9/+8
| | | | | | | | | | connection so the worker will exit if it does not receive packets from the primary during this interval. Reported by: Christian Vogt <Christian.Vogt@haw-hamburg.de> Tested by: Christian Vogt <Christian.Vogt@haw-hamburg.de> Approved by: pjd (mentor) MFC after: 1 week
* Remove #include needed for debugging.pjd2011-03-151-1/+0
| | | | MFC after: 1 week
* In command line options allow size to be specified using k/M/G/Ttrociny2011-03-132-25/+9
| | | | | | | suffixes. Approved by: pjd (mentor) MFC after: 1 week
* Fix grammar.ae2011-03-121-2/+2
| | | | | Pointed out: Ben Kaduk MFC after: 2 weeks
* Remove unneeded newline.gjb2011-03-121-1/+0
| | | | MFC after: 1 week
* Add example of using 'scan' for wireless networks, similarly togjb2011-03-121-0/+4
| | | | | | | | OpenBSD's ifconfig(8). PR: 151952 Submitted by: Jared (rhyous of yahoo com) MFC after: 1 week
* Document GEOM_PART_EBR_COMPAT option.ae2011-03-121-1/+7
| | | | MFC after: 2 weeks
* Make workers inherit debug level from the main process.trociny2011-03-112-2/+6
| | | | | Approved by: pjd (mentor) MFC after: 1 week
* Widen fields that display partition offset/length.uqs2011-03-102-6/+5
| | | | | | | | | | This makes partitions between 50GiB and 2TiB (16TiB for 4k drives) print correctly aligned. While here, fix type of secsize. g_sectorsize() returns ssize_t, don't store this in an unsigned var. Bump WARNS to 6. MFC after: 4 weeks
* Remove dead code in bsdlabel depending on __alpha__uqs2011-03-102-38/+4
|
* Remove bsdlabel test-script that was full of broken assumptions.uqs2011-03-102-181/+0
| | | | | | | - the default label now includes an a: partition by default - the c: partition is no longer exported via devfs - writing of the labels usually works in all cases, though the script assumes half of them have to fail
* Remove bsdlabel.5, which hasn't been installed in over 7 yearsuqs2011-03-103-523/+0
| | | | and contains little more than an out-dated copy of <sys/disklabel.h>
* Change example to not be controversial.pjd2011-03-091-6/+8
| | | | | | | | I'm sorry to anyone who felt offended by this. PR: docs/155385 Reported by: maga_lena <mirto@riseup.net> MFC after: 1 week
* It is better to sometimes have not aligned columns thanae2011-03-081-6/+0
| | | | | | often have wrapped lines. MFC after: 2 weeks
* Add -p option to `gpart show` command to show provider's names ofae2011-03-082-14/+40
| | | | | | | partitions instead of partition's indexes. This may be useful with GPT partitioning scheme or EBR without GEOM_PART_EBR_COMPAT option. MFC after: 2 weeks
* Unbreak the build.pjd2011-03-071-5/+5
| | | | MFC after: 2 weeks
* Print some of the numbers in human readable form (using %N).pjd2011-03-071-6/+10
| | | | MFC after: 2 weeks
* - Log size of data to synchronize in human readable form (using %N).pjd2011-03-071-6/+18
| | | | | | | - Log synchronization time (using %T). - Log synchronization speed in human readable form (using %N). MFC after: 2 weeks
* Use %S to print IP address and port number.pjd2011-03-071-18/+2
| | | | MFC after: 2 weeks
* - Turn on printf extentions.pjd2011-03-073-2/+92
| | | | | | | | | | - Load support for %T for pritning time. - Add support for %N for printing number in human readable form. - Add support for %S for printing sockaddr structure (currently only AF_INET family is supported, as this is all we need in HAST). - Disable gcc compile-time format checking as this will no longer work. MFC after: 2 weeks
* Provides three states for pjdlog_initialized, so we can also tell thatpjd2011-03-071-25/+29
| | | | | | this is fist initialization ever. MFC after: 2 weeks
* Allow to compress on-the-wire data using two algorithms:pjd2011-03-0614-4/+1037
| | | | | | | | | | | - HOLE - it simply turns all-zero blocks into few bytes header; it is extremely fast, so it is turned on by default; it is mostly intended to speed up initial synchronization where we expect many zeros; - LZF - very fast algorithm by Marc Alexander Lehmann, which shows very decent compression ratio and has BSD license. MFC after: 2 weeks
* Allow to checksum on-the-wire data using either CRC32 or SHA256.pjd2011-03-0614-195/+467
| | | | MFC after: 2 weeks
* Revert r217871.dougb2011-02-251-6/+2
|
* Fix typos - remove duplicate "is".brucec2011-02-231-1/+1
| | | | | | PR: docs/154934 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Xref makefs(8).jh2011-02-221-1/+2
| | | | | PR: 154708 Submitted by: jhs
* Add the -j option to enable soft updates journaling when creatingmckusick2011-02-162-3/+18
| | | | | | a new file system. Reviewed by: Kostik Belousov <kostikbel@gmail.com>
* Note that a UFS filesystem can have up to 20 active snapshots.keramida2011-02-151-1/+10
| | | | | | PR: docs/151104 Submitted by: Aldis Berjoza <aldis@bsdroot.lv> MFC after: 3 days
* Add a check to make sure the provider name is "mdN" before printing thebrucec2011-02-141-1/+5
| | | | | | | unit number. Suggested by: jh MFC after: 3 days
* Only print the unit number when invoked with the -n flag.brucec2011-02-131-1/+1
| | | | | | PR: bin/144300 Submitted by: arundel MFC after: 3 days
* In checker, read journal by sectors.kib2011-02-123-12/+19
| | | | | | | | | | | Due to UFS insistence to pretend that device sector size is 512 bytes, sector size is obtained from ioctl(DIOCGSECTORSIZE) for real devices, and from the label otherwise. The file images without label have to be made with 512 sector size. In collaboration with: pho Reviewed by: jeff Tested by: bz, pho
* When creating a directory entry for the journal, always read at leastkib2011-02-121-10/+20
| | | | | | | | | | | the fragment, and write the full block. Reading less might not work due to device sector size bigger then size of direntries in the last directory fragment. Reported by: bz In collaboration with: pho Reviewed by: jeff Tested by: bz, pho
* When we decide to unlink socket file, sun_path must be set. If it is set,pjd2011-02-091-1/+6
| | | | | | but there is problem unlinking the file, log a warning. MFC after: 1 week
* Explicitly include <sys/types.h> as suggested by getpid(2) and don't rely onpjd2011-02-081-0/+1
| | | | | | <sys/un.h> including what's needed. MFC after: 1 week
* Unlink UNIX domain socket file only if:pjd2011-02-081-5/+16
| | | | | | | | | 1. The descriptor is the one we are listening on (not the one when we connect as a client and not the one which is created on accept(2)). 2. Descriptor was created by us (PID matches with the PID stored on bind(2)). Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* Now that we break the loop on fstat(2) failure we no longer need to satisfypjd2011-02-061-2/+0
| | | | | | gcc's imperfections. MFC after: 1 week
* Add (void) cast before snprintf(3)s for which we are not interested in returnpjd2011-02-061-13/+13
| | | | | | values. MFC after: 1 week
* Treat fstat(2) failure (different than EBADF) as fatal error.pjd2011-02-061-0/+1
| | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* Open syslog when logging sysconf(3) failure.pjd2011-02-061-0/+4
| | | | | Reported by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* Close more descriptors that can be open if the worker process for the givenpjd2011-02-061-0/+6
| | | | | | | resource is already running. Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 1 week
* Setup another socketpair between parent and child, so that primary sandboxedpjd2011-02-035-31/+143
| | | | | | | | | worker can ask the main privileged process to connect in worker's behalf and then we can migrate descriptor using this socketpair to worker. This is not really needed now, but will be needed once we start to use capsicum for sandboxing. MFC after: 1 week
* Add missing locking after moving keepalive_send() to remote send threadpjd2011-02-031-3/+9
| | | | | | in r214692. MFC after: 1 week
* Drop privileges after connecting to hastd, but before sending or receivingpjd2011-02-031-0/+5
| | | | | | anything. MFC after: 1 week
* Let the caller log info about successful privilege drop.pjd2011-02-033-2/+2
| | | | | | We don't want to log this in hastctl. MFC after: 1 week
* Add missing argument after r218192.bz2011-02-021-1/+1
|
OpenPOWER on IntegriCloud