summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
Commit message (Collapse)AuthorAgeFilesLines
* Catch a case spotted by Tor where files mmapped could leave garbage in thejulian1999-04-051-3/+13
| | | | | | | | | | | | unallocated parts of the last page when the file ended on a frag but not a page boundary. Delimitted by tags PRE_MATT_MMAP_EOF and POST_MATT_MMAP_EOF, in files alpha/alpha/pmap.c i386/i386/pmap.c nfs/nfs_bio.c vm/pmap.h vm/vm_page.c vm/vm_page.h vm/vnode_pager.c miscfs/specfs/spec_vnops.c ufs/ufs/ufs_readwrite.c kern/vfs_bio.c Submitted by: Matt Dillon <dillon@freebsd.org> Reviewed by: Alan Cox <alc@freebsd.org>
* Don't allow anyone except root to mount file systems that map uids.imp1999-03-121-1/+7
| | | | | | | | | This can have bad security implications, but the impact on FreeBSD systems is minimal because this fs isn't in the default kernels and it is unknown if it even works. Submitted by: Manuel Bouyer <bouyer@antioche.eu.org> and Artur Grabowski <art@stacken.kth.se>
* This code got moved as a result of confusion between union mounts andpeter1999-02-281-10/+1
| | | | | unionfs. Julian has already revived the union mount part of this move in vfs_syscalls.c rev 1.119, but forgot to take it out of here.
* Added a used #include (don't depend on "vnode_if.h" including <sys/buf.h>).bde1999-02-251-1/+2
|
* Reviewed by: Julian Elischer <julian@whistle.com>dillon1999-02-252-26/+46
| | | | | | | Add d_parms() to {c,b}devsw[]. If non-NULL this function points to a device routine that will properly fill in the specinfo structure. vfs_subr.c's checkalias() supplies appropriate defaults. This change should be fully backwards compatible with existing devices.
* Hide access to vmspace:vm_pmap with inline function vmspace_pmap(). Thisluoqi1999-02-191-2/+2
| | | | | | | is the preparation step for moving pmap storage out of vmspace proper. Reviewed by: Alan Cox <alc@cs.rice.edu> Matthew Dillion <dillon@apollo.backplane.com>
* Remove MAP_ENTRY_IS_A_MAP 'share' maps. These maps were once used todillon1999-02-071-2/+2
| | | | | | attempt to optimize forks but were essentially given-up on due to problems and replaced with an explicit dup of the vm_map_entry structure. Prior to the removal, they were entirely unused.
* Correct a format mismatch on 64-bit architectures. This shouldjdp1999-02-051-3/+3
| | | | fix the erroneous values in the procfs "map" file on the Alpha.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-282-4/+7
| | | | kernel compile
* Fix but in devfs_strategy(). Switch cases were falling throughdillon1999-01-271-1/+3
| | | | | instead of breaking out, so a VCHR devices would run the VCHR routine and then fall through and run the VBLK routine. Fixed.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-2712-86/+99
| | | | kernel compile
* This is a rather large commit that encompasses the new swapper,dillon1999-01-213-14/+12
| | | | | | | | | | changes to the VM system to support the new swapper, VM bug fixes, several VM optimizations, and some additional revamping of the VM code. The specific bug fixes will be documented with additional forced commits. This commit is somewhat rough in regards to code cleanup issues. Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>
* Remove declarations for undefined functions and a couple of unusedeivind1999-01-123-32/+3
| | | | enotsupp implementations.
* A partial implementation of the procfs cmdline pseudo-file. Thispeter1999-01-054-5/+51
| | | | | | | | is enough to satisfy things like StarOffice. This is a hack, but doing it properly would be a LOT of work, and would require extensive grovelling around in the user address space to find the argv[]. Obtained from: Mostly from Andrzej Bialecki <abial@nask.pl>.
* Made this compile if UMAPFS_DIAGNOSTIC is defined. This has been brokenbde1999-01-011-2/+2
| | | | | since before rev.1.1, so UMAPFS_DIAGNOSTIC should not be trusted. UMAPFS_DIAGNOSTIC is commented out in LINT to hide various bugs.
* Fix possible NULL-pointer deref in error case (same as DEVFS).eivind1998-12-161-2/+2
|
* Avoid NULL-pointer dereference on error condition.eivind1998-12-151-2/+2
|
* Cleanup uninitialized-possibly-used (but really not) warningsdillon1998-12-143-6/+6
|
* Rename one of the two devfs_link's to devfs_makelink.eivind1998-12-101-2/+2
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-0710-38/+17
| | | | and local variables, goto labels, and functions declared but not defined.
* '\0' is the most ugly NULL pointer constant I've ever seen in real code.eivind1998-12-071-2/+2
|
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-043-9/+10
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Staticize.eivind1998-11-261-2/+2
|
* Return ENOTTY instead of EBADF for ioctls on dead vnodes. This fixesbde1998-11-221-2/+2
| | | | | tcsetpgrp() on controlling terminals that are no longer associated with the session of the calling process, not to mention ioctl.2.
* Finished updating module event handlers to be compatible withbde1998-11-151-2/+3
| | | | modeventhand_t.
* "fix" a warning that has been bugging me for ages. Eliminate a couplepeter1998-11-091-11/+10
| | | | | of temporary variables since they are only used once and their types were the cause of the warnings.
* Delete stray extern declaration for non-existing variables.peter1998-11-091-2/+1
|
* Change the #ifdef UNION code into a callable hook. Arrange to have thispeter1998-11-032-2/+83
| | | | set up when unionfs is present, either statically or as a kld module.
* Use TAILQ macros for clean/dirty block list processing. Set b_xflagspeter1998-10-313-10/+10
| | | | rather than abusing the list next pointer with a magic number.
* Added a second argument, "activate" to the vm_page_unwire() call so thatdg1998-10-281-2/+2
| | | | the caller can select either inactive or active queue to put the page on.
* Removed redundant bitrotted checks for major numbers instead of updatingbde1998-10-261-4/+3
| | | | them.
* Make devfs update the atime timestamp so that 'w' works when usingsos1998-09-302-5/+12
| | | | options DEVFS.
* various nits that didn't make it through the brucefilter.phk1998-09-121-5/+6
|
* Oops, don't assume that the environment is normal in devfs_mount().bde1998-09-081-4/+6
| | | | | It isn't for the hidden mountpoint. The static vfs's haven't been attached then, so mp->mnt_vfc can't be valid.
* Removed statically configured mount type numbers (MOUNT_*) and allbde1998-09-078-20/+20
| | | | | | | | | references to them. The change a couple of days ago to ignore these numbers in statically configured vfsconf structs was slightly premature because the cd9660, cfs, devfs, ext2fs, nfs vfs's still used MOUNT_* instead of the number in their vfsconf struct.
* Add a new vnode op, VOP_FREEBLKS(), which filesystems can use to informphk1998-09-051-1/+26
| | | | | | | | | | | | | device drivers about sectors no longer in use. Device-drivers receive the call through d_strategy, if they have D_CANFREE in d_flags. This allows flash based devices to erase the sectors and avoid pointlessly carrying them around in compactions. Reviewed by: Kirk Mckusick, bde Sponsored by: M-Systems (www.m-sys.com)
* Cosmetic changes to the PAGE_XXX macros to make them consistent withdfr1998-09-042-4/+4
| | | | the other objects in vm.
* sort the prototypesphk1998-08-251-12/+12
|
* Last commit managed to get mangled somehow.phk1998-08-241-2/+4
|
* Remove the last remaining evidence of B_TAPE.phk1998-08-241-13/+3
| | | | Reclaim 3 unused bits in b_flags
* Enabled Lite2 fix for reading from dead ttys.bde1998-08-232-21/+3
|
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-163-13/+13
| | | | integers. Don't forget to cast to (void *) as well.
* Fixed printf format errors.bde1998-07-305-43/+50
|
* Style fixes and a bug fix: don't remove the exit handler if unmountalex1998-07-271-5/+6
| | | | | | fails. Submitted by: bde
* A better solution to the rm_at_exit problem: Register the exit functionalex1998-07-271-23/+10
| | | | | | | | during first mount. Unregister the exit function at last unmount. Concept by: sef Reviewed by: sef Implemented by: alex
* Override the default VFS LKM dispatch functions so that a modulealex1998-07-251-4/+19
| | | | | unload function can be provided (this is necessary to unregister the at_exit handler).
* Cast pointers to [u]intptr_t instead of to [unsigned] long.bde1998-07-151-2/+2
|
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,bde1998-07-153-6/+6
| | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
* Fixed printf format errors.bde1998-07-113-15/+19
|
* Quick fix for type mismatches which were fatal if longs aren't 32bde1998-07-071-5/+5
| | | | | | | | bits. We used a private, wrong, version of `struct dirent' to help break getdirentries(), and we use a silly check that the size of this struct is a power of 2 to help break mount() if getdirentries() would not work. This fix just changes the struct to match `struct dirent' (except for the name length).
OpenPOWER on IntegriCloud