summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* force type coercion for bus tag+handle when calling ath_hal_attachsam2006-05-061-1/+2
| | | | | | | | to ensure we match the type signature; we cannot assume HAL_BUS_TAG and HAL_BUS_HANDLE correspond to bus_space_tag_t and bus_space_handle_t (should probably do this for HAL_SOFTC too but leave that for now) MFC after: 1 month
* fix build on sparcsam2006-05-061-0/+1
| | | | MFC after: 1 month
* o Implement "-n" flag: ignore files and directories with user "nodump"maxim2006-05-062-3/+14
| | | | | | | | | flag set. Useful for calculation dump -h dump size. PR: bin/96864 Submitted by: Dmitry Kazarov Obtained from: NetBSD (man page) MFC after: 1 month
* ffs_syncvnode() might skip some of the blocks due to them being locked,tegge2006-05-061-0/+46
| | | | | | | | | | | | assuming them to be inflight write buffers. This is not always the case. bufdaemon might hold the buffer lock and give up writing the buffer due to it having dependencies, the file system being suspended or the vnode lock being held by another thread. When bufdaemon decides to write the buffer there is still a window before bufobj_wref() has been called, allowing other threads to believe that the vnode has no dirty buffers or inflight writes. Try harder to flush first block of new subdirectory to get rid of MKDIR_BODY dependency.
* o Take an account a media sectorsize for medium and bigsize calculation.maxim2006-05-067-115/+580
| | | | | | | | | | o Introduce -r and -w keys which allow to load and save a worklist. o Replace README by man page. PR: bin/96677 Submitted by: Ulrich Spoerlein Approved by: phk MFC after: 1 month
* Forgot the amd/linux32 part since sys/*/linux didn't match :-(ambrisko2006-05-061-0/+6
| | | | Pointed out by: Alexander (thanks)
* Modify UDP to use sosend_dgram() instead of sosend(). This allowsrwatson2006-05-061-0/+1
| | | | | | | | | | | for signicantly optimized UDP socket I/O when using a single UDP socket from many threads or processes that share it, by avoiding significant locking and other overhead in the general sosend() path that isn't necessary for simple datagram sockets. Specifically, this change results in a significant performance improvement for threaded name service in BIND9 under load. Suggested by: Jinmei_Tatsuya at isc dot org
* Return error if vnode was reclaimed while it was temporarily unlocked.tegge2006-05-051-1/+11
| | | | Add missing calls to vn_finished_write() in error handling.
* Temporarily unlock vnode for new image being executed to avoid lock ordertegge2006-05-051-0/+6
| | | | | reversals that can lead to deadlocks. Normally vn_close(), namei() or vrele() should not be called while holding vnode locks.
* Add Russell Cattelan to list of pre-commit reviewers for changes to XFS.rodrigc2006-05-051-1/+2
| | | | Requested by: Russell Cattelan <cattelan at xfs dot org>
* Turn off disk quotas for snapshot files.tegge2006-05-052-0/+38
|
* Avoid locking overhead when snapshots are disabled.tegge2006-05-051-0/+4
|
* Avoid dereferencing NULL pointer.tegge2006-05-051-1/+3
|
* Setting the rid of the resource is a good idea, but we still need to returncognet2006-05-051-0/+1
| | | | the resource after.
* Check for VFS_STATFS() failure in _xfs_mount() and abort the mountkeramida2006-05-051-2/+1
| | | | | | | | on errors. Found by: Coverity Prevent Approved by: rodrigc, Russell Cattelan MFC after: 4 weeks
* Fix a snafu caused while patching the previous fix from another branch.mohans2006-05-051-1/+0
|
* Fix for a NFS/TCP client bug which would cause the NFS/TCP stream to getmohans2006-05-051-0/+31
| | | | | out of sync under heavy loads, forcing frequent reconnets, causing EBADRPC errors etc.
* Fix the the duplicate cut-n-paste in linux_fstat64 pointed out byambrisko2006-05-051-1/+0
| | | | Alexander Leidinger. I forget to fix it in this version.
* Enhance the Linux emulation layer to make MegaRAID SAS managements tool happy.ambrisko2006-05-057-17/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add back in a scheme to emulate old type major/minor numbers via hooks into stat, linprocfs to return major/minors that Linux app's expect. Currently only /dev/null is always registered. Drivers can register via the Linux type shim similar to the ioctl shim but by using linux_device_register_handler/linux_device_unregister_handler functions. The structure is: struct linux_device_handler { char *bsd_driver_name; char *linux_driver_name; char *bsd_device_name; char *linux_device_name; int linux_major; int linux_minor; int linux_char_device; }; Linprocfs uses this to display the major number of the driver. The soon to be available linsysfs will use it to fill in the driver name. Linux_stat uses it to translate the major/minor into Linux type values. Note major numbers are dynamically assigned via passing in a -1 for the major number so we don't need to keep track of them. This is somewhat needed due to us switching to our devfs. MegaCli will not run until I add in the linsysfs and mfi Linux compat changes. Sponsored by: IronPort Systems
* If perform-actual-lookups is enabled, getservbyname() matches an entryume2006-05-052-24/+20
| | | | | | even when proto is not valid. Submitted by: Michael Bushkov <bushman__at__rsu.ru>
* Remove hand-rolled cross-build glue. Normal cross-build infrastructurescottl2006-05-051-8/+0
| | | | in FreeBSD likely supports this without any extra work.
* - Set bio_done directly to NULL to indicate that we want to wait for the bio.pjd2006-05-051-5/+2
| | | | | | - Use biowait() instead of copying the code. MFC after: 1 month
* Make sure the ip data pointer is correct before touching it againbz2006-05-051-0/+1
| | | | | | | | after ipsec4_output processing else KAME IPSec using the handbook configuration with gif(4) will panic the kernel. Problem reported by: t. patterson <tp lot.org> Tested by: t. patterson <tp lot.org>
* Only return (tw) from tcp_twclose() if reuse is passed, otherwiserwatson2006-05-051-1/+1
| | | | | | | | | | return NULL. In principle this shouldn't change the behavior, but avoids returning a potentially invalid/inappropriate pointer to the caller. Found with: Coverity Prevent (tm) Submitted by: pjd MFC after: 3 months
* Force commit to provide correct commit message:pjd2006-05-050-0/+0
| | | | | | | | | Set 'fp' variable to NULL after freeing it, so it won't be dereferenced later. Found by: Coverity Prevent analysis tool CID: 993 MFC after: 2 weeks
* /tmp/cvsTXPIwQpjd2006-05-051-0/+1
|
* Allow the HTTP_PROXY environment variable to be (mis)spelled ascperciva2006-05-052-2/+4
| | | | | "http_proxy", since some people apparently do this and fetch(3) allows it.
* AH_REGOPS_FUNC is needed for sparcsam2006-05-051-0/+1
| | | | MFC after: 2 weeks
* Fix the test for whether ${HTTP_PROXY} is set -- I got it backwards.cperciva2006-05-051-1/+1
| | | | | Pointy hat to: cperciva Pointed out by: pjd
* correct typesam2006-05-051-1/+1
| | | | MFC after: 2 weeks
* o Make it possible to compile find-sb on non-FreeBSD system (MacOS X in mysobomax2006-05-052-1/+159
| | | | | | | case). Can be useful for recovering in some cases; o use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start of the UFS2 partition from the beginning of disk.
* Fix binary upgrades by accounting for the schg flag on /var/empty.ceri2006-05-041-1/+1
| | | | | | | PR: 96711, 96780 Submitted by: Nobuyuki Koganemaru, Martin Jackson Approved by: re (scottl) MFC after: 1 day
* Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED tobz2006-05-042-0/+6
| | | | | | | | functions not yet asserting it but working on global ip6_forward_rt route cache which is not locked and perhaps should go away in the future though cache hit/miss ration wasn't bad. It's #if 0ed in frag6 because the code working on ip6_forward_rt is.
* In rtrequest and rtinit check for sa_len != 0 for the givenbz2006-05-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | destination. These checks are needed so we do not install a route looking like this: (0) 192.0.2.200 UH tun0 => When removing this route the kernel will start to walk the address space which looks like a hang on 64bit platforms because it'll take ages while on 32bit you should see a panic when kernel debugging options are turned on. The problem is in rtrequest1: if (netmask) { rt_maskedcopy(dst, ndst, netmask); } else bcopy(dst, ndst, dst->sa_len); In both cases the len might be 0 if the application forgot to set it. If so ndst will be all-zero leading to above mentioned strange routes. This is an application error but we must not fail/hang/panic because of this. Looks ok: gnn No objections: net@ (silence) MFC after: 8 weeks
* Use G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() inpjd2006-05-041-6/+4
| | | | | | | | | two places where g_io_request() is called. g_io_request() can free bio structure so we can't reference it after and G_RAID3_FOREACH_BIO() macro was doing this. Found by: Coverity Prevent analysis tool (with my new models) MFC after: 1 day
* The port number must be network byte order.ume2006-05-041-4/+3
|
* o style: WARNS= -> WARNS?=.maxim2006-05-041-1/+1
| | | | Spotted by: ru
* o By popular demand import getent(1) utility: a program retrievesmaxim2006-05-044-0/+701
| | | | | | | | | | | and displays entries from the administrative database specified by database, using the lookup order specified in nsswitch.conf(5). PR: bin/79903, bin/88460, bin/96536 Submitted by: Julien Gabel, Dan Nelson, Daniel J. O'Connor Obtained from: NetBSD Discussed with: ume, soc-bushman MFC after: 1 month
* Fix three more bugs in bfe:silby2006-05-042-17/+22
| | | | | | | | | | | | | | - Fix bfe_encap so that it will pass the address of the mbuf back up to its caller if/when it modifies it, as it does when doing a m_defrag on a mbuf chain. - Make sure to unload the dmamap for ALL fragments of a packet, not just the first - Use BUS_DMA_NOWAIT for all bus_dmamap_load calls so that the allocation of the map is not delayed - this driver is not set up to handle such delays. - Reduce the number of RX and TX buffers bfe uses so that it does not use more bounce buffers than busdma is willing to allow it to use With these changes, the driver now works properly for a user with a 2GB system, and it also works on my system when the acceptable address range is lowered to 128MB. Previously, both of these setups would act up after a few minutes of activity.
* Move the formatting of the NICE column to a new function format_nice()bde2006-05-041-20/+30
| | | | | | | | so that it can be more easily unbroken and extended. Try to use `static', `const' (as appropriate), prototypes declared together, and parameter names in prototypes for all private functions, not just the new one.
* Belatedly add 2 entries relating to the introduction of scc(4) andmarcel2006-05-041-0/+15
| | | | | | the overhaul of puc(4). On sparc64 people may end up without serial console if they upgrade without adding scc(4) to their kernel configuration file.
* Fixed some style bugs (mainly missing and wrong splitting of long lines).bde2006-05-041-48/+54
|
* Add 4Gb Fibre Channel support.mjacob2006-05-041-1/+10
| | | | Work sponsored by LSI-Logic.
* Remove MPT_PRT_INVARIANT- it was a silly idea.mjacob2006-05-042-8/+3
|
* Gratuitous tag alignment. It bugged me.mjacob2006-05-041-1/+1
|
* Remove two lines of debugging which I forgot to remove before the lastcperciva2006-05-031-2/+0
| | | | | | commit. Noticed by: simon
* The approach portsnap uses of "pick a random HTTP mirror" doesn'tcperciva2006-05-031-3/+16
| | | | | | | | | | | | | | | | | | | | interact very nicely with HTTP proxies: Since proxies do not know that all the files on portsnap1.freebsd.org are identical to the files with the same names on portsnap2.freebsd.org, said proxies end up downloading and storing files in duplicate. This commit uses the HTTP_PROXY environment variable, if set, to generate a random number seed for use in selecting a mirror. This means that if several systems all have the same HTTP_PROXY value set, they will ask the proxy to fetch files from the same mirror (unless that mirror fails, in which case all the systems will use the same second choice, et cetera). Portsnap still doesn't interact very well with "transparent" HTTP proxies, but there's nothing I can do about those. Requested by: simon Sponsored by: FreeBSD security development fundraiser
* Instead of selecting a mirror and failing if it is inaccessible, keepcperciva2006-05-031-25/+50
| | | | | | | | | | | | | | | | | | | track of which mirrors we have tried and try a different mirror if we fail when trying to download the SSL public key or the snapshot signature. Failures later in the download process will not result in switching to a different mirror, for two reasons: 1. If is very unlikely that a mirror will fail partway through the process of downloading updates. 2. If we switched from a more recently updated mirror to a less recently updated mirror partway through the download process, we would end up failing anyway because we would be trying to fetch files which the second mirror didn't have yet. PR: bin/96288 Requested by: lots of people Sponsored by: FreeBSD security development fundraiser
* Hide another common print under bootverbose.scottl2006-05-031-1/+2
|
* o Document security.jail.jailed sysctl.maxim2006-05-031-1/+6
| | | | | | PR: docs/94711 Submitted by: Andreas Kohn MFC after: 2 weeks
OpenPOWER on IntegriCloud