summaryrefslogtreecommitdiffstats
path: root/sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* o distinguish between adhoc and ahdemo modessam2008-12-152-17/+46
| | | | | | | o do not require 1/2 and 1/4 rate channels be present in the calibration list when doing a gsm regulatory change; the existing 900MHz cards are not self-identifying so there is no way (using the calibration channel list) to check
* Improve regdomain.xml parser:sam2008-12-152-30/+43
| | | | | | | | | | | | | o store XML_Parser in the state block so we can report line numbers for errors o complain about netband w/o mode o complain about unknown modes o complain about band w/o enclosing netband o complain about duplicate freqband o complain about unknown channel flags o complain about band w/o freqband's o complain about band w/o maxpower o complain about country w/o ISO cc o complain about country w/o regdomain reference
* Fix the fallouts from r146267:ru2008-12-141-7/+12
| | | | | - Add the forgotten "mode" argument to the "mode" command. - Move the description of "info" to where it belongs.
* Send all debug to stderr.phk2008-12-141-2/+2
|
* Clarify that configuration files must be named '*.conf'phk2008-12-141-1/+1
|
* - When writing metadata to a geom provider, open the it as read-write since itlulf2008-12-131-1/+1
| | | | | | | | | | | | | | might do subsequent reads from other providers. This stopped geli (and probably other classes using g_metadata_store as well) from being put on top of gvinum raid5 volumes. Note: The reason it fails in the gvinum raid5 case is that gvinum will read back the old parity stripe before calculating the new parity stripe to be written out again. The write will then fail because the underlying disk to be read is opened write only. MFC after: 1 week
* Move the check for the ending char in the partition name whereluigi2008-12-121-5/+6
| | | | | | | | | it was before -- the check is only made when getdisklabel() returns valid info. On passing, use MAXPARTITIONS to identify the max partition number, instead of the hardwired 'h' MFC after: 4 weeks
* Fix build - cast off_t to (intmax_t) for printing.mlaier2008-12-031-2/+3
|
* Enable operation of newfs on plain files, which is useful when youluigi2008-12-035-16/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | want to prepare disk images for emulators (though 'makefs' in port can do something similar). This relies on: + minor changes to pass the consistency checks even when working on a file; + an additional option, '-p partition' , to specify the disk partition to initialize; + some changes on the I/O routines to deal with partition offsets. The latter was a bit tricky to implement, see the details in newfs.h: in newfs, I/O is done through libufs which assumes that the file descriptor refers to the whole partition. Introducing support for the offset in libufs would require a non-backward compatible change in the library, to be dealt with a version bump or with symbol versioning. I felt both approaches to be overkill for this specific application, especially because there might be other changes to libufs that might become necessary in the near future. So I used the following trick: - read access is always done by calling bread() directly, so we just add the offset in the (few) places that call bread(); - write access is done through bwrite() and sbwrite(), which in turn calls bwrite(). To avoid rewriting sbwrite(), we supply our own version of bwrite() here, which takes precedence over the version in libufs. MFC after: 4 weeks
* Some useful operational extensions to newfs_msdos, especiallyluigi2008-12-032-16/+150
| | | | | | | | | | | | | | | | | | | | | | | | | when preparing images for emulators or flash devices: + option '-C size' to create the underlying image file with given size. Saves doing a 'dd' before, and especially it creates a sparse file + option '-@ offset' to build the FAT image at the specified offset in the image file or device; + make the cluster size adaptive on the filesystem size. Previously the default was 4k which is really unconvenient with large media; now it goes from 512 bytes to 32k depending on filesystem size (i still need to check whether it makes sense to go further up, to 64k or above); + fix default geometry when not specified on the command line, use 63 sectors/255 heads by default. Also trim the size so it exactly a multiple of a track, to avoid complaints in some filesystem code. + document all the above, plus some manual page clarifications. MFC after: 4 weeks
* Print error messages as-is, when they don't conform tomarcel2008-11-301-6/+9
| | | | | <errno> [<parameter> 'value'] These are error messages from (lib)geom itself.
* Call gctl_free() after we processed the error string.marcel2008-11-301-5/+11
| | | | It's being freed as part of the request.
* Parse the error string returned by the kernel. The format is:marcel2008-11-291-14/+39
| | | | | | | | <errno> [<parameter> <value>] So, rather than printing the error: gpart: 22 scheme 'gpt' gpart(8) now prints: gpart: scheme 'gpt': invalid argument
* Noticed the following error message:imp2008-11-291-2/+6
| | | | | | | | | | | | mount_msdosfs: /dev/cf0s1: : Operation not supported by device and thought I'd fix it to be: mount_msdosfs: /dev/cf0s1: Operation not supported by device Not sure why errmsg isn't getting filled in, or why this error is even happening at all... (fsck_msdosfs is clean, and I can mount this same CF elsewhere).
* Create a fake geometry (16 heads, 64 sectors) when dealing withluigi2008-11-261-3/+14
| | | | | | | | | | | | | | | | | | | a plain file and a geometry is not explicitly supplied through command line or disktab entry. This way you can a FAT image on a file as simply as this: newfs_msdos ./some/file (right now you need a much longer command newfs_msdos -h 32 -u 64 -S 512 -s $total_blocks -o 0 ./some/file Will be merged after 7.1 and 6.4 are released. See also the related PR which suggests a similar change. PR: bin/121182 MFC after: 4 weeks
* Big update to the iSCSI initiator code. Highlights include IPv6 support,scottl2008-11-2510-59/+91
| | | | | | | | | | | | | | | | | | | | | | | | | many bugs fixes, many more performance improvements. Submitted by: Danny Braniss M sbin/iscontrol/iscsi.conf.5 M sbin/iscontrol/iscontrol.8 M sbin/iscontrol/iscontrol.h M sbin/iscontrol/config.c M sbin/iscontrol/fsm.c M sbin/iscontrol/login.c M sbin/iscontrol/pdu.c M sbin/iscontrol/misc.c M sbin/iscontrol/auth_subr.c M sbin/iscontrol/iscontrol.c M sys/dev/iscsi/initiator/isc_cam.c M sys/dev/iscsi/initiator/iscsi.h M sys/dev/iscsi/initiator/isc_soc.c M sys/dev/iscsi/initiator/iscsi_subr.c M sys/dev/iscsi/initiator/iscsivar.h M sys/dev/iscsi/initiator/isc_subr.c M sys/dev/iscsi/initiator/iscsi.c M sys/dev/iscsi/initiator/isc_sm.c
* Grammar improvements.delphij2008-11-181-4/+4
| | | | Submitted by: kensmith
* Use humanize_number(), rather than a home-grown algorithm formarcel2008-11-182-13/+7
| | | | | | | | | | | | | formatting a number in a human-friendly way. Note that with this commit a megabyte changed from 1000000 to 1048576 and a 80G disk is now printed as being 75G in size. This is deliberate. It's consistent with the core of geom(8). However, the original choice for a megabyte being 1000000 was on purpose and matches what disk vendors put on the box. The consistency is considered more important. Submitted by: delphij
* Sort includesmarcel2008-11-181-9/+10
| | | | Submitted by: delphij
* Pad the bootcode we write to the partition to a multiple of themarcel2008-11-181-1/+16
| | | | | | | | sector size. Submitted by: Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de> Prompted by: delphij MFC after: 3 days
* o One more s/gpt/gpart/.maxim2008-11-051-1/+1
|
* o Replace Xr to gpt(8) which is gone by gpart(8).maxim2008-11-051-1/+1
|
* Implement support for RPCSEC_GSS authentication to both the NFS clientdfr2008-11-031-1/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and server. This replaces the RPC implementation of the NFS client and server with the newer RPC implementation originally developed (actually ported from the userland sunrpc code) to support the NFS Lock Manager. I have tested this code extensively and I believe it is stable and that performance is at least equal to the legacy RPC implementation. The NFS code currently contains support for both the new RPC implementation and the older legacy implementation inherited from the original NFS codebase. The default is to use the new implementation - add the NFS_LEGACYRPC option to fall back to the old code. When I merge this support back to RELENG_7, I will probably change this so that users have to 'opt in' to get the new code. To use RPCSEC_GSS on either client or server, you must build a kernel which includes the KGSSAPI option and the crypto device. On the userland side, you must build at least a new libc, mountd, mount_nfs and gssd. You must install new versions of /etc/rc.d/gssd and /etc/rc.d/nfsd and add 'gssd_enable=YES' to /etc/rc.conf. As long as gssd is running, you should be able to mount an NFS filesystem from a server that requires RPCSEC_GSS authentication. The mount itself can happen without any kerberos credentials but all access to the filesystem will be denied unless the accessing user has a valid ticket file in the standard place (/tmp/krb5cc_<uid>). There is currently no support for situations where the ticket file is in a different place, such as when the user logged in via SSH and has delegated credentials from that login. This restriction is also present in Solaris and Linux. In theory, we could improve this in future, possibly using Brooks Davis' implementation of variant symlinks. Supporting RPCSEC_GSS on a server is nearly as simple. You must create service creds for the server in the form 'nfs/<fqdn>@<REALM>' and install them in /etc/krb5.keytab. The standard heimdal utility ktutil makes this fairly easy. After the service creds have been created, you can add a '-sec=krb5' option to /etc/exports and restart both mountd and nfsd. The only other difference an administrator should notice is that nfsd doesn't fork to create service threads any more. In normal operation, there will be two nfsd processes, one in userland waiting for TCP connections and one in the kernel handling requests. The latter process will create as many kthreads as required - these should be visible via 'top -H'. The code has some support for varying the number of service threads according to load but initially at least, nfsd uses a fixed number of threads according to the value supplied to its '-n' option. Sponsored by: Isilon Systems MFC after: 1 month
* Add support for multiple attributes. This is required for themarcel2008-10-201-6/+13
| | | | PC98 scheme.
* Tiny wording nits.keramida2008-10-191-4/+5
| | | | MFC after: 1 week
* Support the remaining options listed in dhcp-options(5) and RFC 2132.brooks2008-10-173-5/+31
| | | | | | PR: bin/127076 Submitted by: jkim MFC after: 1 week
* o Remove a debug code and restore an accidentally deleted codemaxim2008-10-141-1/+8
| | | | in a previous commit.
* o Do nothing in show_nat() for a test mode (-n). This preventsmaxim2008-10-141-8/+4
| | | | | | | | show_nat() from endless loop and makes work ipfw -n nat <...>. PR: bin/128064 Submitted by: sem MFC after: 1 month
* Background fsck applies twice some summary totals changes. The nextkib2008-10-131-4/+11
| | | | | | | | | | | background fsck on the same file system might then print negative numbers for reclaimed directories/files/fragments. Address the issue in a limited degree, by using old summary data for cg when bgfsck is performed. Submitted by: tegge MFC after: 1 week
* check_maps() in /usr/src/sbin/fsck_ffs/pass5.c seems to be limited to filekib2008-10-131-15/+27
| | | | | | | | | | | systems less than 1 TB, due to using 32-bits integers for file system block numbers. This also causes incorrect error reporting for foreground fsck. Convert it to use ufs2_daddr_t for block numbers. PR: kern/127951 Submitted by: tegge MFC after: 1 week
* Add some examples to demostrate gpart(8).delphij2008-10-091-1/+36
| | | | | | | | | | | | | | | --此行及以下内容将会被忽略-- > Description of fields to fill in above: 76 columns --| > PR: If a GNATS PR is affected by the change. > Submitted by: If someone else sent in the change. > Reviewed by: If someone else reviewed your modification. > Approved by: If you needed approval for this commit. > Obtained from: If the change is from a third party. > MFC after: N [day[s]|week[s]|month[s]]. Request a reminder email. > Security: Vulnerability reference (one per line) or description. > Empty fields above will be automatically removed. M gpart.8
* o Typo fixes.maxim2008-10-051-2/+2
| | | | | PR: docs/127866 Submitted by: Marius Korsmo
* add duplicate cmd entries for vlan and vlandev that are marked !clonesam2008-10-021-0/+3
| | | | | | so they can be used when not doing a create operation Reviewed by: ed
* - A call to close(2) might overwrite errno and thus give a wrong error messagelulf2008-09-301-1/+2
| | | | | | | on g_providername failure. Suggested by: pjd Approved by: pjd (mentor)
* - Improve error message given on g_providername call failure.lulf2008-09-302-2/+2
| | | | | | - While there, make error messages consistent with the rest. Approved by: kib (mentor)
* Distinguish between cmd/parameters used for clone operations andsam2008-09-291-33/+43
| | | | | | | | | | | all others. Use this to disambiguate cmd line arguments that can be either clone params or regular parameters so, in particular, "bssid" again works as a regular parameter. While here leverage the above to improve the logic for flushing clone operations on the first !clone cmd line parameter. Reviewed by: jhay
* o Add missed dot.maxim2008-09-291-1/+1
|
* Fix the build.rik2008-09-271-1/+1
| | | | Noted by: ganbold@
* * add all keyword for table list & flush actions.rik2008-09-271-3/+14
| | | | | | | * add tables_max sysctl. * add default_rule sysctl. PR: 127058 (partially)
* Add keyword all in addtion to the table number for the 'list' and therik2008-09-271-8/+29
| | | | | | | 'flush' actions on tables. Part of PR: 127058. PR: 127058 (based on) MFC after: 1 month
* Static-ify procedures in init(8).delphij2008-09-271-80/+80
|
* Add missing library dependencies.ru2008-09-232-4/+4
| | | | | PR: bin/127573 Submitted by: Eygene Ryabinkin
* Unbreak the build.keramida2008-09-221-1/+1
|
* MIMO power save and RIFS; while here also update per-node state/flags for ampdusam2008-09-222-1/+72
|
* "ampdudensity -" is too subtle; use "NA" for any and accept it as a parametersam2008-09-221-2/+2
|
* check for undefined identifierssam2008-09-211-12/+59
|
* add new build knobs and jigger some existing controls to improvesam2008-09-211-5/+22
| | | | | | | | control over the result of buildworld and installworld; this especially helps packaging systems such as nanobsd Reviewed by: various (posted to arch) MFC after: 1 month
* Add the check of the table number.rik2008-09-211-0/+17
|
* Move table list to a separate function.rik2008-09-211-35/+44
|
* Free allocated memory.rik2008-09-201-0/+1
|
OpenPOWER on IntegriCloud