summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Move from mount(2) to nmount(2). This should allow to convert MNT_SNAPSHOTpjd2009-05-293-40/+54
| | | | | | | | flag from a mount flag to FS-specific flag. - Simplify usage. Instead of 'mksnap_ffs /mnt/foo /mnt/foo/snap' allow to give only one argument: 'mksnap_ffs /mnt/foo/snap'. Old usage is also accepted for now. - Add an example of how to mount a snapshot.
* Update __FreeBSD_version after addition of mnt_xflag. Add a notetrasz2009-05-292-1/+6
| | | | to UPDATING.
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-29100-1067/+1059
|
* Modify vm_hold_load_pages() to allocate pages using VM_ALLOC_NOOBJ ratheralc2009-05-291-13/+5
| | | | | than using the kernel object. This allows the elimination of page queues locking from vm_hold_free_pages().
* - Prevent buffer overflow in IPFilter's load_http function used to loadstas2009-05-291-10/+19
| | | | | | | | | | | | ipfilter tables via http by the user-level ippool utility. Previously the 1024-byte buffer used to store a http request coudld easily overflow if the length of the hostname part of the url passes exceeded 496 bytes. [1] - Use snprintf to prevent possieble buffer overflows in future. [2] - Do not try to close the descriptor twice on failure. [2] Reported by: Maksymilian Arciemowicz <cxib@securityreason.com> [1] Obtained from: NetBSD CVS [2] MFC after: 2 weeks
* Free device strings.thompsa2009-05-291-0/+3
| | | | Spotted by: HPS
* There is only one spare MNT_ flag left, and I want to use it for NFSv4 ACLs.trasz2009-05-291-1/+2
| | | | | | Make room for additional filesystem flags now, to avoid breaking ABI later. Reviewed by: kib@
* Minor style tweak.rwatson2009-05-291-1/+2
|
* Since sched_pin() and sched_unpin() are already inlined, don't manuallyrwatson2009-05-291-2/+2
| | | | inline in rmlocks.
* Remove extra cpu_spinwait() invocations. This should really only be usedjhb2009-05-292-11/+0
| | | | | | | in tight spin loops, not in these edge cases where we restart a much larger loop only a few times. Reviewed by: attilio
* Tweak a few comments on adaptive spinning.jhb2009-05-292-6/+15
|
* Revert to 2-clause.adrian2009-05-291-2/+0
|
* Fix the Xen TOD update when the hypervisor wall clock is nudged.adrian2009-05-291-0/+14
| | | | | | | | | | | | | | | | | | | | | The "wall clock" in the current code is actually the hypervisor start time. The time of day is the "start time" plus the hypervisor "uptime". Large enough bumps in the dom0 clock lead to a hypervisor "bump" which is implemented as a bump in the start time, not the uptime. The clock.c routines were reading in the hypervisor start time and then using this as the TOD. This meant that any hypervisor time bump would cause the FreeBSD DomU to set its TOD to the hypervisor start time, rather than the actual TOD. This fix is a bit hacky and some reshuffling should be done later on to clarify what is going on. I've left the wall clock code alone. (The code which updates shadow_tv and shadow_tv_version.) A new routine adds the uptime to the shadow_tv, which is then used to update the TOD. I've included some debugging so it is obvious when the clock is nudged. PR: 135008
* Migrate the Xen hypervisor clock reading routines into somethingadrian2009-05-294-49/+142
| | | | sharable.
* Make the rmlock(9) interface a bit more like the rwlock(9) interface:rwatson2009-05-296-18/+80
| | | | | | | | | | | | | | - Add rm_init_flags() and accept extended options only for that variation. - Add a flags space specifically for rm_init_flags(), rather than borrowing the lock_init() flag space. - Define flag RM_RECURSE to use instead of LO_RECURSABLE. - Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS checking; this wasn't possible previously as rm_init() always passed LO_WITNESS when initializing an rmlock's struct lock. - Add RM_SYSINIT_FLAGS(). - Rename embedded mutex in rmlocks to make it more obvious what it is. - Update consumers. - Update man page.
* adds new device IDs.weongyo2009-05-292-1/+6
| | | | | PR: usb/135009 Submitted by: Bill Squire <billsf at 2600.COM>
* Let vfs_lookup() return ENOTDIR if the path has a trailing slash anddes2009-05-292-9/+14
| | | | | | | | | | | | | | | | | the last component is a symlink to something that isn't a directory. We introduce a new namei flag, TRAILINGSLASH, which is set by lookup() if the last component is followed by a slash. The trailing slash is then stripped, as before. If the final component is a symlink, lookup() will return to namei(), which will expand the symlink and call lookup() with the new path. When all symlinks have been resolved, lookup() checks if the TRAILINGSLASH flag is set, and if it is, and the vnode it ended up with is not a directory, it returns ENOTDIR. PR: kern/21768 Submitted by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> MFC after: 3 weeks
* Fix misleading comment.des2009-05-291-1/+1
| | | | MFC after: 1 week
* Reduce vertical whitespace and other minor style tweaks.rwatson2009-05-291-15/+2
| | | | Remove unused rm_initialized() macro.
* The patch for r193011 was partially rejected when applied, complete it.attilio2009-05-291-2/+4
|
* Document how to enable strict RFC 1034 enforcements.delphij2009-05-291-1/+14
| | | | PR: kern/129477
* Add an option to enforce strict RFC 1034 compliance.delphij2009-05-291-0/+4
| | | | PR: kern/129477
* Make dump -W show the level correctly.brian2009-05-291-1/+1
| | | | | | PR: 129110 Submitted by: Mike Voorhis <mvoorhis@cs.wpi.edu> MFC after: 3 weeks
* Add an EXIT STATUS section to the manual page. Currently, nc(1)delphij2009-05-291-0/+2
| | | | | | does not follow sysexits(3), and returns 1 for all error cases. PR: docs/126451
* Last minute TTY API change: remove mutex argument from tty_alloc().ed2009-05-2916-18/+26
| | | | | | | | | | I don't want people to override the mutex when allocating a TTY. It has to be there, to keep drivers like syscons happy. So I'm creating a tty_alloc_mutex() which can be used in those cases. tty_alloc_mutex() should eventually be removed. The advantage of this approach, is that we can just remove a function, without breaking the regular API in the future.
* Implement SI_ISALIST.delphij2009-05-291-1/+13
| | | | | | PR: kern/91293 Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD
* Fix the sysinfo(SI_HW_SERIAL, emulation so that we actually get thedelphij2009-05-291-4/+6
| | | | | | | | hostid of the machine rather than always getting "0". PR: kern/91293 Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD
* copyinstr(9) takes parameter 'len' as a size_t *, not int *.delphij2009-05-291-1/+2
| | | | | | PR: kern/91293 Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD
* de-register.delphij2009-05-297-43/+43
| | | | | | Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD PR: kern/91293
* svr4_sys_getdents64() should not assume that the cookie would existdelphij2009-05-291-1/+4
| | | | | | | | everywhere. PR: kern/91293 Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD
* Add new sysconfig bits, Fix the bogus numbering of the old bits.delphij2009-05-292-20/+71
| | | | | | Submitted by: "Pedro f. Giffuni" <giffunip asme org> Obtained from: NetBSD PR: kern/91293
* Reverse the logic for ADAPTIVE_SX option and enable it by default.attilio2009-05-299-38/+75
| | | | | | | | | | | | | | | | | | | | | | Introduce for this operation the reverse NO_ADAPTIVE_SX option. The flag SX_ADAPTIVESPIN to be passed to sx_init_flags(9) gets suppressed and the new flag, offering the reversed logic, SX_NOADAPTIVE is added. Additively implements adaptive spininning for sx held in shared mode. The spinning limit can be handled through sysctls in order to be tuned while the code doesn't reach the release, after which time they should be dropped probabilly. This change has made been necessary by recent benchmarks where it does improve concurrency of workloads in presence of high contention (ie. ZFS). KPI breakage is documented by __FreeBSD_version bumping, manpage and UPDATING updates. Requested by: jeff, kmacy Reviewed by: jeff Tested by: pho
* Update netcat to the version carried with OpenBSD 4.5.delphij2009-05-282-10/+11
|
* Use prototype for usage(). This makes perror(1) WARNS=6 clean.delphij2009-05-281-2/+2
| | | | Approved by: gnn
* Use strlcpy().delphij2009-05-281-2/+2
|
* Change the "-4" argument for nfsd and mountd to "-e" to avoidrmacklem2009-05-284-18/+18
| | | | | | | confusion, since it does not refer to IPv4 nor NFSv4, but to running the experimental server instead of the regular one. Approved by: kib (mentor)
* Fix missed change from usb2_gen_descriptor to usb_gen_descriptorthompsa2009-05-281-1/+1
|
* Add the kernel build glue for the experimental NFS subsystem thatrmacklem2009-05-287-34/+128
| | | | | | | | | | | | | includes support for NFSv4. The subsystem can optionally be linked into the kernel using the two options: NFSCL - the client NFSD - the server It is also built as three modules: nfscl - the client nfsd - the server nfscommon - functions shared by the client and server Approved by: kib (mentor)
* Make *getpages()s' assertion on the state of each page's dirty bitsalc2009-05-283-3/+3
| | | | stricter.
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-28135-3885/+3776
|
* Nobody spoke up, so assume my interpretation was correct and enable keyworddes2009-05-280-0/+0
| | | | expansion for this file.
* Fix style/grammar issues in fail(9) man page.zml2009-05-281-32/+43
| | | | | Suggested by: Ben Kaduk Approved by: dfr (mentor)
* Match type for socket option (in practice, unnecessary, but stylistically ↵zml2009-05-281-1/+1
| | | | | | | it's a little nicer). Suggested by: jilles Approved by: dfr (mentor)
* Revert unnecessary memset after calloc.zml2009-05-281-1/+0
| | | | | Suggested by: jhb Approved by: dfr (mentor)
* Use a temporary variable to avoid a duplicate strlen().des2009-05-281-2/+3
| | | | | Submitted by: kib MFC after: 1 week
* Some of the boot loader code only works on a ufs file system, but itdfr2009-05-282-8/+9
| | | | | | | uses the generic struct dirent, which happens to look identical to UFS's struct direct. If BSD ever changes dirent then this will be a problem. Submitted by: matthew dot fleming at isilon dot com
* MFdevbranch 192944kmacy2009-05-284-7/+91
| | | | | | - add FreeBSD implementation of xdrmem_control needed by zfs - have zfs define xdr_ops using FreeBSD's definition - remove solaris xdr files from zfs compile
* Update this script so that it handles different ruleset failuresbrian2009-05-281-8/+12
| | | | | | | | | | differently. The output now shows the ruleset and shortens to slightly different text (using $daily_status_mail_rejects_shorten), but it should be more descriptive. PR: 35018 Inspired by: Mikhail Teterin - mi at aldan dot algebra dot com MFC after: 3 weeks
* Change vm_object_page_remove() such that it clears the page's dirty bitsalc2009-05-281-1/+3
| | | | | | when it invalidates the page. Suggested by: tegge
* Fix off by one error in acl_create_entry(3).trasz2009-05-281-1/+6
| | | | | Reviewed by: rwatson@ MFC after: 2 weeks
OpenPOWER on IntegriCloud