summaryrefslogtreecommitdiffstats
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* - Use a local variable to close a minor race when determining if the wmesgjhb2003-04-171-9/+15
| | | | | | printed out needs a prefix such as when a thread is blocked on a lock. - Use another local variable to close another race for the td_wmesg and td_wchan members of struct thread.
* Protect p_flag with the proc lock. The sched_lock is not needed to turnjhb2003-04-171-2/+2
| | | | off P_STOPPED_SIG in p_flag.
* - P_SHOULDSTOP just needs proc lock now, so don't acquire sched_lock unlessjhb2003-04-171-6/+4
| | | | | it is needed. - Add a proc lock assertion.
* Add a proc lock assertion and move another assertion up to the top of thejhb2003-04-171-2/+4
| | | | function.
* It appears that msdosfs_init() is called multiple times. This happensimp2003-04-101-0/+13
| | | | | | on my system where I preload msdosfs and have it in my kernel. There's likely another bug that's causing msdosfs_init() to be called multiple times, but this makes that harmless.
* - smb_td_intr takes a thread as an argument not a proc.jeff2003-04-011-1/+1
|
* - smb_proc_intr is now spelled smb_td_intr.jeff2003-04-011-1/+1
| | | | | Noticed by: phk Pointy hat to: jeffr
* Specify the M_WAITOK flag explicitly in the MALLOC call to silence atjr2003-04-011-1/+2
| | | | runtime warning ("Bad malloc flags: 0").
* Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtimetjr2003-04-011-1/+2
| | | | warning ("Bad malloc flags: 0").
* - Move p->p_sigmask to td->td_sigmask. Signal masks will be per thread withjeff2003-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.
* Deregister the dev_clone event handler we registered - don't touch thetjr2003-03-271-2/+4
| | | | handlers installed by other devices.
* Replace the at_fork, at_exec, and at_exit functions with the slightly morejhb2003-03-241-5/+7
| | | | | | | | | flexible process_fork, process_exec, and process_exit eventhandlers. This reduces code duplication and also means that I don't have to go duplicate the eventhandler locking three more times for each of at_fork, at_exec, and at_exit. Reviewed by: phk, jake, almost complete silence on arch@
* Better fix for the problem addressed by rev.1.79: don't loop inbde2003-03-241-8/+13
| | | | | | | | | | | | | fifo_open() waiting for another reader or writer if one arrived and departed while we were waiting (or a little earlier). Rev.1.79 broke blocking opens of fifos by making them time out after 1 second. This was bad for at least apsfilter. Tested by: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>, Alexander Leidinger <Alexander@leidinger.net>, phk MFC after: 4 weeks
* Make udf_allocv() return an unlocked vnode instead of a locked onetjr2003-03-161-2/+1
| | | | | | to avoid a "locking against myself" panic when udf_hashins() tries to lock it again. Lock the vnode in udf_hashins() before adding it to the hash bucket.
* - Add a lock for protecting against msleep(bp, ...) wakeup(bp) races.jeff2003-03-131-17/+2
| | | | | | | | | | - Create a new function bdone() which sets B_DONE and calls wakup(bp). This is suitable for use as b_iodone for buf consumers who are not going through the buf cache. - Create a new function bwait() which waits for the buf to be done at a set priority and with a specific wmesg. - Replace several cases where the above functionality was implemented without locking with the new functions.
* Rename vfs_stdsync function to vfs_stdnosync which matches morekan2003-03-1112-107/+12
| | | | | | | | | | | | | closely what function is really doing. Update all existing consumers to use the new name. Introduce a new vfs_stdsync function, which iterates over mount point's vnodes and call FSYNC on each one of them in turn. Make nwfs and smbfs use this new function instead of rolling their own identical sync implementations. Reviewed by: jeff
* Set f_fstypename in coda_nb_statfs().tjr2003-03-071-0/+1
|
* Add a temporary workaround for a deadlock in Coda venus 5.3.19 thattjr2003-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.
* Remove fragments of support for the FreeBSD 3.x and 4.x branches.tjr2003-03-063-20/+0
|
* VOP_PATHCONF returns a register_t, not an int. Noticed by phk.tjr2003-03-051-1/+1
|
* Add prototype for coda_pathconf() that I missed in the previous commit.tjr2003-03-051-0/+1
|
* Add a minimal implementation of VOP_PATHCONF to silence warningtjr2003-03-051-1/+29
| | | | messages from ls(1).
* Handle the case where a_uio->uio_td == NULL properly in coda_readlink().tjr2003-03-051-1/+2
| | | | This happens when called from lookup().
* - Add a new 'flags' parameter to getblk().jeff2003-03-046-12/+15
| | | | | | | | | | - Define one flag GB_LOCK_NOWAIT that tells getblk() to pass the LK_NOWAIT flag to the initial BUF_LOCK(). This will eventually be used in cases were we want to use a buffer only if it is not currently in use. - Convert all consumers of the getblk() api to use this extra parameter. Reviwed by: arch Not objected to by: mckusick
* Finish cleanup of vprint() which was begun with changing v_tag to a string.njl2003-03-0315-30/+9
| | | | | | Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
* Make nokqfilter() return the correct return value.phk2003-03-031-2/+0
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
* Gigacommit to improve device-driver source compatibility betweenphk2003-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)
* Get rid of caddr_t.des2003-03-022-2/+2
|
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-025-14/+14
|
* Clean up whitespace, s/register //, refrain from strong urge to ANSIfy.des2003-03-027-70/+70
|
* uiomove-related caddr_t -> void * (just the low-hanging fruit)des2003-03-027-12/+10
|
* wakeup(9) and msleep(9) take void * arguments, not caddr_t.des2003-03-021-3/+3
|
* NODEVFS cleanup:phk2003-03-021-4/+3
| | | | Replace devfs_{create,destroy} hooks with direct function calls.
* Copy some VM changes from smbfs_putpages() to nwfs_putpages(): locktjr2003-02-271-1/+3
| | | | page queues, use vm_page_undirty().
* Fix vnode corruption bug when trying to rename files across filesystems.tjr2003-02-271-10/+13
| | | | Similar to the bug fixed in smbfs_vnops.c rev 1.33.
* Sync nwfs_access() with smbfs_access(): use vaccess() instead of checkingtjr2003-02-271-13/+5
| | | | permissions ourself, fixes problem with VAPPEND.
* Catch up with recent netncp changes: ncp_chkintr() takes a thread, nottjr2003-02-271-1/+1
| | | | a proc, as its second argument.
* Change the process flags P_KSES to be P_THREADED.julian2003-02-271-1/+1
| | | | This is just a cosmetic change but I've been meaning to do it for about a year.
* msgphk2003-02-261-2/+0
|
* Do not call smbfs_attr_cacheremove() in the EXDEV case in smbfs_rename().tjr2003-02-191-5/+9
| | | | | | | | | One of the vnodes is on different mount and is possibly on a different kind of filesystem; treating it as an smbfs vnode then writing to it will probably corrupt it. PR: 48381 MFC after: 1 month
* Back out M_* changes, per decision of the TRB.imp2003-02-1936-93/+93
| | | | Approved by: trb
* Use the SI_CANDELETE flag on the dev_t rather than the D_CANFREE flagphk2003-02-111-3/+1
| | | | on the cdevsw to determine ability to handle the BIO_DELETE request.
* - Cleanup unlocked accesses to buf flags by introducing a new b_vflag memberjeff2003-02-093-154/+9
| | | | | | | | | | that is protected by the vnode lock. - Move B_SCANNED into b_vflags and call it BV_SCANNED. - Create a vop_stdfsync() modeled after spec's sync. - Replace spec_fsync, msdos_fsync, and hpfs_fsync with the stdfsync and some fs specific processing. This gives all of these filesystems proper behavior wrt MNT_WAIT/NOWAIT and the use of the B_SCANNED flag. - Annotate the locking in buf.h
* Revert removal of vnode and VFS stubs; bp asserts that they are needed.tjr2003-02-083-3/+107
|
* Garbage-collect stub VFS ops, use the defaults instead.tjr2003-02-071-45/+3
|
* Garbage-collect stub vnode ops, use the defaults instead.tjr2003-02-072-62/+0
|
* Add missing permission checks to the smbfs VOP_SETATTR vnode op for thetjr2003-02-041-0/+5
| | | | | | case where the caller requests to change access or modification times. MFC after: 3 days
* Split the global timezone structure into two integer fields tophk2003-02-033-6/+6
| | | | | | | | | | prevent the compiler from optimizing assignments into byte-copy operations which might make access to the individual fields non-atomic. Use the individual fields throughout, and don't bother locking them with Giant: it is no longer needed. Inspired by: tjr
* Use vaccess() instead of rolling our own access checks. This fixes a bugtjr2003-02-031-12/+6
| | | | | where requests to open a file in append mode were always denied, and will also be useful when capabilities and auditing are implemented.
* NODEVFS cleanup: remove #ifdefs.phk2003-01-294-8/+0
|
OpenPOWER on IntegriCloud