aboutsummaryrefslogtreecommitdiff
path: root/sys/coda/coda_psdev.c
Commit message (Collapse)AuthorAgeFilesLines
* Complete repo-copy and move of Coda from src/sys/coda to src/sys/fs/codaRobert Watson2007-07-121-695/+0
| | | | | | | | | | | | | by removing files from src/sys/coda, and updating include paths in the new location, kernel configuration, and Makefiles. In one case add $FreeBSD$. Discussed with: anderson, Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith) Repo-copy madness: simon Notes: svn path=/head/; revision=171416
* Replace CODA_OPEN with CODA_OPEN_BY_FD: coda_open was disabled becauseRobert Watson2007-07-111-1/+22
| | | | | | | | | | | | | | we can't open container files by device/inode number pair anymore. Replace the CODA_OPEN upcall with CODA_OPEN_BY_FD, where venus returns an open file descriptor for the container file. We can then grab a reference on the vnode coda_psdev.c:vc_nb_write and use this vnode for further accesses to the container file. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith) Notes: svn path=/head/; revision=171377
* Avoid crash when opening Coda device: when allocating coda_mntinfo, weRobert Watson2007-07-111-5/+7
| | | | | | | | | | | need to initialize dev so that we can actually find the allocated coda_mntinfo structure later on. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith) Notes: svn path=/head/; revision=171374
* Fix -Wundef from compiling the amd64 LINT.Ruslan Ermilov2005-12-041-1/+1
| | | | Notes: svn path=/head/; revision=153084
* Print devtoname() instead of minor().Poul-Henning Kamp2005-03-151-2/+2
| | | | Notes: svn path=/head/; revision=143624
* Start each of the license/copyright comments with /*-Warner Losh2005-01-051-2/+2
| | | | Notes: svn path=/head/; revision=139745
* General modernization of coda:Brooks Davis2004-09-011-25/+10
| | | | | | | | | | | - Ditch NVCODA - Don't use a static major - Don't declare functions extern Reviewed by: peter Notes: svn path=/head/; revision=134585
* Kill count device support from config. I've changed the last fewPeter Wemm2004-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | remaining consumers to have the count passed as an option. This is i4b, pc98/wdc, and coda. Bump configvers.h from 500013 to 600000. Remove heuristics that tried to parse "device ed5" as 5 units of the ed device. This broke things like the snd_emu10k1 device, which required quotes to make it parse right. The no-longer-needed quotes have been removed from NOTES, GENERIC etc. eg, I've removed the quotes from: device snd_maestro device "snd_maestro3" device snd_mss I believe everything will still compile and work after this. Notes: svn path=/head/; revision=134542
* Do the dreaded s/dev_t/struct cdev */Poul-Henning Kamp2004-06-161-6/+6
| | | | | | | Bump __FreeBSD_version accordingly. Notes: svn path=/head/; revision=130585
* - Implement selwakeuppri() which allows raising the priority of aSeigo Tanimura2003-11-091-2/+2
| | | | | | | | | | | | | | | | thread being waken up. The thread waken up can run at a priority as high as after tsleep(). - Replace selwakeup()s with selwakeuppri()s and pass appropriate priorities. - Add cv_broadcastpri() which raises the priority of the broadcast threads. Used by selwakeuppri() if collision occurs. Not objected in: -arch, -current Notes: svn path=/head/; revision=122352
* 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
* Use __FBSDID().David E. O'Brien2003-06-101-4/+4
| | | | 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
* 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
* More s/file system/filesystem/gTom Rhodes2002-05-161-1/+1
| | | | Notes: svn path=/head/; revision=96755
* 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
* Update to C99, s/__FUNCTION__/__func__/,David E. O'Brien2001-12-101-1/+1
| | | | | | | also don't use ANSI string concatenation. Notes: svn path=/head/; revision=87599
* Backed out vestiges of the quick fixes for the transient breakage ofBruce Evans2001-10-131-1/+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
* Use the passed in thread to selrecord() instead of curthread.John Baldwin2001-09-211-1/+1
| | | | Notes: svn path=/head/; revision=83804
* KSE Milestone 2Julian Elischer2001-09-121-11/+12
| | | | | | | | | | | | | | | | | 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
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inMark Murray2001-05-011-5/+6
| | | | | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations) Notes: svn path=/head/; revision=76166
* fix it so it compiles againMatt Jacob2001-04-231-0/+2
| | | | Notes: svn path=/head/; revision=75877
* Protect accesses to member of struct proc with the proc lock.John Baldwin2000-12-061-2/+5
| | | | Notes: svn path=/head/; revision=69652
* Remove ~25 unneeded #include <sys/conf.h>Poul-Henning Kamp2000-04-191-1/+0
| | | | | | | Remove ~60 unneeded #include <sys/malloc.h> Notes: svn path=/head/; revision=59391
* sigset_t change (part 2 of 5)Marcel Moolenaar1999-09-291-24/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- The core of the signalling code has been rewritten to operate on the new sigset_t. No methodological changes have been made. Most references to a sigset_t object are through macros (see signalvar.h) to create a level of abstraction and to provide a basis for further improvements. The NSIG constant has not been changed to reflect the maximum number of signals possible. The reason is that it breaks programs (especially shells) which assume that all signals have a non-null name in sys_signame. See src/bin/sh/trap.c for an example. Instead _SIG_MAXSIG has been introduced to hold the maximum signal possible with the new sigset_t. struct sigprop has been moved from signalvar.h to kern_sig.c because a) it is only used there, and b) access must be done though function sigprop(). The latter because the table doesn't holds properties for all signals, but only for the first NSIG signals. signal.h has been reorganized to make reading easier and to add the new and/or modified structures. The "old" structures are moved to signalvar.h to prevent namespace polution. Especially the coda filesystem suffers from the change, because it contained lines like (p->p_sigmask == SIGIO), which is easy to do for integral types, but not for compound types. NOTE: kdump (and port linux_kdump) must be recompiled. Thanks to Garrett Wollman and Daniel Eischen for pressing the importance of changing sigreturn as well. Notes: svn path=/head/; revision=51791
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Remove the RCS "Log" and all the verbiage it has generated.Poul-Henning Kamp1999-07-211-135/+1
| | | | Notes: svn path=/head/; revision=48960
* Missed a stray LKM #ifdefPeter Wemm1999-01-171-5/+8
| | | | Notes: svn path=/head/; revision=42770
* coda_lookup now passes up an extra flag. But old veni willRobert V. Baron1998-11-111-4/+28
| | | | | | | | | | be ok; new veni will check /dev/cfs0 to make sure that a new kernel is running. Also, a bug in vc_nb_close iff CODA_SIGNAL's were seen has been fixed. Notes: svn path=/head/; revision=41095
* Change the way unmounting happens to guarantee that theRobert V. Baron1998-10-281-20/+51
| | | | | | | | | | client programs are allowed to finish up (coda_call is forced to complete) and release their locks. Thus there is a reasonable chance that the vflush implicit in the unmount will not get hung on held locks. Notes: svn path=/head/; revision=40708
* Fixes for lkm:Robert V. Baron1998-09-291-2/+5
| | | | | | | | 1. use VFS_LKM vs ACTUALLY_LKM_NOT_KERNEL 2. don't pass -DCODA to lkm build Notes: svn path=/head/; revision=39778
* Cleanup and fix THE bugRobert V. Baron1998-09-281-5/+10
| | | | Notes: svn path=/head/; revision=39728
* Put "stray" printouts under DIAGNOSTIC. Make everything buildRobert V. Baron1998-09-251-11/+27
| | | | | | | | with DEBUG on. Add support for lkm. (The macro's don't work for me; for a good chuckle look at the end of coda_fbsd.c.) Notes: svn path=/head/; revision=39650
* Finish conversion of cfs -> codaRobert V. Baron1998-09-131-7/+11
| | | | Notes: svn path=/head/; revision=39126
* All the references to cfs, in symbols, structs, and stringsRobert V. Baron1998-09-111-81/+84
| | | | | | | have been changed to coda. (Same for CFS.) Notes: svn path=/head/; revision=39085
* Pass2 completeRobert V. Baron1998-09-021-99/+42
| | | | Notes: svn path=/head/; revision=38759
* Very Preliminary CodaRobert V. Baron1998-08-291-0/+756
Notes: svn path=/cvs2svn/branches/CODA/; revision=38625