summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
Commit message (Collapse)AuthorAgeFilesLines
* Kill XNS.wollman1996-02-132-5/+5
| | | | | While we're at it, fix socreate() to take a process argument. (This was supposed to get committed days ago...)
* add ruid and rgid to file 'status'wosch1996-02-021-4/+12
|
* Fix a bunch of spelling errors in the comment fields ofmpp1996-01-301-2/+2
| | | | a bunch of system include files.
* make devfs_add_devswf a little smarter about '/';phk1996-01-281-5/+9
|
* Make devfs_add_devfsf() which takes printf style args.phk1996-01-251-1/+38
|
* This time, really make the procfs work when reading stuff from the UPAGES.peter1996-01-251-15/+34
| | | | | | | | | | | | This is a really ugly bandaid on the problem, but it works well enough for 'ps -u' to start working again. The problem was caused by the user address space shrinking by a little bit and the UPAGES being "cast off" to become a seperate entity rather than being at the top of the process's vmspace. That optimization was part of John's most recent VM speedups. Now, rather than decoding the VM space, it merely ensures the pages are in core and accesses them the same way the ptrace(PT_READ_U..) code does, ie: off the p->p_addr pointer.
* Major fixes for procfs..peter1996-01-246-22/+88
| | | | | | | | | | | | | | | | Implement a "variable" directory structure. Files that do not make sense for the given process do not "appear" and cannot be opened. For example, "system" processes do not have "file", "regs" or "fpregs", because they do not have a user area. "attempt" to fill in the user area of a given process when it is being accessed via /proc/pid/mem (the user struct is just after VM_MAXUSER_ADDRESS in the process address space.) Dont do IO to the U area while it's swapped, hold it in place if possible. Lock off access to the "ctl" file if it's done a setuid like the other pseudo-files in there.
* Slightly improved debug messages for inserting new itemsjulian1996-01-211-9/+13
|
* oops.julian1996-01-211-4/+4
| | | | get the last edit right
* Submitted by: Bruce Evans (bde)julian1996-01-212-5/+8
| | | | | better naming for exported devfs function and better place for the prototype
* Eliminated many redundant vm_map_lookup operations for vm_mmap.dyson1996-01-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Speed up for vfs_bio -- addition of a routine bqrelse to greatly diminish overhead for merged cache. Efficiency improvement for vfs_cluster. It used to do alot of redundant calls to cluster_rbuild. Correct the ordering for vrele of .text and release of credentials. Use the selective tlb update for 486/586/P6. Numerous fixes to the size of objects allocated for files. Additionally, fixes in the various pagers. Fixes for proper positioning of vnode_pager_setsize in msdosfs and ext2fs. Fixes in the swap pager for exhausted resources. The pageout code will not as readily thrash. Change the page queue flags (PG_ACTIVE, PG_INACTIVE, PG_FREE, PG_CACHE) into page queue indices (PQ_ACTIVE, PQ_INACTIVE, PQ_FREE, PQ_CACHE), thereby improving efficiency of several routines. Eliminate even more unnecessary vm_page_protect operations. Significantly speed up process forks. Make vm_object_page_clean more efficient, thereby eliminating the pause that happens every 30seconds. Make sequential clustered writes B_ASYNC instead of B_DELWRI even in the case of filesystems mounted async. Fix a panic with busy pages when write clustering is done for non-VMIO buffers.
* Remove unnecessary debug printf's ("no references", "bad-id") - thesepeter1996-01-022-2/+23
| | | | | | | | | were development aids :-) and normal events. Initialise the "hidden" blueprint mount "mnt_op" and "mnt_vfc" fields so that a statfs() on a devfs file would not panic anymore. Fixes PR#911. Head-scratching by: Julian and Peter
* I have some problem here, which shows up in the ahc0 driver. It isn't wherephk1996-01-011-1/+7
| | | | | it originates, so I catch it here and fail. This may expose the same bug on other disk controllers (both scsi & ide).
* recording cvs-1.6 file deathpeter1995-12-302-943/+0
|
* Fixed 1TB filesize changes. Some pindexes had bogus names and typesbde1995-12-171-5/+5
| | | | but worked because vm_pindex_t is indistinuishable from vm_offset_t.
* Restored lost prototypes.bde1995-12-143-3/+5
|
* another case where cdevsw becoming a pointer makes it neccesary tojulian1995-12-141-2/+6
| | | | check if it's NULL
* Another mega commit to staticize things.phk1995-12-147-127/+126
|
* devsw tables are now arrays of POINTERS to struct [cb]devswjulian1995-12-132-19/+19
| | | | | | | | | seems to work hre just fine though I can't check every file that changed due to limmited h/w, however I've checked enught to be petty happy withe hte code.. WARNING... struct lkm[mumble] has changed so it might be an idea to recompile any lkm related programs
* Back out this one, must have screwed up somewhere :-(phk1995-12-112-8/+12
|
* Staticize.phk1995-12-1110-177/+179
|
* Changes to support 1Tb filesizes. Pages are now named by andyson1995-12-113-7/+41
| | | | (object,index) pair instead of (object,offset) pair.
* clean a few DEVFS things..julian1995-12-092-93/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fix a bug where you couldn't place devices in the root directory of devfs remove deprecated routines On my machine devfs now shows: julian@erf.tfs.com: julian@erf.tfs.com: ls -RF bpf0 mem ptypb spkr ttyp8 bpf1 null ptypc stderr ttyp9 bpf2 pcaudio ptypd stdin ttypa bpf3 pcaudioctl ptype stdout ttypb console pt ptypf tty ttypc cuaa0 ptyp0 random ttyd0 ttypd cuaia0 ptyp1 rsd0 ttyid0 ttype cuala0 ptyp2 rsd1 ttyld0 ttypf fd/ ptyp3 rvn ttyp0 tun0 fd0.1440 ptyp4 rworm ttyp1 urandom fd1.1200 ptyp5 scsi/ ttyp2 vn io ptyp6 sd0 ttyp3 zero kmem ptyp7 sd1 ttyp4 lkm ptyp8 snp0 ttyp5 log ptyp9 snp1 ttyp6 lpt0 ptypa snp2 ttyp7 ./fd: 0 15 21 28 34 40 47 53 6 9 1 16 22 29 35 41 48 54 60 10 17 23 3 36 42 49 55 61 11 18 24 30 37 43 5 56 62 12 19 25 31 38 44 50 57 63 13 2 26 32 39 45 51 58 7 14 20 27 33 4 46 52 59 8 ./scsi: sctarg ssc julian@erf.tfs.com: which is all devices really there except for disk slices/partitions.. (if I don't have it it's not there, which has GOT to be an improvement..) no DEVFS fixes from device maintainers yet?
* Pass 3 of the great devsw changesjulian1995-12-083-16/+24
| | | | | | | | | | | | | | | | | | | | | | | most devsw referenced functions are now static, as they are in the same file as their devsw structure. I've also added DEVFS support for nearly every device in the system, however many of the devices have 'incorrect' names under DEVFS because I couldn't quickly work out the correct naming conventions. (but devfs won't be coming on line for a month or so anyhow so that doesn't matter) If you "OWN" a device which would normally have an entry in /dev then search for the devfs_add_devsw() entries and munge to make them right.. check out similar devices to see what I might have done in them in you can't see what's going on.. for a laugh compare conf.c conf.h defore and after... :) I have not doen DEVFS entries for any DISKSLICE devices yet as that will be a much more complicated job.. (pass 5 :) pass 4 will be to make the devsw tables of type (cdevsw * ) rather than (cdevsw) seems to work here.. complaints to the usual places.. :)
* Untangled the vm.h include file spaghetti.dg1995-12-073-3/+16
|
* Include <vm/vm.h> or <vm/vm_page.h> explicitly to avoid breaking whenbde1995-12-051-1/+2
| | | | vnode_if.h doesn't include vm stuff.
* Restored #include of <sys/tty.h>. fdesc_vnops.c needs to know too muchbde1995-12-051-2/+2
| | | | about tty_tty.c's cdevswitch functions.
* Added prototypes.bde1995-12-0314-28/+223
| | | | Removed some unnecessary #includes.
* null_node_find() and umap_node_find() were sometimes called without abde1995-12-032-4/+4
| | | | `struct mount *' arg. I don't know what the effects of this were.
* staticize.phk1995-12-021-27/+27
|
* #ifdef out nearly the entire file of conf.c when JREMOD is definedjulian1995-11-291-1/+9
| | | | | | | | | | add a few safety checks in specfs because now it's possible to get entries in [cd]devsw[] which are ALL NULL so it's better to discover this BEFORE jumping into the d_open() entry.. more check to come later.. this getsthe code to the stage where I can start testing it, even if I haven't caught every little error case... I guess I'll find them quick enough..
* OK, that's it..julian1995-11-291-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | That's EVERY SINGLE driver that has an entry in conf.c.. my next trick will be to define cdevsw[] and bdevsw[] as empty arrays and remove all those DAMNED defines as well.. Each of these drivers has a SYSINIT linker set entry that comes in very early.. and asks teh driver to add it's own entry to the two devsw[] tables. some slight reworking of the commits from yesterday (added the SYSINIT stuff and some usually wrong but token DEVFS entries to all these devices. BTW does anyone know where the 'ata' entries in conf.c actually reside? seems we don't actually have a 'ataopen() etc... If you want to add a new device in conf.c please make sure I know so I can keep it up to date too.. as before, this is all dependent on #if defined(JREMOD) (and #ifdef DEVFS in parts)
* Completed function declarations and/or added prototypes.bde1995-11-212-8/+6
|
* KNFized spec_getpages_idone() and spec_getpages().bde1995-11-181-43/+43
| | | | | | Moved misplaced #includes. Completed function pointer declarations.
* Moved declarations for static functions to the correct place (not in abde1995-11-162-52/+43
| | | | | | header). Removed stupid comments.
* Fixed the type of procfs_sync(). Trailing args were missing.bde1995-11-161-4/+26
| | | | | | | Fixed the type of procfs_fhtovp(). The args had little resemblance to the correct ones. Added prototypes.
* Fixed the type of portal_sync(). Trailing args were missing.bde1995-11-161-3/+28
| | | | | | | Fixed the type of portal_fhtovp(). The args had little resemblance to the correct ones. Added prototypes.
* Fixed the type of kernfs_sync(). Trailing args were missing.bde1995-11-161-5/+30
| | | | | | | Fixed the type of kernfs_fhtovp(). The args had little resemblance to the correct ones. Added prototypes.
* Fixed the type of fdesc_sync(). Trailing args were missing.bde1995-11-161-6/+27
| | | | | | | Fixed the type of fdesc_fhtovp(). The args had little resemblance to the correct ones. Added prototypes.
* Get rid of hostnamelen variable.phk1995-11-141-3/+3
|
* Removed unsed function dead_nullop().bde1995-11-111-13/+3
| | | | Converted incomplete function declarations to prototypes.
* Introduced a type `vop_t' for vnode operation functions and usedbde1995-11-0921-481/+481
| | | | | | | | | | | | | | | it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.
* Make a lot of private stuff static.phk1995-11-075-78/+78
| | | | | | | | | Should anybody out there wonder about this vendetta against global variables, it is basically to make it more visible what our interfaces in the kernel really are. I'm almost convinced we should have a #define PUBLIC /* public interface */ and use it in the #includes...
* Second batch of cleanup changes.phk1995-10-291-26/+16
| | | | | This time mostly making a lot of things static and some unused variables here and there.
* Removal of unnecessary usage of PG_COPYONWRITE.dyson1995-10-231-2/+2
|
* Finalize GETPAGES layering scheme. Move the device GETPAGESdyson1995-10-232-2/+127
| | | | | interface into specfs code. No need at this point to modify the PUTPAGES stuff except in the layered-type (NULL/UNION) filesystems.
* almost entirely cosmetic changesjulian1995-10-102-61/+61
| | | | just keeping the sources in sync with my own set..
* Add #include <sys/sysproto.h> to get struct close_args and closeswallace1995-10-081-1/+2
| | | | function prototype.
* Avoid some 64bit divides.phk1995-10-061-5/+5
|
* find some way of letting a node know where in its parent's directory structurejulian1995-10-042-9/+13
| | | | | | | | it was referenced from.. stops a rather annoying panic, but introduces a rather interesting but "I can live with it" bug `ln a b ; mv a b; echo ?` returns a rather than b.. I know why but I need to think of the 'correct' answer. at least this is 'safe'
OpenPOWER on IntegriCloud