summaryrefslogtreecommitdiff
path: root/sys/msdosfs
Commit message (Collapse)AuthorAgeFilesLines
* Brought in change from rev.1.28: fixed getdirentries() on nfs mountedBruce Evans1996-07-021-14/+3
| | | | | | | msdosfs's. Notes: svn path=/stable/2.1/; revision=16913
* Brought in changes from main branch: move MALLOC of fsnode to avoid aDavid Greenman1996-06-121-3/+9
| | | | | | | potential panic during sync. Notes: svn path=/stable/2.1/; revision=16313
* Import change from rev. 1.12: change what could be an error to be moreGary Palmer1996-04-031-2/+2
| | | | | | | obviously a warning. Notes: svn path=/stable/2.1/; revision=15035
* Brought in changes from main branch: move FS readonly checks into theDavid Greenman1995-10-261-101/+108
| | | | | | | filesystem layer to fix related panics from vgone()'d vnodes. Notes: svn path=/stable/2.1/; revision=11805
* Brought in changes from rev 1.24: fix rename("dir1", "dir2/..") panic.David Greenman1995-10-091-2/+3
| | | | Notes: svn path=/stable/2.1/; revision=11351
* Brought in change from rev 1.22: pass "proc" correctly (kill &).David Greenman1995-09-121-2/+2
| | | | Notes: svn path=/stable/2.1/; revision=10698
* Brought in changes from rev 1.21: fix cookies for NFS.David Greenman1995-08-251-1/+9
| | | | Notes: svn path=/stable/2.1/; revision=10231
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-16/+7
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-3012-141/+141
| | | | Notes: svn path=/head/; revision=8876
* Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>Bruce Evans1995-05-092-2/+27
| | | | | | | | | | | | msdosfs_lookup() did no validation to see if the caller was validated to delete/rename/create files. msdosfs_setattr() did no validation to see if the caller was allowed to change the file permissions (turn on/off the write bit) or update the file modification time (utimes). The routines were fixed to validate the calls just like ufs does. Notes: svn path=/head/; revision=8386
* Fix link sys callAndrey A. Chernov1995-04-111-2/+4
| | | | | | | Submitted by: pritc003@maroon.tc.umn.edu Notes: svn path=/head/; revision=7760
* Submitted by: Mike Pritchard <pritc003@maroon.tc.umn.edu>Bruce Evans1995-04-111-8/+2
| | | | | | | | | | | | | | | Fix PR 303: msdosfs: moving a file into another directory causes panic. " ... the code that does the rename already has the denode locked when msdosfs_hashins() gets called, resulting in the panic when the routine attempts to lock the denode again. ... The attached patch changes the msdosfs_hashins() routine to not lock the denode. The caller is now resposible for obtaining the lock instead of having msdosfs_hashins() do it for them." Notes: svn path=/head/; revision=7755
* Submitted by: Wolfgang Solfrank <ws@tools.de>Bruce Evans1995-04-111-2/+2
| | | | | | | | Fix off-by-1-sector error in the range checking for the end of the root directory. It was possible for the root directory to overwrite the FAT. Notes: svn path=/head/; revision=7754
* Fix timestamps when using Wall CMOS clock,Andrey A. Chernov1995-03-291-25/+21
| | | | | | | | optimize dos2unixtime() Submitted by: pritc003@maroon.tc.umn.edu Notes: svn path=/head/; revision=7465
* Removed redundant newlines that were in some panic strings.David Greenman1995-03-191-2/+2
| | | | Notes: svn path=/head/; revision=7170
* Removed bogus, commented out, call to vnode_pager_uncache().David Greenman1995-03-191-2/+1
| | | | Notes: svn path=/head/; revision=7161
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'Bruce Evans1995-03-162-5/+4
| | | | | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones. Notes: svn path=/head/; revision=7090
* Use the correct block number for updating the backup copy of the FAT whenBruce Evans1995-02-101-2/+2
| | | | | | | deleting a file. Deleting a large file used to scramble the backup copy. Notes: svn path=/head/; revision=6303
* Kill the comment in a comment to shut up the compiler.Andreas Schulz1995-01-291-2/+2
| | | | Notes: svn path=/head/; revision=6001
* These changes embody the support of the fully coherent merged VM buffer cache,David Greenman1995-01-092-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | much higher filesystem I/O performance, and much better paging performance. It represents the culmination of over 6 months of R&D. The majority of the merged VM/cache work is by John Dyson. The following highlights the most significant changes. Additionally, there are (mostly minor) changes to the various filesystem modules (nfs, msdosfs, etc) to support the new VM/buffer scheme. vfs_bio.c: Significant rewrite of most of vfs_bio to support the merged VM buffer cache scheme. The scheme is almost fully compatible with the old filesystem interface. Significant improvement in the number of opportunities for write clustering. vfs_cluster.c, vfs_subr.c Upgrade and performance enhancements in vfs layer code to support merged VM/buffer cache. Fixup of vfs_cluster to eliminate the bogus pagemove stuff. vm_object.c: Yet more improvements in the collapse code. Elimination of some windows that can cause list corruption. vm_pageout.c: Fixed it, it really works better now. Somehow in 2.0, some "enhancements" broke the code. This code has been reworked from the ground-up. vm_fault.c, vm_page.c, pmap.c, vm_object.c Support for small-block filesystems with merged VM/buffer cache scheme. pmap.c vm_map.c Dynamic kernel VM size, now we dont have to pre-allocate excessive numbers of kernel PTs. vm_glue.c Much simpler and more effective swapping code. No more gratuitous swapping. proc.h Fixed the problem that the p_lock flag was not being cleared on a fork. swap_pager.c, vnode_pager.c Removal of old vfs_bio cruft to support the past pseudo-coherency. Now the code doesn't need it anymore. machdep.c Changes to better support the parameter values for the merged VM/buffer cache scheme. machdep.c, kern_exec.c, vm_glue.c Implemented a seperate submap for temporary exec string space and another one to contain process upages. This eliminates all map fragmentation problems that previously existed. ffs_inode.c, ufs_inode.c, ufs_readwrite.c Changes for merged VM/buffer cache. Add "bypass" support for sneaking in on busy buffers. Submitted by: John Dyson and David Greenman Notes: svn path=/head/; revision=5455
* Fix panic for `cp -p' by root to an msdos file system. Improve handlingBruce Evans1994-12-273-29/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of attributes so that `cp -p' to an msdos file system can succeed under favourable circumstances (no uid or gid changes and no nonzero flags except SF_ARCHIVED). msdosfs_vnops.c: The in-core inode flags were confused with the on-disk inode flags, so chflags() clobbered the lock flag and caused a panic. denode.h, msdosfs_denode.c, msdosfs_vnops.c: Support the msdosfs archive attibute (ATTR_ARCHIVE) by mapping it to the complement of the SF_ARCHIVED flag and setting the ATTR_ARCHIVE bit when a file's modification time is set (but not when a file's permissions are set; this is the standard wrong DOS behaviour). denode.h, msdosfs_denode.c: Remove the DE_UPDAT() macro. It was only used once, and the corresponding macro in ufs has already been removed. denode.h: Don't change the timestamp for directories in DE_TIMES() (be consistent with deupdat()). msdosfs_vnops.c: Handle chown() better: return EPERM instead of EINVAL if there are insufficient permissions; otherwise, allow null changes. Notes: svn path=/head/; revision=5241
* Fix numerous timestamp bugs.Bruce Evans1994-12-126-41/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DE_UPDATE was confused with DE_MODIFIED in some places (they do have confusing names). Handle them exactly the same as IN_UPDATE and IN_MODIFIED. This fixes chmod() and chown() clobbering the mtime and other bugs. DE_MODIFIED was set but not used. Parenthesize macro args. DE_TIMES() now takes a timeval arg instead of a timespec arg. It was stupid to use a macro for speed and do unused conversions to prepare for the macro. Restore the left shifting of the DOS seconds count by 1. It got lost among the shifts for the bitfields, so DOS seconds counts appeared to range from 0 to 29 seconds (step 1) instead of 0 to 58 seconds (step 2). Actually use the passed-in mtime in deupdat() as documented so that utimes() works. Change `extern __inline's to `static inline's so that msdosfs_fat.o can be linked when it is compiled without -O. Remove faking of directory mtimes to always be the current time. It's more surprising for directory mtimes to change when you read the directories than for them not to change when you write the directories. This should be controlled by a mount-time option if at all. Notes: svn path=/head/; revision=5083
* Restore mv check, cause panic without itAndrey A. Chernov1994-11-291-3/+1
| | | | | | | Submitted by: Ade Barkah Notes: svn path=/head/; revision=4868
* Fix from John Hay to avoid kernel panics when ap->a_eofflag is NULL.Jordan K. Hubbard1994-11-011-2/+3
| | | | | | | | | | I'm not sure if this is just masking another problem (like, should ap->a_eofflag EVER be NULL?), but if it prevents a panic for now then it may save an ALPHA customer. Submitted by: jhay Notes: svn path=/head/; revision=4057
* Set the EOF flag properly.Paul Traina1994-10-271-6/+6
| | | | | | | Obtained from: netbsd-bugs mailing list Notes: svn path=/head/; revision=3935
* Fixed panic when unmounting floppy msdos filesystems. Problem wasMartin Renters1994-10-231-7/+30
| | | | | | | we weren't flushing dirty buffers. Fix stolen from ffs_fsync() Notes: svn path=/head/; revision=3805
* Cosmetics. Silence gcc -WallPoul-Henning Kamp1994-10-102-11/+10
| | | | Notes: svn path=/head/; revision=3498
* Use tsleep() rather than sleep so that 'ps' is more informative aboutDavid Greenman1994-10-062-4/+4
| | | | | | | the wait. Notes: svn path=/head/; revision=3396
* GCC cleanup.Poul-Henning Kamp1994-10-021-16/+3
| | | | | | | | | Reviewed by: Submitted by: Obtained from: Notes: svn path=/head/; revision=3311
* Make NFS ask the filesystems for directory cookies instead of making themDoug Rabson1994-09-281-37/+37
| | | | | | | itself. Notes: svn path=/head/; revision=3167
* Added declarations, fixed bugs due to missing decls. At least one of themPoul-Henning Kamp1994-09-278-111/+168
| | | | | | | could panic a system. (I know, it paniced mine!). Notes: svn path=/head/; revision=3152
* Implemented loadable VFS modules, and made most existing filesystemsGarrett Wollman1994-09-212-2/+6
| | | | | | | loadable. (NFS is a notable exception.) Notes: svn path=/head/; revision=2946
* Changed some NetBSD backwards compatibility code which was confusing mountd.Doug Rabson1994-09-191-6/+2
| | | | Notes: svn path=/head/; revision=2899
* Added msdosfs.Doug Rabson1994-09-1912-0/+6301
Obtained from: NetBSD Notes: svn path=/head/; revision=2893