summaryrefslogtreecommitdiffstats
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* Change iov_base's type from `char *' to the standard `void *'. Allmike2002-10-112-3/+3
| | | | | uses of iov_base which assume its type is `char *' (in order to do pointer arithmetic) have been updated to cast iov_base to `char *'.
* Treat the pathptrn field as a real pattern with the aid of fnmatch().dd2002-10-081-15/+1
|
* Yet another 64 bits warning fix: s/u_int/size_t/.mux2002-10-061-1/+1
|
* Fix a warning on 64 bits platforms: copyinstr() takesmux2002-10-061-1/+1
| | | | a size_t *, not an u_int *.
* Fix a warning on 64 bits platforms: copystr() takes a size_t *,mux2002-10-061-1/+1
| | | | not an int *.
* Integrate a devfs/MAC fix from the MAC tree: avoid a race condition duringrwatson2002-10-051-4/+3
| | | | | | | | | devfs VOP symlink creation by introducing a new entry point to determine the label of the devfs_dirent prior to allocation of a vnode for the symlink. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Plug memoryleaks detected by FlexeLint.phk2002-10-051-2/+8
|
* Back our kernel support for reliable signal queues.jmallett2002-10-012-13/+8
| | | | Requested by: rwatson, phk, and many others
* Move the vop-vector declaration into devfs_vnops.c where it belongs.phk2002-10-012-5/+3
|
* When working with sigset_t's, and needing to perform masking operations basedjmallett2002-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.
* First half of implementation of ksiginfo, signal queues, and such. Thisjmallett2002-09-301-1/+2
| | | | | | | | | | | | | | | | | | | | | | gets signals operating based on a TailQ, and is good enough to run X11, GNOME, and do job control. There are some intricate parts which could be more refined to match the sigset_t versions, but those require further evaluation of directions in which our signal system can expand and contract to fit our needs. After this has been in the tree for a while, I will make in kernel API changes, most notably to trapsignal(9) and sendsig(9), to use ksiginfo more robustly, such that we can actually pass information with our (queued) signals to the userland. That will also result in using a struct ksiginfo pointer, rather than a signal number, in a lot of kern_sig.c, to refer to an individual pending signal queue member, but right now there is no defined behaviour for such. CODAFS is unfinished in this regard because the logic is unclear in some places. Sponsored by: New Gold Technology Reviewed by: bde, tjr, jake [an older version, logic similar]
* s/struct dev_t */dev_t */phk2002-09-281-1/+1
|
* Fix mis-indent.phk2002-09-281-1/+1
|
* Be consistent about "static" functions: if the function is markedphk2002-09-285-10/+10
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* I misplaced a local variable yesterday.phk2002-09-281-1/+1
|
* Add a D_NOGIANT flag which can be set in a struct cdevsw to indicatephk2002-09-271-13/+76
| | | | | | | | | | | | that a particular device driver is not Giant-challenged. SPECFS will DROP_GIANT() ... PICKUP_GIANT() around calls to the driver in question. Notice that the interrupt path is not affected by this! This does _NOT_ work for drivers accessed through cdevsw->d_strategy() ie drivers for disk(-like), some tapes, maybe others.
* Rename struct specinfo to the more appropriate struct cdev.phk2002-09-271-1/+1
| | | | Agreed on: jake, rwatson, jhb
* I hate it when patch gives me .rej files.phk2002-09-261-0/+1
| | | | | Can't we make the pre-commit check refuse if there are .rej files in the directory ?
* Return ENOTTY on unhandled ioctls.phk2002-09-261-2/+5
|
* Return ENOTTY on unrecognized ioctls.phk2002-09-262-2/+2
|
* Return ENOTTY on incorrect ioctls.phk2002-09-261-1/+1
|
* Return ENOTTY when we don't recognize an ioctl.phk2002-09-261-1/+1
|
* Fix these warns where sizeof(int) != sizeof(void *)njl2002-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
* - Fix a botch in previous commit; oldvp should not be unconditionallyjeff2002-09-261-2/+3
| | | | assigned.
* Fix the problem introduced by vop_stdbmap() usage. The NTFS does notsemenu2002-09-251-1/+28
| | | | | | | | implement worthful VOP_BMAP() handler, so it expect the blkno not to be changed by VOP_BMAP(). Otherwise, it'll have to find some tricky way to determine if bp was VOP_BMAP()ed or not in VOP_STRATEGY(). PR: kern/42139
* - Use vrefcnt() instead of v_usecount.jeff2002-09-251-2/+2
|
* - Use vrefcnt() instead of directly accessing v_usecount.jeff2002-09-253-19/+21
|
* - Use vrefcnt() where it is safe to do so instead of doing direct andjeff2002-09-2518-60/+71
| | | | | | | unlocked accesses to v_usecount. - Lock access to the buf lists in the various sync routines. interlock locking could be avoided almost entirely in leaf filesystems if the fsync function had a generic helper.
* - Lock access to the buf lists in spec_sync()jeff2002-09-251-7/+15
| | | | - Fixup interlock locking in spec_close()
* - Hold the vp lock while accessing v_vflags.jeff2002-09-251-5/+7
|
* use __packed.alfred2002-09-231-24/+24
|
* Attempt to fix the error reported by the alpha tinderbox. A pointeriedowse2002-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.
* Fix misspellings, capitalization, and punctuation in comments. Minortruckman2002-09-223-90/+95
| | | | comment phrasing and style changes.
* Use the fields in the sysentvec and in the vm map header in place of thejake2002-09-211-1/+3
| | | | | | | | constants VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS, USRSTACK and PS_STRINGS. This is mainly so that they can be variable even for the native abi, based on different machine types. Get stack protections from the sysentvec too. This makes it trivial to map the stack non-executable for certain abis, on machines that support it.
* VOP_FSYNC() requires that it's vnode argument be locked, which nfs_link()truckman2002-09-191-8/+15
| | | | | | | | | | wasn't doing. Rather than just lock and unlock the vnode around the call to VOP_FSYNC(), implement rwatson's suggestion to lock the file vnode in kern_link() before calling VOP_LINK(), since the other filesystems also locked the file vnode right away in their link methods. Remove the locking and and unlocking from the leaf filesystem link methods. Reviewed by: rwatson, bde (except for the unionfs_link() changes)
* Remove any VOP_PRINT that redundantly prints the tag.njl2002-09-1810-112/+15
| | | | | | Move lockmgr_printinfo() into vprint() for everyone's benefit. Suggested by: bde
* Always open file in the DENYNONE mode and let the server to decide what isbp2002-09-181-5/+15
| | | | | good for this file. This should allow read only access to file which is already opened on server.
* Implement additional SMB calls to allow proper update of file size as somebp2002-09-184-3/+239
| | | | | | | | | | file servers fail to do it in the right way. New NFLUSHWIRE flag marks pending flush request(s). NB: not all cases covered by this commit. Obtained from: Darwin
* Remove all use of vnode->v_tag, replacing with appropriate substitutes.njl2002-09-1428-36/+49
| | | | | | | | | | | | 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)
* Completely redo thread states.julian2002-09-112-3/+2
| | | | Reviewed by: davidxu@freebsd.org
* s/SGNL/SIG/davidxu2002-09-052-3/+3
| | | | | | | | | | s/SNGL/SINGLE/ s/SNGLE/SINGLE/ Fix abbreviation for P_STOPPED_* etc flags, in original code they were inconsistent and difficult to distinguish between them. Approved by: julian (mentor)
* Add a missing #include <sys/lockmgr.h>.iedowse2002-09-011-0/+1
|
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-3/+3
|
* Fixed printf format errors and style bugs in rev.1.92. This is the versionbde2002-08-251-2/+3
| | | | that should have been committed in rev.1.93.
* Oops, the previous commit wasn't the version that I meant to commit (itbde2002-08-251-78/+9
| | | | does some extra things which are probably harmless). Back it out.
* Fixed printf format errors and style bugs in previous commit.bde2002-08-251-9/+78
|
* Remove stddef.h from the header listscottl2002-08-231-1/+0
| | | | Prodded by: peter
* Fix a bug where large msdos partitions were not handled correctly, and fixtrhodes2002-08-221-1/+7
| | | | | | | | a few fsck_msdosfs related 'issues' PR: 28536, 30168 Submitted by: Jiangyi Liu <jyliu@163.net> && NetBSD Approved by: rwatson (mentor)
* Remove the possibility of a race condition when reading the . and ..scottl2002-08-201-15/+16
| | | | entries.
* Don't abuse the stack when translating names.scottl2002-08-201-10/+12
|
OpenPOWER on IntegriCloud