summaryrefslogtreecommitdiff
path: root/sys/miscfs
Commit message (Collapse)AuthorAgeFilesLines
* MFC: sync kq up to current (extend to device layer, plus other fixes)Jonathan Lemon2001-02-262-31/+56
| | | | Notes: svn path=/stable/4/; revision=73061
* MFC 1.148, 1.149 - use mark/scan to avoid cpu loop waiting for interrupt whenMatthew Dillon2001-02-021-7/+29
| | | | | | | | a buffer is skipped due to being busy. Continue to ensure that a MNT_WAIT fsync drains all buffers to avoid panic in umount/vinvalbuf Notes: svn path=/stable/4/; revision=71941
* MFC vfs_bio.c 1.269 and friends. This MFC's the better launder limitingMatthew Dillon2000-12-302-0/+4
| | | | | | | solution. See commitlogs/sys '2000/12/26 11:41:38 PST' Notes: svn path=/stable/4/; revision=70504
* o MFC of procfs_ctl.c 1.22, tighten restrictions on the use ofRobert Watson2000-12-171-4/+14
| | | | | | | | | | | | /proc/pid/ctl. This is a backport of the -CURRENT patch to use the procfs CHECKIO() interface rather than the p_can interface available in -CURRENT. sef reviewed the patch for -CURRENT, and had proposed a less fascist version of the patch for -STABLE. Reviewed by: security-officer, alfred Notes: svn path=/stable/4/; revision=70107
* MFC 1.27, fix forgotten getsock()->holdsock() conversion.Matthew Dillon2000-11-261-2/+6
| | | | Notes: svn path=/stable/4/; revision=69189
* MFC: More overflow checking. This patch is ugly, but it works. A better fixEivind Eklund2000-11-161-18/+45
| | | | | | | | | will come later. Approved by: jkh Notes: svn path=/stable/4/; revision=68825
* Make /proc/<pid> appear as a directory rather than a regular file.Alfred Perlstein2000-11-071-1/+1
| | | | | | | | MFC: 1.85 Approved by: jkh Notes: svn path=/stable/4/; revision=68464
* Be much, much more paranoid on allowing I/O operations on procfs nodes.Sean Eric Fagan2000-11-017-7/+15
| | | | | | | | | | Do this by (for now, at least) re-instating the previously-removed CHECKIO() macro. Reviewed by: Robert Watson <rwatson@FreeBSD.org>, Kris Kennaway <kris@FreeBSD.org> Notes: svn path=/stable/4/; revision=68207
* MFC: Fix jail hostname overflowEivind Eklund2000-11-011-1/+1
| | | | Notes: svn path=/stable/4/; revision=68200
* MFC:Boris Popov2000-10-254-66/+94
| | | | | | | | | protect nullfs node hash with lockmgr(). properly release vnode if mount deadlock detected. give nullfs node its own malloc type. Notes: svn path=/stable/4/; revision=67546
* MFC: Get rid from the __P() macro. Replace 'extern' with function prototype.Boris Popov2000-10-254-38/+44
| | | | Notes: svn path=/stable/4/; revision=67545
* MFC: $FreeBSD$Peter Wemm2000-08-033-0/+6
| | | | Notes: svn path=/stable/4/; revision=64172
* MFC: textvp_fullpath(), revive /proc/pid/file.Dag-Erling Smørgrav2000-06-212-20/+60
| | | | Notes: svn path=/stable/4/; revision=61893
* MFC: kqueue() and kevent()Jonathan Lemon2000-05-051-0/+86
| | | | Notes: svn path=/stable/4/; revision=60020
* Remove linprocfs as pr -core's request.Søren Schmidt2000-04-185-1863/+0
| | | | | | | | Since -core has requested that linprocfs be moved into the linuxulator this never should have entered RELENG_4. Notes: svn path=/stable/4/; revision=59357
* MFC: attempt to provide real values for meminfo.Dag-Erling Smørgrav2000-03-251-19/+52
| | | | Notes: svn path=/stable/4/; revision=58569
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-255-0/+1830
| | | | Notes: svn path=/stable/4/; revision=58557
* MFC: Remove MAX_PERF with extreme prejudice.Paul Saab2000-03-172-4/+0
| | | | Notes: svn path=/stable/4/; revision=58160
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls toRobert Watson2000-01-192-3/+3
| | | | | | | | | prettier (?) names, adding some const's around here, et al. Reviewed by: bde Notes: svn path=/head/; revision=56272
* Give vn_isdisk() a second argument where it can return a suitable errno.Poul-Henning Kamp2000-01-102-6/+7
| | | | | | | Suggested by: bde Notes: svn path=/head/; revision=55756
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-297-14/+14
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206
* Fix typo "," vs ";"Peter Wemm1999-12-271-1/+1
| | | | | | | | PR: 15696 Submitted by: Takashi Okumura <taka@cs.pitt.edu> Notes: svn path=/head/; revision=55153
* Fix a typo that was doing something kind of silly, and that is initializingChris Costello1999-12-212-2/+2
| | | | | | | | | | | | | | | the creation time for files to the uninitialized value: vap->va_ctime = vap->va_ctime; Changed to what was intended, assigning it to the modification time (thus making all three values of access time, modification time and creation time the same thing). Reviewed by: grog Notes: svn path=/head/; revision=54932
* Include vm/vm_extern.h to get at prototypesEivind Eklund1999-12-201-0/+1
| | | | Notes: svn path=/head/; revision=54908
* Eliminate unused variablesEivind Eklund1999-12-201-3/+1
| | | | Notes: svn path=/head/; revision=54907
* Second pass commit to introduce new ACL and Extended Attribute systemRobert Watson1999-12-198-1/+46
| | | | | | | | | | calls, vnops, vfsops, both in /kern, and to individual file systems that require a vfsop_ array entry. Reviewed by: eivind Notes: svn path=/head/; revision=54803
* Introduce NDFREE (and remove VOP_ABORTOP)Eivind Eklund1999-12-158-92/+30
| | | | Notes: svn path=/head/; revision=54655
* Lock reporting and assertion changes.Eivind Eklund1999-12-115-13/+16
| | | | | | | | | | | | | | | | | | * lockstatus() and VOP_ISLOCKED() gets a new process argument and a new return value: LK_EXCLOTHER, when the lock is held exclusively by another process. * The ASSERT_VOP_(UN)LOCKED family is extended to use what this gives them * Extend the vnode_if.src format to allow more exact specification than locked/unlocked. This commit should not do any semantic changes unless you are using DEBUG_VFS_LOCKS. Discussed with: grog, mch, peter, phk Reviewed by: peter Notes: svn path=/head/; revision=54444
* Don't simulate a pseudo address-space beyond VM_MAXUSER_ADDRESS thatPeter Wemm1999-12-111-40/+0
| | | | | | | | | | | | | | maps onto the upages. We used to use this extensively, particularly for ps and gdb. Both of these have been "fixed". ps gets the p_stats via eproc along with all the other stats, and gdb uses the regs, fpregs etc files. Once apon a time the UPAGES were mapped here, but that changed back in January '96. This essentially kills my revisions 1.16 and 1.17. The 2-page "hole" above the stack can be reclaimed now. Notes: svn path=/head/; revision=54424
* Remove unused #includes.Poul-Henning Kamp1999-12-0810-16/+0
| | | | | | | Obtained from: http://bogon.freebsd.dk/include Notes: svn path=/head/; revision=54292
* Collect read and write counts for filesystems. This new codeKirk McKusick1999-12-011-0/+21
| | | | | | | | | | | | | | | | | drops the counting in bwrite and puts it all in spec_strategy. I did some tests and verified that the counts collected for writes in spec_strategy is identical to the counts that we previously collected in bwrite. We now also get read counts (async reads come from requests for read-ahead blocks). Note that you need to compile a new version of mount to get the read counts printed out. The old mount binary is completely compatible, the only reason to install a new mount is to get the read counts printed. Submitted by: Craig A Soules <soules+@andrew.cmu.edu> Reviewed by: Kirk McKusick <mckusick@mckusick.com> Notes: svn path=/head/; revision=53975
* Report swapdevices as cdevs rather than bdevs.Poul-Henning Kamp1999-11-291-0/+2
| | | | | | | Remove unused dev2budev() function. Notes: svn path=/head/; revision=53899
* Add a sysctl to control if argv is disclosed to the world:Poul-Henning Kamp1999-11-261-1/+1
| | | | | | | | | | kern.ps_argsopen It defaults to 1 which means that all users can see all argvs in ps(1). Reviewed by: Warner Notes: svn path=/head/; revision=53709
* Introduce the new functionPoul-Henning Kamp1999-11-217-20/+7
| | | | | | | | | | | | | | | | | p_trespass(struct proc *p1, struct proc *p2) which returns zero or an errno depending on the legality of p1 trespassing on p2. Replace kern_sig.c:CANSIGNAL() with call to p_trespass() and one extra signal related check. Replace procfs.h:CHECKIO() macros with calls to p_trespass(). Only show command lines to process which can trespass on the target process. Notes: svn path=/head/; revision=53518
* s/p_cred->pc_ucred/p_ucred/gPoul-Henning Kamp1999-11-213-4/+4
| | | | Notes: svn path=/head/; revision=53503
* A process should be able to examine itself.Sean Eric Fagan1999-11-201-2/+3
| | | | Notes: svn path=/head/; revision=53467
* Get rid of calls to vfinddev() by ripping out code for vnode typePoul-Henning Kamp1999-11-201-26/+0
| | | | | | | which has already been disabled. Notes: svn path=/head/; revision=53458
* Get rid of calls to vfinddev() by doing like specfs.Poul-Henning Kamp1999-11-201-15/+7
| | | | Notes: svn path=/head/; revision=53457
* struct mountlist and struct mount.mnt_list have no business beingPoul-Henning Kamp1999-11-201-1/+1
| | | | | | | | | | | | | a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively. This removes ugly mp != (void*)&mountlist comparisons. Requested by: phk Submitted by: Jake Burkholder jake@checker.org PR: 14967 Notes: svn path=/head/; revision=53452
* Fix an unused variable warning.Peter Wemm1999-11-181-1/+0
| | | | Notes: svn path=/head/; revision=53364
* Fix a warning.Peter Wemm1999-11-181-0/+3
| | | | Notes: svn path=/head/; revision=53359
* Make proc/*/cmdline use the cached argv if available.Poul-Henning Kamp1999-11-171-21/+31
| | | | | | | | Submitted by: Paul Saab <paul@mu.org> Reviewed by: phk Notes: svn path=/head/; revision=53301
* The function `procfs_getattr()' in procfs doesn't set the value ofPoul-Henning Kamp1999-11-171-0/+2
| | | | | | | | | | | vap->va_fsid, so we cannot get valid information about procfs. Submitted by: SAWADA Mizuki miz@pa.aix.or.jp Reviewed by: phk PR: 1654 Notes: svn path=/head/; revision=53300
* Remove WILLRELE from VOP_SYMLINKEivind Eklund1999-11-132-10/+5
| | | | | | | | | Note: Previous commit to these files (except coda_vnops and devfs_vnops) that claimed to remove WILLRELE from VOP_RENAME actually removed it from VOP_MKNOD. Notes: svn path=/head/; revision=53131
* Remove WILLRELE from VOP_RENAMEEivind Eklund1999-11-121-2/+1
| | | | Notes: svn path=/head/; revision=53101
* Next step in the device cleanup process.Poul-Henning Kamp1999-11-091-321/+78
| | | | | | | | | | | Correctly lock vnodes when calling VOP_OPEN() from filesystem mount code. Unify spec_open() for bdev and cdev cases. Remove the disabled bdev specific read/write code. Notes: svn path=/head/; revision=53059
* Passing "0" or "FALSE" as the fourth argument to vm_fault is wrong. ItAlan Cox1999-11-091-1/+1
| | | | | | | should be "VM_FAULT_NORMAL". Notes: svn path=/head/; revision=53045
* Oops, a bit too hasty there.Poul-Henning Kamp1999-11-081-3/+0
| | | | Notes: svn path=/head/; revision=53016
* Various cleanups.Poul-Henning Kamp1999-11-081-27/+14
| | | | Notes: svn path=/head/; revision=53010
* Explain why Warner is right, and I am wrong, in the removing of theSean Eric Fagan1999-11-081-0/+14
| | | | | | | | | | | | | | file object. Also explain some possible directions to re-implement it -- I'm not sure it should be, given the minimal application use. (Other than having the debugger automatically access the symbols for a process, the main use I'd found was with some minor accounting ability, but _that_ depends on it being in the filesystem space; an ioctl access method would be useless in that case.) This is a code-less change; only a comment has been added. Notes: svn path=/head/; revision=52990