summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernelrodrigc2011-10-092-1/+35
| | | | | | | | | | | | | | | | | | | | | option is defined. This sysctl can be queried by feature_present(3). Query for this feature in /sbin/atacontrol and /usr/sbin/burncd. If these utilities detect that ATA_CAM is enabled, then these utilities will error out. These utilities are compatible with the old ATA driver, but are incomptible with the new ATA_CAM driver. By erroring out, we give end-users an idea as to what remedies to use, and reduce the need for them to file PR's. For atacontrol, camcontrol must be used instead, and for burncd, alternative utilties from the ports collection must be used such as sysutils/cdrtools. In future, maybe someone can re-write burncd to work with ATA_CAM, but at least for now, we give a somewhat useful error message to end users. PR: 160979 Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com> Reported by: Joe Barbish <fbsd8 at a1poweruser dot com> MFC after: 3 days
* Add support to makefs(8) to add UFS labels to images.nwhitehorn2011-10-094-1/+12
| | | | | Submitted by: avg MFC after: 3 days
* Avoid magicking into existence sub-partitions due to leftover blocks whennwhitehorn2011-10-081-11/+22
| | | | | | | | creating new ones by destroying any geom that may have come into existence immediately after adding a partition. The EBR partition scheme is particularly enthusiastic about false positives in this case. MFC after: 3 days
* Usability enhancements: do not allow setting a mountpoint on bsdlabelnwhitehorn2011-10-081-1/+30
| | | | | | | | container partitions, which didn't do anything anyway, and check for an existing freebsd-boot partition before bothering the user to make one. PR: bin/160931 MFC after: 3 days
* Work around some behavior of gpart that I absolutely do not understand innwhitehorn2011-10-074-62/+42
| | | | | | | | order to make every operation of the partition editor fully revertable. Under *no circumstances* will it any longer touch the disks until the user presses Finish and confirms it. MFC after: 3 days
* Move "Exit" to the first entry in the list, so that it is the defaultnwhitehorn2011-10-061-2/+2
| | | | | | | choice. PR: bin/160913 MFC after: 3 days
* Ask if you want to set the keymap before invoking kdbmap to preventnwhitehorn2011-10-061-0/+2
| | | | | | | confusion. PR: bin/160913 MFC after: 3 days
* portsnap: Detect error immediately if we can't fetch the snapshot metadata.jilles2011-10-041-3/+3
| | | | | | | Also add some quotes around command substitution where useful and possible. Reviewed by: cperciva MFC after: 1 week
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-0365-23030/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* Get rid of major/minor number distinction.ed2011-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* 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
* Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasingkensmith2011-09-261-1/+3
| | | | | | it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit)
* Remove RA timer on an interface with !IFF_UP actively after starting to sendhrs2011-09-201-0/+15
| | | | | | | | | clean-up RA messages for shutting down. The RA timers could prevent the rtadvd daemon from shutting down because ra_output() just ignored !IFF_UP interfaces and TRANSITIVE->UNCONFIGURED state transition never happened due to it. Spotted by: kib Approved by: re (bz)
* Fix a logic bug in pc-sysinstall creating partitions.jpaetzel2011-09-1911-36/+60
| | | | | | | | | | | | | Improve exit when an error occurs. Fix parsing to grab values which contain extra '=' signs. Fix a bug setting the timezone properly. Fix a usage bug when setting up with gmirror. Allow a uzip file from local media to be used. Allow specifying flags for "newfs" when using UFS as the file system. Run custom commands after doing final cleanup / fstab generation and such. Also fix using relative path for config file. Approved by: re (bz)
* Inquire about terminal type if starting from a serial console and donwhitehorn2011-09-171-6/+4
| | | | | | | | | not configure the host's networking if netbooted [1]. Also fix FTP installations behind some firewalls [2]. PR: bin/159583 [2] Reported by: stas [1] Approved by: re (kib)
* Fix a typo introduced in r219892 that prevented file system options fromnwhitehorn2011-09-161-1/+1
| | | | | | being set correctly. Approved by: re (kib)
* Fix WPA setup broken by changes to shell argument passing inside thenwhitehorn2011-09-161-0/+1
| | | | | | | installer network configuration. PR: bin/159558 Approved by: re (kib)
* Print the package name on deletion errors.pluknet2011-09-161-2/+2
| | | | | | | | | | It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD
* Allow WPA PSKs up to 63 characters, the max length according tobrueffer2011-09-131-1/+1
| | | | | | | | | wpa_supplicant.conf(5). Up to now, the PSK was truncated to 15 characters (the length of the input field). PR: 159559 Submitted by: Gavin Chappell <gavin.chappell@gmail.com> Approved by: re (kib)
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)hrs2011-09-124-52/+164
| | | | | | | | | | | | - Add -u option to enable adding :[RA-source-address] to the interface id. (r223149) - s/INET6_ADDRSTRLEN/sizeof(ntopbuf)/ (r223149) - Fix a bug that can prevent -D from being overridden by -d. (r223149) - /-P pidfile/-p pidfile/ for consistency with rtadvd(8). (r223149) - Fix -F flag handling to support receiving RAs even when ip6.forwarding=1. (r225150) Approved by: re (kib)
* - Fix a bug that can lead to displaying an incorrect value. (r224210)hrs2011-09-128-188/+240
| | | | | | | | | | | | | | - Fix an abnormal termination caused by twice of "rtadvctl disable". (r224303) - Use poll() to wait for the control message socket instead of a spin loop. (r224304) - s/cmsg_/cm_/ to avoid conflict with CMSG_* symbols for struct cmsghdr. (r224619) - Ignore an interface that never sent RAs for graceful shut-down. (r224620) - Refine log messages. (r225148) - Fix SIGSEGV when receiving RAs that contain RDNSS and/or DNSSL options. (r225149) Approved by: re (kib)
* Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists.brueffer2011-09-102-0/+3
| | | | | | PR: 157210, 157211 Submitted by: Niclas Zeising <zeising@lysator.liu.se> Approved by: re (kib)
* Correct a typo.bz2011-09-071-1/+1
| | | | | | Submitted by: gcooper Reviewed by: nwhitehorn Approved by: re (kib)
* Fix two problems:bz2011-09-072-4/+8
| | | | | | | | | | | | 1) if no default gateway is given the route command will fail and the script will abort with an error leading to an endless loop unless configuration is cancelled or changed. [1] 2) In the IPv6 case add -inet6 to not alter the legacy IP default route. Reported by: Oleg Ginzburg (olevole olevole.ru) [1] Tested by: Oleg Ginzburg (olevole olevole.ru) [1] Approved by: re (kib)
* Upgrade to BIND version 9.8.1. Release notes at:dougb2011-09-031-1/+1
| | | | | | | | https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib)
* 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
* Swap FTP paths to be MACHINE/MACHINE_ARCH instead of MACHINE_ARCH/MACHINE.nwhitehorn2011-08-301-1/+1
| | | | | | | | | | This follows what the output of make targets looks like, and reduces the number of directories needed on the FTP server, since we now have only one architecture with multiple machine types (i386, which has i386 and pc98), but 3 machines with 9 architectures between them (powerpc, mips, and arm). Requested by: kensmith, bz Approved by: re(kensmith)
* 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)
* Fix buffer overflow and possible ISO image corruption in wrongmm2011-08-231-7/+3
| | | | | | | | | | | | handling of "." character case in makefs ISO level 1 and 2 filename conversion. Filed as NetBSD PR #45285 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45285 Reviewed by: Christos Zoulas <christos@netbsd.org> Approved by: re (kib) MFC after: 3 days
* Implement support for GRAID volumes in the installer partition editor,nwhitehorn2011-08-214-17/+60
| | | | | | | rename a few options, clarify some help text, and add help text for the buttons on the main partition editor screen. Approved by: re (kib)
* Make messages about typos appear on the screen instead of in the log file.nwhitehorn2011-08-212-2/+2
| | | | | Reported by: lev Approved by: re (kib)
* Fix a bug that prevented docsinstall from being able to use DNS in mostnwhitehorn2011-08-181-1/+11
| | | | | | | cases and provide a better error handling mechanism during package installation. Approved by: re (kib)
* Fix jls backward compat mode broken in r222465, correctlybz2011-08-131-1/+1
| | | | | | | | displaying addresses in verbose mode (jls -v) again. Submitted by: jamie MFC after: 3 days Approved by: re (kib)
* Move cxgbtool from usr.sbin to tools/tools.np2011-08-107-11278/+0
| | | | | Approved by: re (kib) MFC after: 1 month
* Sync makefs(8) ISO 9660 support with NetBSD:marius2011-08-106-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o cd9960 -> cd9660 o Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h since actual user is not cd9660_eltorito.c but iso.h and cd9660_eltorito.h. Actually, include order/place of sys/endian.h doesn't matter on netbsd since it is always included by sys/types.h but it's not true on other system. This should fix cross build breakage on freebsd introduced by rev. 1.16 of cd9660_eltorito.c. Problem reported and fix suggested on twitter. o Fix fd leaks in error cases. Found by cppcheck. o RRIP RE length should be 4, not 0 o Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates corrupted cd9660fs), iso9660_rrip.c part: - cd9660_rrip_finalize_node() should check rr_real_parent in node->parent, not in node itself in RRIP_PL case - cd9660_rrip_initialize_node() should update only node passed as arg so handle RRIP_PL in DOTDOT case Fixes malformed dotdot entries in deep (more than 8 level) directories moved into .rr_moved dir. Should be pulled up to netbsd-5. (no official ISO has such deep dirs, but cobalt restorecd is affected) Reviewed by: mm Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
* Make clear that the -U option can be dangerous. [1]dougb2011-08-092-6/+10
| | | | | | | | | | | In -p mode install the group file with the same permissions as normally done in etc/Makefile. Update the copyright. Requested by: peter [1] Approved by: re (kib)
* Convert pmcstat about using cpuset_t rather than relying on plain 32 bitattilio2011-08-073-74/+81
| | | | | | | | | | | | | | | | ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib)
* Fix NetBSD PR bin/44114:mm2011-08-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days
* Fix a silly typo on my part.dougb2011-08-061-1/+1
| | | | Approved by: re (hrs)
* Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both ↵roberto2011-08-051-2/+3
| | | | | | | | | IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. Reviewed by: nathanw Approved by: re (kib)
* Always disable mount and unmount for jails with enforce_statfs==2.mm2011-08-021-2/+7
| | | | | | | | A working statfs(2) is required for umount(8) in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks
* Provide a more user friendly URL to the IETF site in faithd(8).gjb2011-08-021-2/+2
| | | | | | Pointed out by: dougb Approved by: re (kib) MFC after: 3 days
* Fix broken mdoc.uqs2011-08-011-22/+39
| | | | | Found by: manlint Approved by: re (kib)
* Backout r223115 which potentially caused a POLA violation, by restoringdelphij2011-07-311-1/+1
| | | | | | | | historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn 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
* Revert my last change to this file, as BETA1 is not announced yet.bcr2011-07-281-6/+1
| | | | | | Pointed out by: kib Pointy hat to: me Approved by: re (kib, implicit)
* Add a section to the jail chapter that explains why it is notbcr2011-07-281-1/+6
| | | | | | | | | recommended to allow root users in the jail to access the host system. PR: docs/156853 Submitted by: crees Patch by: crees Approved by: re (kib) for BETA1
* To inet or not two inet. Unbreak static IPv4 configuration. If you triedbz2011-07-281-1/+1
| | | | | | | | you were stuck in an endless loop. Reported by: kensmith Approved by: re (kib) for BETA1 Pointy hat to: bz - wonder why I had not tested legacy IP thoroughly..
* Document the potential for jail escape.gjb2011-07-241-1/+8
| | | | | | | | | Submitted by: Vedad KAJTAZ (vedad % kajtaz net) PR: 142341 Reviewed by: bz, rwatson Rewording by: rwatson Approved by: re (kensmith) MFC after: 3 days
* Fix various broken links in manual pages.gjb2011-07-231-2/+2
| | | | | | | | Submitted by: Michiel Overtoom (motoom % xs4all nl) PR: 159130 159131 159132 159133 159134 159135 159136 159137 158138 159144 Approved by: re (kib) MFC after: 3 days
OpenPOWER on IntegriCloud