summaryrefslogtreecommitdiffstats
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* Support KLD. We register and unregister two modules. "coda" (the vfs)peter1998-11-032-44/+65
| | | | | | | | | via VFS_SET(), and "codadev" for the cdevsw entry. From kldstat -v: 3 1 0xf02c5000 115d8 coda.ko Contains modules: Id Name 2 codadev 3 coda
* 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-13/+12
| | | | rather than abusing the list next pointer with a magic number.
* Use vtruncbuf() rather than vinvalbuf() when shortening files.peter1998-10-291-6/+9
|
* Change the way unmounting happens to guarantee that thervb1998-10-282-21/+61
| | | | | | | client programs are allowed to finish up (coda_call is forced to complete) and release their locks. Thus there is a reasonable chance that the vflush implicit in the unmount will not get hung on held locks.
* Venus must be passed O_CREAT flag on VOP_OPEN iff this isrvb1998-10-284-74/+123
| | | | | | a creat so that we can will allow a mode 444 file to be written into. Sync with the latest coda.h and deal with collateral damage.
* 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.
* Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rottedbde1998-10-252-4/+7
| | | | | when bdevsw[] became sparse. We still depend on magic to avoid having to check that (v_rdev) device numbers in vnodes are not NODEV.
* Nitpicking and dusting performed on a train. Removes trivial warningsphk1998-10-251-3/+4
| | | | about unused variables, labels and other lint.
* Fixes for lkm:rvb1998-09-294-10/+23
| | | | | 1. use VFS_LKM vs ACTUALLY_LKM_NOT_KERNEL 2. don't pass -DCODA to lkm build
* Cleanup and fix THE bugrvb1998-09-284-22/+39
|
* Don't lose this filervb1998-09-251-0/+39
|
* Put "stray" printouts under DIAGNOSTIC. Make everything buildrvb1998-09-257-77/+205
| | | | | with DEBUG on. Add support for lkm. (The macro's don't work for me; for a good chuckle look at the end of coda_fbsd.c.)
* Remove the SLICE code.sos1998-09-141-13/+1
| | | | | This clearly needs alot more thought, and we dont need this to hunt us down in 3.0-RELEASE.
* Remove unused variable.dt1998-09-131-3/+1
| | | | Pointed out by: bde
* Fix a bug related to renaming in root directory. This bug reported bydt1998-09-131-2/+4
| | | | | | | Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> on freebsd-current in Messaage-Id <199807141023.MAA09803@kazi.dcse.fee.vutbr.cz>. Reviewed by: bde
* Finish conversion of cfs -> codarvb1998-09-1317-73/+113
|
* various nits that didn't make it through the brucefilter.phk1998-09-121-5/+6
|
* All the references to cfs, in symbols, structs, and stringsrvb1998-09-1116-1402/+1421
| | | | have been changed to coda. (Same for CFS.)
* Removed statically configured mount type numbers (MOUNT_*) and allbde1998-09-079-20/+23
| | | | | | | | | 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.
* Fix problem reported on bugtraq: check permission of device mountedguido1998-09-071-1/+19
| | | | | for non-root users. Fortunately, the default for vfs.usermount is 0. Tested by: "Jan B. Koum " <jkb@best.com
* Clean LINTrvb1998-09-063-10/+18
|
* 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-041-2/+2
| | | | the other objects in vm.
* Pass2 completervb1998-09-0220-1688/+712
|
* Very Preliminary Codarvb1998-08-2920-0/+9187
|
* 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
|
* Removed unused includes.bde1998-08-171-2/+1
|
* Use [u]intptr_t instead of [u_]long for casts between pointers andbde1998-08-161-2/+3
| | | | integers. Don't forget to cast to (void *) as well.
* Fixed printf format errors.bde1998-07-303-37/+44
|
* 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-114-17/+21
|
* 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).
* There is no such thing any more as "struct bdevsw".julian1998-07-042-6/+5
| | | | | | | | | | | | | | | | | | There is only cdevsw (which should be renamed in a later edit to deventry or something). cdevsw contains the union of what were in both bdevsw an cdevsw entries. The bdevsw[] table stiff exists and is a second pointer to the cdevsw entry of the device. it's major is in d_bmaj rather than d_maj. some cleanup still to happen (e.g. dsopen now gets two pointers to the same cdevsw struct instead of one to a bdevsw and one to a cdevsw). rawread()/rawwrite() went away as part of this though it's not strictly the same patch, just that it involves all the same lines in the drivers. cdroms no longer have write() entries (they did have rawwrite (?)). tapes no longer have support for bdev operations. Reviewed by: Eivind Eklund and Mike Smith Changes suggested by eivind.
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-046-13/+17
| | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org>
* Remove "not hungly" panics. Cookies now used by the linux and ibcs2dt1998-06-251-10/+3
| | | | | | | emulators. The emulators assume that filesystem may just ignore cookies, and handle this case correctly. So we just ignore cookies. Also sync *_readdir "prototypes" with reality.
* Avoid a 64-bit division in procfs_readdir(). Fixed related overflows.bde1998-06-141-10/+6
| | | | | | | | | | | | Check args using the same expression as in fdesc and kernfs. The check was actually already correct, modulo overflow. It could be tightened up to either allow huge (aligned) offsets, treating them as EOF, or disallow all offsets beyond EOF. Didn't fix invalid address calculation &foo[i] where i may be out of bounds. Didn't fix shooting of foot using a private unportable dirent struct.
* Avoid a 64-bit division in fdesc_readdir(). Fixed related overflowsbde1998-06-141-27/+14
| | | | | | | | and missing arg checking. Panic instead of returning bogus error codes or forgetting to check all cases if fdesc_readdir() gets called for a non-directory. This can't happen.
* Make these files compile.dfr1998-06-102-3/+4
|
* ENOPNOTSUPP --> EOPNOTSUPPalex1998-06-101-2/+2
| | | | | PR: 6906 Submitted by: Steven G. Kargl <kargl@troutmask.apl.washington.edu>
* Back out previous change. This behavior is at least completelydt1998-06-101-1/+1
| | | | "susv2"-compliant.
* Also return EOPNOTSUPP rather than EINVAL for not supported owner and groupdt1998-06-101-2/+2
| | | | changes.
OpenPOWER on IntegriCloud