summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Forgot to remove this line.pjd2006-11-011-1/+0
| | | | Reported by: maxim
* Aquire Giant in the softdep_flush for clear_remove() and clear_inodedeps()kib2006-11-011-0/+7
| | | | | | | | processing when QUOTA is set. Reported and tested by: Peter Holm Reviewed by: tegge MFC after: 3 days
* Better English.pjd2006-11-011-1/+1
| | | | Submitted by: ru
* - Document two new function g_alloc_bio() and g_duplicate_bio().pjd2006-11-011-2/+20
| | | | | - Bump modification date. - Update copyright years.
* Do not include both <sys/types.h> and <sys/param.h>, it is a style bug ascognet2006-11-011-2/+1
| | | | | | | sys/types.h is included in sys/param.h, so instead just move the #include <sys/param.h> before the headers that need it. Spotted out by: bde
* Document BIO_FLUSH request.pjd2006-11-011-0/+2
|
* Add BIO_FLUSH support to GSHSEC class.pjd2006-11-011-0/+1
|
* Add BIO_FLUSH support to GPT class.pjd2006-11-011-0/+2
|
* Fix vim syntax highlighting. Vim complained about the (comment). The syntaxphilip2006-11-011-1/+1
| | | | file is also called "sendpr", not "send-pr".
* Fix -fstrict-aliasing warning.ru2006-11-011-1/+3
|
* Update the code to the current sync(2) version:pjd2006-11-011-4/+12
| | | | | | | | - Do not modify mnt_flag without mount interlock held. - Do not touch MNT_ASYNC flag, as this can lead to a race with nmount(2). Pointed out by: tegge Reviewed by: tegge
* Fix powerpc build.pjd2006-11-011-0/+1
| | | | Reported by: Peter Grehan <grehan@freebsd.org>
* Bring in support for the Rapid Spanning Tree Protocol (802.1w).thompsa2006-11-016-999/+2184
| | | | | | | | | | RSTP provides faster spanning tree convergence, the protocol will exchange information with neighboring switches to quickly transition to forwarding without creating loops. The code will default to RSTP mode but will downgrade any port connected to a legacy STP network so is fully backward compatible. Reviewed by: syrinx Tested by: syrinx
* When building an upgraded make, don't worry about processing it forjb2006-11-011-1/+1
| | | | | use with DTrace because the normal buildworld will do that when the tools are built.
* Add a build option to support WITH_CDDL and WITHOUT_CDDL, defaultingjb2006-11-012-0/+3
| | | | | | | | | | | | | to WITH_CDDL. This option enables building code that is licensed under Sun's CDDL. The DTrace code is licensed that way, so by default it will get built unless the WITHOUT_CDDL option is used. There is another build toggle, NO_CTF, which turns off execution of ctfconvert and ctfmerge in sys.mk, but this can't be implemented as WITH_/WITHOUT because bsd.own.mk isn't included in all Makefiles and sys.mk is included automatically by make.
* Add the trap-trace function for the hypervisor.jb2006-11-012-0/+18
|
* o OpenBSD 4.0 added.maxim2006-11-011-1/+4
|
* Add a cnputs() function to write a string to the console withjb2006-11-0110-17/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | a lock to prevent interspersed strings written from different CPUs at the same time. To avoid putting a buffer on the stack or having to malloc one, space is incorporated in the per-cpu structure. The buffer size if 128 bytes; chosen because it's the next power of 2 size up from 80 characters. String writes to the console are buffered up the end of the line or until the buffer fills. Then the buffer is flushed to all console devices. Existing low level console output via cnputc() is unaffected by this change. ithread calls to log() are also unaffected to avoid blocking those threads. A minor change to the behaviour in a panic situation is that console output will still be buffered, but won't be written to a tty as before. This should prevent interspersed panic output as a number of CPUs panic before we end up single threaded running ddb. Reviewed by: scottl, jhb MFC after: 2 weeks
* o Expand "Nov" to "November" in Dd macro, remove eol whitespace.maxim2006-11-011-1/+1
|
* Document the cdp for controlling CD power.kevlo2006-11-012-2/+4
| | | | Approved by: cognet
* Add error code EPERM.davidxu2006-11-011-1/+4
| | | | Reviewed by: ru, deischen
* Reworking of how to add ports.julian2006-11-0116-55/+126
| | | | submitted by: Jean Milanez Melo
* Remove debugging code I accidentally committed.pjd2006-11-011-35/+0
|
* Whitespace and style nits.jhb2006-10-311-4/+3
|
* Hook up gjournal bits to the build.pjd2006-10-318-3/+18
| | | | Sponsored by: home.pl
* Add Makefile for geom_journal kernel module.pjd2006-10-311-0/+10
| | | | Sponsored by: home.pl
* Forgot to add file with gjournal specific fsck code.pjd2006-10-311-0/+774
| | | | Sponsored by: home.pl
* Add fs_unrefs field to the super block structure.pjd2006-10-311-1/+2
| | | | Sponsored by: home.pl
* Add recently added fs_unrefs field.pjd2006-10-311-2/+3
| | | | Sponsored by: home.pl
* Update after function renames.pjd2006-10-312-4/+3
| | | | Sponsored by: home.pl
* Implements gjournal support. If file system has gjournal support enabledpjd2006-10-317-14/+41
| | | | | | | | | | and -p flag was given perform fast file system checking (bascially only garbage collecting of orphaned objects). Rename bread() to blread() and bwrite() to blwrite() as we now link to the libufs library, which also implement functions with that names. Sponsored by: home.pl
* Teach about new fields (cg_unrefs and fs_unrefs) and new FS_GJOURNAL flag.pjd2006-10-312-5/+12
| | | | Sponsored by: home.pl
* Teach mount(8) about MNT_GJOURNAL flag.pjd2006-10-311-0/+2
| | | | | | | MNT_GJOURNAL flag is not a mount-time flag, but it is needed to show 'gjournal' option in mount(8) output. Sponsored by: home.pl
* Add -J flag to both newfs(8) and tunefs(8) which allows to enable gjournalpjd2006-10-316-9/+56
| | | | | | | | support. I left -j flag for UFS journal implementation which we may gain at some point. Sponsored by: home.pl
* Add gjournal specific code to the UFS file system:pjd2006-10-319-4/+250
| | | | | | | | | | | | | | | | - Add FS_GJOURNAL flag which enables gjournal support on a file system. - Add cg_unrefs field to the cylinder group structure which holds number of unreferenced (orphaned) inodes in the given cylinder group. - Add fs_unrefs field to the super block structure which holds total number of unreferenced (orphaned) inodes. - When file or a directory is orphaned (last reference is removed, but object is still open), increase fs_unrefs and cg_unrefs fields, which is a hint for fsck in which cylinder groups looks for such (orphaned) objects. - When file is last closed, decrease {fs,cg}_unrefs fields. - Add VV_DELETED vnode flag which points at orphaned objects. Sponsored by: home.pl
* Fix buildworld.glebius2006-10-311-1/+2
|
* Add MNT_GJOURNAL flag which indicates, that file system has gjournalpjd2006-10-311-3/+4
| | | | | | | | | | support enabled. Add mnt_gjprovider field which keeps gjournal provider's name on which file system is placed on. This allows to not place file system on gjournal directly and allows gjournal class to pair gjournal provider with file system. Sponsored by: home.pl
* Add userland control utility for gjournal GEOM class.pjd2006-10-314-0/+465
| | | | Sponsored by: home.pl
* Add gjournal GEOM class (kernel side), which implements block levelpjd2006-10-313-0/+3555
| | | | | | | | journaling and can be tought about marking file system as clean before doing journal switch, which easly allows to add journaling to file systems that don't have this feature. Sponsored by: home.pl
* Implement BIO_FLUSH handling by simply passing it down to the components.pjd2006-10-316-3/+174
| | | | Sponsored by: home.pl
* Implement cgwrite1(3) function which stored a given cylinder group on disk.pjd2006-10-315-2/+38
| | | | Sponsored by: home.pl
* Implement BIO_FLUSH handling for da(4), amr(4), ata(4) and ataraid(4).pjd2006-10-315-25/+135
| | | | Sponsored by: home.pl
* Add a new disk flag - DISKFLAG_CANFLUSHCACHE, which indicates that the diskpjd2006-10-313-2/+25
| | | | | | can handle BIO_FLUSH requests. Sponsored by: home.pl
* Add a new I/O request - BIO_FLUSH, which basically tells providers below topjd2006-10-314-1/+32
| | | | | | | flush their caches. For now will mostly be used by disks to flush their write cache. Sponsored by: home.pl
* remove gdbserver on ARCH i386 as we now install it again..jmg2006-10-311-0/+2
| | | | Submitted by: Pawel Worach
* Make EWOULDBLOCK a recoverable error so that the request is retransmitted.mohans2006-10-311-2/+2
| | | | | | | This bug results in data corruption with NFS/TCP. Writes are silently dropped on EWOULDBLOCK (because socket send buffer is full and sockbuf timer fires). Reviewed by: ups@
* Fix a typo resulting in truncated linux32 signal trampoline code copiedkib2006-10-311-1/+1
| | | | | | | to the usermode. Usually, signal handler segfaulted on return. Reviewed by: jhb MFC after: 3 days
* Allocate receive and transmit data structures during attach() and free themjhb2006-10-311-47/+82
| | | | | | | | | | | | | during detach() similar to other NIC drivers rather than allocating them during init() and freeing them during stop(): - Move creation of tx bus_dma tag amd maps and tx_buffer_area from em_setup_transmit_structures() to em_allocate_transmit_structures(). - Call em_allocate_xxx_structures() in em_attach(). - Only call em_free_xxx_structures() in em_detach(). - Change em_setup_xxx_structures() to free any existing tx or rx buffers and in the case of rx repopulate the ring with newer buffers. Reviewed by: jfv
* - Use callout_init_mtx() to close various callout-related races.jhb2006-10-311-18/+13
| | | | | | | | - Drain the two timers in detach. - Check IFF_DRV_RUNNING in the link task and bail w/o doing anything if it is clear. Reviewed by: jfv, scottl
* Rework the transmit register handling. In em_encap() store index ofglebius2006-10-312-33/+79
| | | | | | | | | | | the EOP descriptor in the first descriptor of the packet. And then in em_txeof() search for DD bits set only in the EOP descriptors, embedding the cleanup of all packet's descriptors into inner loop. This change is important for future chips, where DD bit is going to be set only on the EOP descriptors. Submitted by: jfv
OpenPOWER on IntegriCloud