summaryrefslogtreecommitdiffstats
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* Don't pass unused unused timestamp args to UFS_UPDATE() or wastebde1999-01-071-2/+5
| | | | | time initializing them. This almost finishes centralizing (in-core) timestamp updates in ufs_itimes().
* Remove the 'waslocked' parameter to vfs_object_create().eivind1999-01-052-6/+9
|
* 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>.
* Now empty DOS filesystems default to long file names. Non-empty filesystemsdt1999-01-021-5/+7
| | | | without traces of Win95 default to short file names, as before.
* Ensure that deHighClust in direntry always initialized.dt1999-01-021-19/+29
| | | | | | | | | Noticed by: Carl Mascott <cmascott@world.std.com> Don't write access time of a file more than once per day. (Its precision is 1 day anyway). Don't try to write access and creation time in nonwin95 case. Suggested by: bde (long time ago).
* Ifdefed conditionally used simplock variables.bde1999-01-022-2/+6
|
* 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
|
* Cleanup uninitialized-possibly-used (but really not) warningsdillon1998-12-143-6/+6
|
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-0710-30/+12
| | | | 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
|
* MFC: loosen compare even though bde doesn't like it.jkh1998-12-061-3/+3
|
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-043-8/+12
| | | | | | | | | | | | | | 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>
* Don't print diagnostic anymorervb1998-12-041-1/+6
|
* Honor MNT_NOATIME.dt1998-11-291-3/+3
| | | | | PR: 8383 Submitted by: Carl Mascott <cmascott@world.std.com>
* 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.
* Support NT VFAT lower case flags.dt1998-11-215-11/+20
| | | | | PR: 8383 (Mostly) Submitted by: Carl Mascott <cmascott@world.std.com>
* A few bug fixes for Robert Watsonrvb1998-11-162-5/+24
|
* Finished updating module event handlers to be compatible withbde1998-11-152-4/+5
| | | | modeventhand_t.
* coda_lookup now passes up an extra flag. But old veni willrvb1998-11-114-16/+84
| | | | | | | be ok; new veni will check /dev/cfs0 to make sure that a new kernel is running. Also, a bug in vc_nb_close iff CODA_SIGNAL's were seen has been fixed.
* add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE()peter1998-11-101-1/+2
|
* "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.
* 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
|
OpenPOWER on IntegriCloud