summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
* Conditionally compile in the af_inet and af_inet6, af_nd6 modules.bz2011-05-316-6/+52
| | | | | | | | | | | | | | | | | | | | | If compiled in for dual-stack use, test with feature_present(3) to see if we should register the IPv4/IPv6 address family related options. In case there is no "inet" support we would love to go with the usage() and make the address family mandatory (as it is for anything but inet in theory). Unfortunately people are used to ifconfig IF up/down etc. as well, so use a fallback of "link". Adjust the man page to reflect these minor details. Improve error handling printing a warning in addition to the usage telling that we do not know the given address family in two places. Reviewed by: hrs, rwatson Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC after: 2 weeks
* Document kern.geom.part.check_integrity sysctl variable.ae2011-05-301-1/+17
|
* Add tablearg support for ipfw setfib.ae2011-05-302-11/+19
| | | | | PR: kern/156410 MFC after: 2 weeks
* If READ from the local node failed we send the request to the remotetrociny2011-05-291-1/+1
| | | | | | | node. There is no use in doing this for synchronization requests. Approved by: pjd (mentor) MFC after: 1 week
* Modify the umount(8) command so that it doesn't dormacklem2011-05-291-3/+4
| | | | | | | | | | | | | a sync(2) syscall before unmount(2) for the "-f" case. This avoids a forced dismount from getting stuck for an NFS mountpoint in sync() when the server is not responsive. With this commit, forced dismounts should normally work for the NFS clients, but can take up to about 1minute to complete. PR: kern/157365 Reviewed by: kib MFC after: 2 weeks
* Update the manual page to reflect the new 32K/4K defaults.mckusick2011-05-281-4/+4
| | | | Reminded by: Ivan Voras
* Add example how to create MBR and BSD schemes and install boot code.ae2011-05-271-1/+28
|
* Synchronize manpage's synopsis with program's usage. Since -l and -rae2011-05-272-5/+6
| | | | | | | keys are mutually exclusive for the `gpart show` command, then mark them so. Requested by: ru
* Raise the default blocksize for UFS/FFS filesystems frommckusick2011-05-261-2/+2
| | | | | | | | | | | | | | | | | | | 16K to 32K and the default fragment size from 2K to 4K. The rational is that most disks are now running with 4K sectors. While they can (slowly) simulate 512-byte sectors by doing a read-modify-write, it is desirable to avoid this functionality. By raising the minimum filesystem allocation to 4K, the filesystem will never trigger the small sector emulation. Also, the growth of disk sizes has lead us to double the default block size about every ten years. The rise from 8K to 16K blocks was done in 2001. So, by the 10-year metric, the time has come for 32K blocks. Discussed at: May 2011 BSDCan Developer Summit Reference: http://wiki.freebsd.org/201105DevSummit/FileSystems
* Simplify ALIGNDOWN macro.ae2011-05-241-1/+1
|
* Fix calculation of alignment for odd values. Also do not change valueae2011-05-241-2/+2
| | | | when it is already aligned.
* Keep statistics on number of BIO_READ, BIO_WRITE, BIO_DELETE and BIO_FLUSHpjd2011-05-235-0/+64
| | | | | | | | | | | 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
* To handle BIO_FLUSH and BIO_DELETE requests in secondary worker we needpjd2011-05-231-1/+7
| | | | | | | to use ioctl(2). This is why we can't use capsicum for now to sandbox secondary. Capsicum is still used to sandbox hastctl. MFC after: 1 week
* Re-encode files from ISO-8859-1 to UTF-8uqs2011-05-224-4/+4
|
* Recognize HIO_FLUSH requests.pjd2011-05-211-0/+1
| | | | MFC after: 1 week
* Document IPv6 support.pjd2011-05-201-8/+22
| | | | MFC after: 3 weeks
* If no listen address is specified, bind by default to:pjd2011-05-201-2/+0
| | | | | | | tcp4://0.0.0.0:8457 tcp6://[::]:8457 MFC after: 3 weeks
* Rename ipv4/ipv6 to tcp4/tcp6.pjd2011-05-202-10/+10
| | | | MFC after: 3 weeks
* Now that hell is fully frozen it is good time to add IPv6 support to HAST.pjd2011-05-201-75/+116
| | | | MFC after: 3 weeks
* Allow [ ] characters in strings. They might be used in IPv6 addresses.pjd2011-05-201-1/+1
| | | | MFC after: 3 weeks
* Rename tcp4 to tcp in preparation for IPv6 support.pjd2011-05-202-93/+93
| | | | MFC after: 3 weeks
* Rename proto_tcp4.c to proto_tcp.c in preparation for IPv6 support.pjd2011-05-202-1/+1
| | | | MFC after: 2 weeks
* In preparation for IPv6 support allow to specify multiple addresses topjd2011-05-194-68/+215
| | | | | | listen on. MFC after: 3 weeks
* - Add support for AF_INET6 sockets for %S format character.pjd2011-05-181-7/+26
| | | | | | | | - Use inet_ntop(3) instead of reimplementing it. - Use %hhu for unsigned char instead of casting it to unsigned int and using %u. MFC after: 1 week
* mdoc:pluknet2011-05-171-2/+2
| | | | | - use a proper macro for interface name ipfw0. - add missing section number for bpf cross reference.
* Some partitioning schemes want to have partitions that are alignedae2011-05-151-10/+14
| | | | | | | | | | | | | with geometry. And they do recalculation of user specified parameters. MBR, PC98, VTOC8, EBR schemes are doing that. For these schemes an auto alignment feature (ie. gpart add -a alignment) would not work. But it can work for GPT and BSD schemes. BSD scheme usualy is created inside MBR, so we can use knowledge about offset of MBR partition to calculate aligned values for BSD partitions. Use "offset" attribute of the parent provider for better alignment. MFC after: 2 weeks
* When setting media always and not just in case of switching to IFM_AUTOmarius2011-05-151-5/+1
| | | | | | | | | | | | | | | | | | clear the options of the current media, i.e. only inherit the instance, which matches what NetBSD does. Without this it's really non-intuitive that the following sequence: ifconfig bge0 media 1000baseT mediaopt full-duplex ifconfig bge0 media 100baseTX results in 100baseTX full-duplex to be set or that: ifconfig bge0 media autoselect mediaopt flowcontrol ifconfig bge0 media 1000baseT mediaopt full-duplex tries to set 1000baseT full-duplex with flowcontrol, which isn't suported und thus fails while the following: ifconfig re0 media 1000baseT mediaopt flowcontrol,full-duplex ifconfig re0 media autoselect just switches to autoselection without flowcontrol. MFC after: 2 weeks
* Simplify the code a bit. For own providers GEOM_PART always providesae2011-05-151-61/+14
| | | | | | "start" and "end" config attributes. MFC after: 1 week
* Currently we are unable to use capsicum for the primary worker process,pjd2011-05-145-22/+44
| | | | | | | | | | | | | | | | | 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
* When using capsicum to sanbox, still use other methods first, just in casepjd2011-05-141-10/+13
| | | | one of them have some problems.
* Typo. For USB devices, 'serial' should be 'sernum'.bms2011-05-101-1/+1
| | | | See sys/dev/usb/usb_device.c for what devctl_notify() gets.
* We now have multiple filesystems (UFS, ZFS, ...), so for tools that onlygavin2011-05-083-8/+8
| | | | | | | | operate on one type of filesystem, mention this. While here, capitalise the use of "UFS" in growfs.8 to match other uses of the term in other man pages. MFC after: 1 week
* Allow to specify remote as 'none' again which was broken by r219351, wherepjd2011-05-081-1/+8
| | | | | | | 'none' was defined as a value for checksum. Reported by: trasz MFC after: 1 week
* Document the following sysctls:pjd2011-05-081-2/+22
| | | | | | | | | kern.geom.eli.version kern.geom.eli.key_cache_limit kern.geom.eli.key_cache_hits kern.geom.eli.key_cache_misses MFC after: 1 week
* Fix isitme(), which is used to check if node-specific configurationtrociny2011-05-081-1/+3
| | | | | | | belongs to our node, and was returning false positive if the first part of a node name matches short hostname. Approved by: pjd (mentor)
* Implemented a mount option "nocto" that disables cache coherencyru2011-05-041-1/+12
| | | | | | | | checking at open time. It may improve performance for read-only NFS mounts. Use deliberately. MFC after: 1 week Reviewed by: rmacklem, jhb (earlier version)
* Add "-a alignment" option to gpart(8). When it specified gpart(8)ae2011-05-032-27/+99
| | | | | | | tries to align partition start offset and size to be multiple of alignment value. MFC after: 2 weeks
* recoverdisk(8): treat output file consistently and abort on EINVALuqs2011-05-012-26/+42
| | | | | | | | | | | | | | | This improves usability a little as we no longer require using touch. Also reword the manpage wrt. parameters and fix usage() [1] With no media in a cd(4) drive, the reads will loop producing EINVAL, abort in that case [2]. Document the shortcoming of sectorsize and MAXPHYS (a quick solution to this might be having MAXPHYS as the "bigsize", in short testing it didn't make a difference on throughput). Submitted by: arundel [1] PR: bin/154528 [2]
* Fix the Makefile for mount_nfs so that it creates armacklem2011-05-011-1/+1
| | | | link for mount_oldnfs.8 instead of mount_newnfs.8.
* Add an -E option to mirror newfs's. The idea is that if you have a systemdes2011-04-295-7/+67
| | | | | | | | | | | | | | | | | | | that was built before ffs grew support for TRIM, your filesystem will have plenty of free blocks that the flash chip doesn't know are free, so it can't take advantage of them for wear leveling. Once you've upgraded your kernel, you enable TRIM on the filesystem (tunefs -t enable), then run fsck_ffs -E on it before mounting it. I tested this patch by half-filling an mdconfig'ed filesystem image, running fsck_ffs -E on it, then verifying that the contents were not damaged by comparing them to a pristine copy using rsync's checksum functionality. There is no reliable way to test it on real hardware. Many thanks to mckusick@, who provided the tricky parts of this patch and reviewed the final version. Reviewed by: mckusick@ MFC after: 3 weeks
* Somewhere around the 473rd time I mistyped "mdconfig file" instead ofdes2011-04-292-20/+49
| | | | | | | "mdconfig -f file", I decided that it would be easier to make mdconfig DWIM than to teach my fingers to type the correct command line. MFC after: 3 weeks
* Another man page update related to the switchover of thermacklem2011-04-291-2/+2
| | | | | | | NFS clients done by r221124. This is a content change. Submitted by: jh
* Update man pages related to the change in default NFS clientrmacklem2011-04-281-4/+8
| | | | | | applied by r221124. I also deleted references to idmapd, since that daemon no longer exists. This is a content change.
* whitespace nit - sorry for the churndes2011-04-271-2/+2
|
* whitespace nitdes2011-04-271-1/+1
|
* This patch changes head so that the default NFS client is now the newrmacklem2011-04-273-11/+7
| | | | | | | | | | | | | | NFS client (which I guess is no longer experimental). The fstype "newnfs" is now "nfs" and the regular/old NFS client is now fstype "oldnfs". Although mounts via fstype "nfs" will usually work without userland changes, an updated mount_nfs(8) binary is needed for kernels built with "options NFSCL" but not "options NFSCLIENT". Updated mount_nfs(8) and mount(8) binaries are needed to do mounts for fstype "oldnfs". The GENERIC kernel configs have been changed to use options NFSCL and NFSD (the new client and server) instead of NFSCLIENT and NFSSERVER. For kernels being used on diskless NFS root systems, "options NFSCL" must be in the kernel config. Discussed on freebsd-fs@.
* Mechanical whitespace cleanup.des2011-04-276-36/+35
| | | | MFC after: 3 weeks
* Fix boo-boo in previous commit.des2011-04-271-7/+7
| | | | MFC after: 3 weeks
* Alphabetize the options. No date bump since no actual change to the text.des2011-04-271-4/+4
| | | | MFC after: 3 weeks
* Add missing ifdef. This fixes build with NO_OPENSSL.trociny2011-04-261-0/+2
| | | | | | Reported by: Pawel Tyll <ptyll@nitronet.pl> Approved by: pjd (mentor) MFC after: 1 week
OpenPOWER on IntegriCloud