summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Be paranoid and use snprintfmatteo2008-11-091-7/+7
| | | | | | PR: bin/122137 Submitted by: Steven Kreuzer <skreuzer@exit2shell.com> MFC after: 3 days
* make kern.ipc.nmbclusters actually have a useful effect on nmbclusters et al.kmacy2008-11-091-3/+4
| | | | initialize pkthdr in field order
* Add workaround for a back reference when no correspondinghrs2008-11-091-0/+8
| | | | | | | | | | | parenthesized subexpression is defined. For example, the following command line caused unexpected behavior like segmentation fault: % echo test | sed -e 's/test/\1/' PR: bin/126682 MFC after: 1 week
* Reduce the default baud rate of PTY's to 9600.ed2008-11-083-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | On RELENG_6 (and probably RELENG_7) we see our syscons windows and pseudo-terminals have the following buffer sizes: | LINE RAW CAN OUT IHIWT ILOWT OHWT LWT COL STATE SESS PGID DISC | ttyv0 0 0 0 7680 6720 2052 256 7 OCcl 1146 1146 term | ttyp0 0 0 0 7680 6720 1296 256 0 OCc 82033 82033 term These buffer sizes make no sense, because we often have much more output than input, but I guess having higher input buffer sizes improves guarantees of the system. On MPSAFE TTY I just sent both the input and output buffer sizes to 7 KB, which is pretty big on a standard FreeBSD install with 8 syscons windows and some PTY's. Reduce the baud rate to 9600 baud, which means we now have the following buffer sizes: | LINE INQ CAN LIN LOW OUTQ USE LOW COL SESS PGID STATE | ttyv0 1920 0 0 192 1984 0 199 7 2401 2401 Oil | pts/0 1920 0 0 192 1984 0 199 5631 1305 2526 Oi This is a lot smaller, but for pseudo-devices this should be good enough. You need to do a lot of punching to fill up a 7.5 KB input buffer. If it turns out things don't work out this way, we'll just switch to 19200 baud.
* Require write access on a directory being moved from one parenttrasz2008-11-081-0/+8
| | | | | | directory to another in ZFS. Approved by: rwatson (mentor), pjd
* Spell 'different' correctly.keramida2008-11-081-2/+2
|
* Don't use curthread to resolve file descriptor. Request may be queued, somav2008-11-081-2/+10
| | | | | thread will be different. Instead require sender to send process ID together with file descriptor.
* New command-line parser for bsdtar.kientzle2008-11-086-356/+455
| | | | | | | | | | This replaces the getopt()/getopt_long() wrapper, the old-style argument rewriter and the associated configuration glue with a more straightforward custom command parser. In particular, this ensures that bsdtar will have consistent option parsing on every platform, regardless of whether the platform supports getopt_long(). MFC after: 30 days
* Assign new cookie to the node to reflect API change.mav2008-11-081-1/+1
| | | | All applications will have to be adapted and rebuilt.
* Update ports number and size of Ports Collection.blackend2008-11-071-2/+2
|
* Don't assign completely meaningless name to the node on creation.mav2008-11-071-11/+0
| | | | | As soon as node is created from the netgraph side now, it can be found without using this. Allow application to assign whatever name it want later.
* Two minor fixes.mav2008-11-071-2/+2
|
* Add one more EACCES clause to rename.2.trasz2008-11-071-0/+5
| | | | Approved by: rwatson (mentor)
* Make test for write access to the directory being moved a little moretrasz2008-11-071-5/+9
| | | | | | specific. Approved by: rwatson (mentor)
* Improve output when a test fails.trasz2008-11-071-2/+2
| | | | Approved by: rwatson (mentor)
* Range-check NFSv2 procedure numbers before converting to NFSv3.dfr2008-11-071-2/+7
| | | | Submitted by: csjp
* Remove informational messages left. These messages were intended toyongari2008-11-071-7/+7
| | | | | | show up in verbose boot mode. Reported by: pluknet ( pluknet<> gmail DOT com )
* Restore (intmax_t) casts I lost during the last change & unbreak the build.mlaier2008-11-061-4/+6
|
* Backoff the last patch. It was overly restrictive - we want to checktrasz2008-11-061-7/+0
| | | | | | | for write permission on target only when moving the target between two directories. Approved by: rwatson (mentor)
* A lot of spelling fixes.mav2008-11-061-92/+168
| | | | Submitted by: keramida
* Change ZFS behaviour to match UFS: when moving (rename(2)) a subdirectorytrasz2008-11-062-0/+45
| | | | | | | from one parent directory to another, in addition to the usual access checks one also needs write access to the subdirectory being moved. Approved by: rwatson (mentor), pjd
* Bring in http://perforce.freebsd.org/chv.cgi?CH=152584 from hps.imp2008-11-0616-17/+1
| | | | Submitted by: hps
* Fix copyright notice.marcel2008-11-061-11/+11
|
* Fix a panic caused by a corrupted table when the header ismarcel2008-11-061-4/+7
| | | | | | | | | still valid. We were checking the state of the header and not the table. PR: 119868 Based on a patch from: Jaakko Heinonen <jh@saunalahti.fi> MFC after: 1 week
* Add two new options to du(1):mlaier2008-11-062-35/+85
| | | | | | | | | | | | | | | | | | | | | | -A Display the apparent size instead of the disk usage. This can be helpful when operating on compressed volumes or sparse files. -B blocksize Calculate block counts in blocksize byte blocks. This is differ- ent from the -k, -m options or setting BLOCKSIZE and gives an estimate of how much space the examined file hierachy would require on a filesystem with the given blocksize. Unless in -A mode, blocksize is rounded up to the next multiple of 512. The former is similar to GNU's du(1) --apparent-size. The latter is different from what GNU's du(1) -B does, which is equivalent to setting BLOCKSIZE in our implementation and is rather pointless as it doesn't add any real value (i.e. you can achieve the same with a simple awk-script). No change in the normal output or processing. Reviewed by: keramida@, Peter French Otherwise silience from: freebsd-hackers@
* Eliminate dead declarations in libstand.raj2008-11-061-4/+0
|
* Fix typo and while here another one.bz2008-11-061-2/+2
| | | | | | Reviewed by: keramida Reported by: keramida MFC after: 2 months (with r184720)
* ARM pmap style(9) and cosmetics.raj2008-11-061-5/+5
|
* Auto-size kernel page tables allocation on Marvell systems.raj2008-11-061-11/+9
| | | | | | This allows mini dumps to fully work for these platforms. Obtained from: Juniper Networks, Semihalf
* Support kernel crash mini dumps on ARM architecture.raj2008-11-0612-9/+858
| | | | Obtained from: Juniper Networks, Semihalf
* Include if_arp.h for IFP2AC so that the netgraph parts in if.cbz2008-11-061-0/+1
| | | | | | are happy even if compiled without INET or INET6. MFC after: 2 months
* Fix a bug introduced with r182851 splitting tcp_mss() intobz2008-11-063-11/+12
| | | | | | | | | | | | | | | | | | tcp_mss() and tcp_mss_update() so that tcp_mtudisc() could re-use the same code. Move the TSO logic back to tcp_mss() and out of tcp_mss_update(). We tried to avoid that initially but if were are called from tcp_output() with EMSGSIZE, we cleared the TSO flag on the tcpcb there, called into tcp_mtudisc() and tcp_mss_update() which then would reenable TSO on the tcpcb based on TSO capabilities of the interface as learnt in tcp_maxmtu/6(). So if TSO was enabled on the (possibly new) outgoing interface it was turned back on, which lead to an endless loop between tcp_output() and tcp_mtudisc() until we overflew the stack. Reported by: kmacy MFC after: 2 months (along with r182851)
* Adopt the comment for tcp_maxmtu(); we are returning a numberbz2008-11-061-3/+3
| | | | | | | not a pointer. While here update the rest of the comment to better match what we have these days. MFC after: 2 months
* Fix a bug introduced with r182851 splitting tcp_mss() intobz2008-11-061-1/+9
| | | | | | | | | | | | | | | | tcp_mss() and tcp_mss_update() so that tcp_mtudisc() could re-use the same code. In case we return early and got a metricptr to pass the hostcache info back to the caller we need to initialize the data to a defined state (zero it) as tcp_hc_get() would do if there was no hit. Without that the caller would check on random stack garbage which could lead to undefined results. This only affected tcp_mss() if there was no routing entry for the peer, tcp_mtudisc() was not affected. MFC after: 2 months (along with r182851)
* Don't depend on krpc.ko in the NFS_LEGACYRPC case.dfr2008-11-061-0/+2
|
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+5
| | | | MFC after: 2 months
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+5
| | | | MFC after: 2 months
* Unbreak NFS.des2008-11-063-2/+4
| | | | Pointy hat to: dfr
* For now our LRO code (tcp_lro.c) only supports IPv4 properly thusbz2008-11-061-0/+3
| | | | | | | only enable if INET is on. Reviewed by: kmacy MFC after: 2 months
* Hide AF_INET specific ioctl handling under #ifdef INET.bz2008-11-061-0/+4
| | | | | Reviewed by: kmacy MFC after: 2 months
* Hide an unused variable in case we compile with neither INET nor INET6.bz2008-11-061-1/+5
| | | | | | | NATM needs 'struct in_addr' to compile, which is a problem on its own but include in.h for now if we have NATM but neither INET or INET6. MFC after: 2 months
* Check for INET not AF_INET in #ifdef. Makes it compile without INET.bz2008-11-061-1/+1
| | | | MFC after: 2 months
* Hide an unused variable in case we compile without INET.bz2008-11-061-0/+4
| | | | | | | | Include ethernet.h and if_arp.h directly so that the constants are always defined. Makes token compile without INET. MFC after: 2 months
* Hide an unused variable in case we compile without INET.bz2008-11-061-0/+3
| | | | | | | Include ethernet.h directly so that the constants are always defined. Makes fddi compile without INET. MFC after: 2 months
* In case INET is not defined, then ANCACHE is not defined andbz2008-11-061-0/+2
| | | | | | | | the sc does not have 'an_have_rssimap' variable. Add an ANCACHE check to poperly hide the case and make an(4) compile without INET. MFC after: 2 months
* Be paranoid and zero out passwdmatteo2008-11-061-0/+2
| | | | | | | PR: 122070 Submitted by: Steven Kreuzer <skreuzer@exit2shell.com> Reminded by: gnn@ MFC after: 3 days
* Remove definition of KMEM_DEBUG accidentally brought in by latest DTracerodrigc2008-11-051-2/+0
| | | | | | import. Noticed by: thompsa
* Merge latest DTrace changes from Perforce.rodrigc2008-11-053-5/+20
| | | | Approved by: jb
* Merge latest DTrace changes from Perforce.rodrigc2008-11-051-0/+1
| | | | Approved by: jb
* Merge latest DTrace changes from Perforce.rodrigc2008-11-0510-46/+143
|
OpenPOWER on IntegriCloud