aboutsummaryrefslogtreecommitdiff
path: root/sys/coda
Commit message (Collapse)AuthorAgeFilesLines
* Include <sys/mutex.h>. Don't depend on namespace pollution in <sys/vnode.h>.Bruce Evans2003-10-051-2/+1
| | | | | | | | Fixed a nearby style bug. The include of vcoda.h used angle brackets and was not used. Notes: svn path=/head/; revision=120794
* - Check XLOCK prior to accessing v_data.Jeff Roberson2003-10-051-0/+6
| | | | Notes: svn path=/head/; revision=120784
* - Make proper use of the mntvnode_mtx. We do not need the loop labelJeff Roberson2003-10-041-3/+5
| | | | | | | | because we do not drop the mntvnode_mtx. If this code had ever executed and hit the loop condition it would have spun forever. Notes: svn path=/head/; revision=120735
* Move an overly verbose message under #ifdef CODA_VERBOSE.Tim J. Robbins2003-09-131-0/+2
| | | | Notes: svn path=/head/; revision=120011
* Move an annoying printf() call that gets triggered every time anTim J. Robbins2003-09-101-0/+2
| | | | | | | operation is interrupted (with ^C or ^Z) under CODA_VERBOSE. Notes: svn path=/head/; revision=119942
* Add support for the Coda 6.x venus<->kernel interface. This extendsTim J. Robbins2003-09-0711-342/+388
| | | | | | | | | | | | | | | | | FIDs to be 128-bits wide and adds support for realms. Add a new CODA_COMPAT_5 option, which requests support for the old Coda 5.x interface instead of the new one. Create a new coda5.ko module that supports the 5.x interface, and make the existing coda.ko module use the new 6.x interface. These modules cannot both be loaded at the same time. Obtained from: Jan Harkes & the coda-6.0.2 distribution, NetBSD (drochner) (CODA_COMPAT_5 option). Notes: svn path=/head/; revision=119832
* Add a "int fd" argument to VOP_OPEN() which in the future willPoul-Henning Kamp2003-07-262-4/+4
| | | | | | | | | | | | contain the filedescriptor number on opens from userland. The index is used rather than a "struct file *" since it conveys a bit more information, which may be useful to in particular fdescfs and /dev/fd/* For now pass -1 all over the place. Notes: svn path=/head/; revision=118047
* Remove in toto coda_strategy which incorrectly implemented vop_panic();Poul-Henning Kamp2003-06-151-23/+0
| | | | Notes: svn path=/head/; revision=116410
* Initialize struct vfsops C99-sparsely.Poul-Henning Kamp2003-06-122-26/+18
| | | | | | | | Submitted by: hmp Reviewed by: phk Notes: svn path=/head/; revision=116271
* Use __FBSDID().David E. O'Brien2003-06-107-27/+23
| | | | Notes: svn path=/head/; revision=116173
* - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread withJeff Roberson2003-03-311-14/+14
| | | | | | | | | | a follow on commit to kern_sig.c - signotify() now operates on a thread since unmasked pending signals are stored in the thread. - PS_NEEDSIGCHK moves to TDF_NEEDSIGCHK. Notes: svn path=/head/; revision=112888
* Deregister the dev_clone event handler we registered - don't touch theTim J. Robbins2003-03-271-2/+4
| | | | | | | handlers installed by other devices. Notes: svn path=/head/; revision=112706
* Set f_fstypename in coda_nb_statfs().Tim J. Robbins2003-03-071-0/+1
| | | | Notes: svn path=/head/; revision=111960
* Add a temporary workaround for a deadlock in Coda venus 5.3.19 thatTim J. Robbins2003-03-062-2/+28
| | | | | | | | | occurs when mounting the filesystem. The problem is that venus issues the mount() syscall, which calls vfs_mount(), which calls coda_root() which attempts to communicate with venus. Notes: svn path=/head/; revision=111945
* VOP_PATHCONF returns a register_t, not an int. Noticed by phk.Tim J. Robbins2003-03-051-1/+1
| | | | Notes: svn path=/head/; revision=111931
* Add prototype for coda_pathconf() that I missed in the previous commit.Tim J. Robbins2003-03-051-0/+1
| | | | Notes: svn path=/head/; revision=111908
* Add a minimal implementation of VOP_PATHCONF to silence warningTim J. Robbins2003-03-051-1/+29
| | | | | | | messages from ls(1). Notes: svn path=/head/; revision=111903
* Handle the case where a_uio->uio_td == NULL properly in coda_readlink().Tim J. Robbins2003-03-051-1/+2
| | | | | | | This happens when called from lookup(). Notes: svn path=/head/; revision=111902
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+8
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* msgPoul-Henning Kamp2003-02-261-2/+0
| | | | Notes: svn path=/head/; revision=111573
* Back out M_* changes, per decision of the TRB.Warner Losh2003-02-191-1/+1
| | | | | | | Approved by: trb Notes: svn path=/head/; revision=111119
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.Alfred Perlstein2003-01-211-1/+1
| | | | | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT. Notes: svn path=/head/; revision=109623
* Back our kernel support for reliable signal queues.Juli Mallett2002-10-011-11/+7
| | | | | | | Requested by: rwatson, phk, and many others Notes: svn path=/head/; revision=104306
* When working with sigset_t's, and needing to perform masking operations basedJuli Mallett2002-10-011-7/+11
| | | | | | | | | on a process's pending signals, use the signal queue flattener, ksiginfo_to_sigset_t, on the process, and on a local sigset_t, and then work with that as needed. Notes: svn path=/head/; revision=104264
* Fix these warns where sizeof(int) != sizeof(void *)Nate Lawson2002-09-261-4/+4
| | | | | | | | | | | | | | | | | | | /h/des/src/sys/coda/coda_venus.c: In function `venus_ioctl': /h/des/src/sys/coda/coda_venus.c:277: warning: cast from pointer to integer of different size /h/des/src/sys/coda/coda_venus.c:292: warning: cast from pointer to integer of different size /h/des/src/sys/coda/coda_venus.c: In function `venus_readlink': /h/des/src/sys/coda/coda_venus.c:380: warning: cast from pointer to integer of different size /h/des/src/sys/coda/coda_venus.c: In function `venus_readdir': /h/des/src/sys/coda/coda_venus.c:637: warning: cast from pointer to integer of different size Submitted by: des-alpha-tinderbox Notes: svn path=/head/; revision=103989
* - Use vrefcnt() instead of directly accessing v_usecount.Jeff Roberson2002-09-253-19/+21
| | | | Notes: svn path=/head/; revision=103937
* Attempt to fix the error reported by the alpha tinderbox. A pointerIan Dowse2002-09-221-2/+2
| | | | | | | | was being cast to an integer as part of a hash function, so just add an intptr_t cast to silence the warning. Notes: svn path=/head/; revision=103804
* Remove all use of vnode->v_tag, replacing with appropriate substitutes.Nate Lawson2002-09-141-1/+1
| | | | | | | | | | | | | | | v_tag is now const char * and should only be used for debugging. Additionally: 1. All users of VT_NTS now check vfsconf->vf_type VFCF_NETWORK 2. The user of VT_PROCFS now checks for the new flag VV_PROCDEP, which is propagated by pseudofs to all child vnodes if the fs sets PFS_PROCDEP. Suggested by: phk Reviewed by: bde, rwatson (earlier version) Notes: svn path=/head/; revision=103314
* Fix typo in the last revision.Mike Barcroft2002-08-041-1/+1
| | | | | | | Noticed by: i386 tinderbox Notes: svn path=/head/; revision=101330
* - Replace v_flag with v_iflag and v_vflagJeff Roberson2002-08-043-5/+9
| | | | | | | | | | | | | | | | | | - v_vflag is protected by the vnode lock and is used when synchronization with VOP calls is needed. - v_iflag is protected by interlock and is used for dealing with vnode management issues. These flags include X/O LOCK, FREE, DOOMED, etc. - All accesses to v_iflag and v_vflag have either been locked or marked with mp_fixme's. - Many ASSERT_VOP_LOCKED calls have been added where the locking was not clear. - Many functions in vfs_subr.c were restructured to provide for stronger locking. Idea stolen from: BSD/OS Notes: svn path=/head/; revision=101308
* More s/file system/filesystem/gTom Rhodes2002-05-1611-18/+20
| | | | Notes: svn path=/head/; revision=96755
* Make daddr_t and u_daddr_t 64bits wide.Poul-Henning Kamp2002-05-141-1/+1
| | | | | | | | | Retire daddr64_t and use daddr_t instead. Sponsored by: DARPA & NAI Labs. Notes: svn path=/head/; revision=96572
* Don't put a line break in string literals. GCC 3.1 complains and GCCMarcel Moolenaar2002-04-201-13/+10
| | | | | | | 3.2 drops the ball. Notes: svn path=/head/; revision=95094
* Lock proctree_lock instead of pgrpsess_lock.John Baldwin2002-04-161-2/+2
| | | | Notes: svn path=/head/; revision=94861
* Moved signal handling and rescheduling from userret() to ast() so thatBruce Evans2002-04-041-0/+1
| | | | | | | | | | | | | | they aren't in the usual path of execution for syscalls and traps. The main complication for this is that we have to set flags to control ast() everywhere that changes the signal mask. Avoid locking in userret() in most of the remaining cases. Submitted by: luoqi (first part only, long ago, reorganized by me) Reminded by: dillon Notes: svn path=/head/; revision=93793
* Remove __P.Alfred Perlstein2002-03-203-35/+35
| | | | Notes: svn path=/head/; revision=92755
* Add a flags parameter to VFS_VGET to pass through the desiredKirk McKusick2002-03-171-1/+1
| | | | | | | | | | | | | | | locking flags when acquiring a vnode. The immediate purpose is to allow polling lock requests (LK_NOWAIT) needed by soft updates to avoid deadlock when enlisting other processes to help with the background cleanup. For the future it will allow the use of shared locks for read access to vnodes. This change touches a lot of files as it affects most filesystems within the system. It has been well tested on FFS, loopback, and CD-ROM filesystems. only lightly on the others, so if you find a problem there, please let me (mckusick@mckusick.com) know. Notes: svn path=/head/; revision=92462
* Introduce the new 64-bit size disk block, daddr64_t. ChangeKirk McKusick2002-03-151-2/+2
| | | | | | | | | | | | | | | the bio and buffer structures to have daddr64_t bio_pblkno, b_blkno, and b_lblkno fields which allows access to disks larger than a Terabyte in size. This change also requires that the VOP_BMAP vnode operation accept and return daddr64_t blocks. This delta should not affect system operation in any way. It merely sets up the necessary interfaces to allow the development of disk drivers that work with these larger disk block addresses. It also allows for the development of UFS2 which will use 64-bit block addresses. Notes: svn path=/head/; revision=92363
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredJohn Baldwin2002-02-271-2/+2
| | | | | | | reference. Notes: svn path=/head/; revision=91406
* Fix LINT breakage by adding a missing include.Thomas Moestl2002-02-231-0/+1
| | | | Notes: svn path=/head/; revision=91181
* Lock struct pgrp, session and sigio.Seigo Tanimura2002-02-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current) Notes: svn path=/head/; revision=91140
* Staticise the coda vfsop pointer.Mike Smith2002-01-082-2/+1
| | | | Notes: svn path=/head/; revision=89090
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-103-3/+3
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Change the vnode list under the mount point from a LIST to a TAILQMatthew Dillon2001-10-231-2/+2
| | | | | | | | | in preparation for an implementation of limiting code for kern.maxvnodes. MFC after: 3 days Notes: svn path=/head/; revision=85339
* Fixed bitrot in a banal comment by removing the comment.Bruce Evans2001-10-131-1/+1
| | | | Notes: svn path=/head/; revision=84874
* Backed out vestiges of the quick fixes for the transient breakage ofBruce Evans2001-10-134-4/+0
| | | | | | | | <sys/mount.h> in rev.1.106 of the latter (don't include <sys/socket.h> just to work around bugs in <sys/mount.h>). Notes: svn path=/head/; revision=84873
* Change the kernel's ucred API as follows:John Baldwin2001-10-111-2/+1
| | | | | | | | | | | - crhold() returns a reference to the ucred whose refcount it bumps. - crcopy() now simply copies the credentials from one credential to another and has no return value. - a new crshared() primitive is added which returns true if a ucred's refcount is > 1 and false (0) otherwise. Notes: svn path=/head/; revision=84827
* Use the passed in thread to selrecord() instead of curthread.John Baldwin2001-09-211-1/+1
| | | | Notes: svn path=/head/; revision=83804
* fix typoJulian Elischer2001-09-131-3/+0
| | | | | | | pointed out by: jhb Notes: svn path=/head/; revision=83417
* KSE Milestone 2Julian Elischer2001-09-126-111/+118
| | | | | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha Notes: svn path=/head/; revision=83366