summaryrefslogtreecommitdiffstats
path: root/sys/msdosfs
Commit message (Collapse)AuthorAgeFilesLines
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-041-2/+3
| | | | | | 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>
* 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.
* Return EOPNOTSUPP rather than EINVAL for flags that are not supported.peter1998-06-101-2/+2
|
* Fix typo in a comment.dt1998-06-091-2/+2
|
* Fix priority bug in previous commit.dt1998-05-181-2/+2
| | | | Submitted by: bde
* Fix support for pre-Win95 filesystems: Make it possible to lookup justdt1998-05-172-3/+14
| | | | created short file name. Don't insert "generation numbers".
* Remove bogus LK_RETRY.dt1998-05-171-2/+2
| | | | Submitted by: bde
* Don't forget to clean up after an error reading the directory entrybde1998-05-171-3/+13
| | | | in deget().
* Removed vestiges of pre-Lite2 locking.bde1998-05-172-4/+2
|
* s/nanoruntime/nanouptime/gphk1998-05-171-2/+2
| | | | | | s/microruntime/microuptime/g Reviewed by: bde
* Fix off by ane error in previous commit.dt1998-05-091-2/+2
| | | | | | | | | | | This caused following commands: mkdir z cd z touch A B mv B A corrupt the '..' entry in 'z'. Reported by: bde
* In the words of the submitter:msmith1998-05-071-27/+13
| | | | | | | | | | | | | | | | | | | --------- Make callers of namei() responsible for releasing references or locks instead of having the underlying filesystems do it. This eliminates redundancy in all terminal filesystems and makes it possible for stacked transport layers such as umapfs or nullfs to operate correctly. Quality testing was done with testvn, and lat_fs from the lmbench suite. Some NFS client testing courtesy of Patrik Kudo. vop_mknod and vop_symlink still release the returned vpp. vop_rename still releases 4 vnode arguments before it returns. These remaining cases will be corrected in the next set of patches. --------- Submitted by: Michael Hancock <michaelh@cet.co.jp>
* As described by the submitter:msmith1998-05-061-2/+1
| | | | | | | | | | | | | Reverse the VFS_VRELE patch. Reference counting of vnodes does not need to be done per-fs. I noticed this while fixing vfs layering violations. Doing reference counting in generic code is also the preference cited by John Heidemann in recent discussions with him. The implementation of alternative vnode management per-fs is still a valid requirement for some filesystems but will be revisited sometime later, most likely using a different framework. Submitted by: Michael Hancock <michaelh@cet.co.jp>
* Use DFLTBSIZE instead of MAXBSIZE for pm_fatblksize.dt1998-04-291-16/+19
| | | | | | | | | | In msdosfs_sync: spelling fix, formatting changes; fix MNT_LAZY (sync modified denodes, don't sync device) Mostly submitted by (and with hints from): bde Increase limit for maximum disk size: as far as I can see previous limit was gratuitously too low.
* Support compiling with `gcc -ansi'.bde1998-04-152-8/+10
|
* Add a missing LK_RETRY.dt1998-04-151-5/+3
| | | | | | Noticed by: Bruce (almost 2 monts ago) Remove a debugging printf.
* Use random() rather then than homegrown stuff.phk1998-04-061-11/+3
|
* Print explanation diagnostics when mount is impossibleache1998-04-051-1/+5
| | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Time changes mark 2:phk1998-04-041-3/+5
| | | | | | | | | | | | | | | | | * Figure out UTC relative to boottime. Four new functions provide time relative to boottime. * move "runtime" into struct proc. This helps fix the calcru() problem in SMP. * kill mono_time. * add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!) * nanosleep, select & poll takes long sleeps one day at a time Reviewed by: bde Tested by: ache and others
* Fix dead hang writing to FATache1998-03-281-2/+2
| | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Add two new functions, get{micro|nano}time.phk1998-03-262-7/+7
| | | | | | | | | | | | They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime(). Various patches to use the two new functions instead of the various hacks used in their absence. Some puntuation and grammer patches from Bruce. A couple of XXX comments.
* Deleted 1024bytes/sector floppy code for PC-98 arch. Thekato1998-03-203-64/+3
| | | | | 1024bytes/sector code has not worked for long time and it should be re-implemented.
* Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman)julian1998-03-081-8/+11
| | | | | Submitted by: Kirk McKusick (mcKusick@mckusick.com) Obtained from: WHistle development tree
* Trivial filesystem getpages/putpages implementations, set the second.msmith1998-03-061-1/+34
| | | | | These should be considered the first steps in a work-in-progress. Submitted by: Terry Lambert <terry@freebsd.org>
* Patch to the last commit; attempt to unspam stuff from NetBSD.msmith1998-03-031-13/+11
| | | | Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* The intent is to get rid of WILLRELE in vnode_if.src by makingmsmith1998-03-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a complement to all ops that return a vpp, VFS_VRELE. This is initially only for file systems that implement the following ops that do a WILLRELE: vop_create, vop_whiteout, vop_mknod, vop_remove, vop_link, vop_rename, vop_mkdir, vop_rmdir, vop_symlink This is initial DNA that doesn't do anything yet. VFS_VRELE is implemented but not called. A default vfs_vrele was created for fs implementations that use the standard vnode management routines. VFS_VRELE implementations were made for the following file systems: Standard (vfs_vrele) ffs mfs nfs msdosfs devfs ext2fs Custom union umapfs Just EOPNOTSUPP fdesc procfs kernfs portal cd9660 These implementations may change as VOP changes are implemented. In the next phase, in the vop implementations calls to vrele and the vrele part of vput will be moved to the top layer vfs_vnops and made visible to all layers. vput will be replaced by unlock in these cases. Unlocking will still be done in the per fs layer but the refcount decrement will be triggered at the top because it doesn't hurt to hold a vnode reference a little longer. This will have minimal impact on the structure of the existing code. This will only be done for vnode arguments that are released by the various fs vop implementations. Wider use of VFS_VRELE will likely require restructuring of the code. Reviewed by: phk, dyson, terry et. al. Submitted by: Michael Hancock <michaelh@cet.co.jp>
* Fix mmap() on msdosfs. In the words of the submitter:msmith1998-03-011-4/+3
| | | | | | | | | | | |In the process of evaluating the getpages/putpages issues I discovered |that mmap on MSDOSFS does not work. This is because I blindly merged |NetBSD changes in msdosfs_bmap and msdosfs_strategy. Apparently, their |blocksize is always DEV_BSIZE (even in files), while in FreeBSD |blocksize in files is v_mount->mnt_stat.f_iosize (i.e. clustersize in |MSDOSFS case). The patch is below. Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Fix a problem with the conversion of Unix filenames into the VFATmsmith1998-02-271-11/+34
| | | | | namespace. Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Fixes for some bugs in the VFAT/FAT32 support:msmith1998-02-264-21/+31
| | | | | | | | | | | | - 'mv longnamedfile1 longnamedfile2' would cause longnamedfile2 to lose its long name. - Long names have trailing spaces/dots stripped for lookup as well as assignment. - A lockup when the mdsosfs was accessed from within the Linux emulator is fixed. - A bug whereby long filenames were recognised by Microsoft operating systems but not FreeBSD is fixed. Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
* Back out "always view in lowercase" partache1998-02-244-29/+31
| | | | Return to previous variant "comparing in lowercase" in winChkName
* Implement loadable DOS<->local conversion tables for DOS namesache1998-02-236-67/+137
| | | | | Always create DOS name in uppercase Always view DOS name in lowercase
* Fix signatures of NEC's DOS formats.kato1998-02-231-9/+9
| | | | Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
* Oops, add missing bcopy of upper->lower tableache1998-02-231-1/+3
|
* Implement loadable upper->lower local conversion tableache1998-02-235-22/+55
|
* Reduce new arguments number added in my changesache1998-02-224-19/+19
|
* Add Unicode support to winChkName, now lookup works!ache1998-02-223-22/+51
|
* Implement loadable local<->unicode file names conversionache1998-02-226-295/+80
| | | | | | Note: it produce correct names only for Win95, DOS names are still incorrect and need similar work mount_msdos support coming soon
* Replace all unknown Unicode characters with '?' in win->unix mappingache1998-02-221-194/+194
|
* Add initial support to map 0x4XX Unicode Cyrillic range names:ache1998-02-221-13/+308
| | | | | | | | only win->unix part is implemented at this time with 256-byte table defaulted to KOI8-R (will be loadable in future). Since back mapping not supported yet, you'll get "No such file or directory" on each Cyrillic name with 'ls -l', only 'echo *' work at this moment. Teach current code to understand Unicode a bit.
* Removed unused #includes.bde1998-02-201-2/+1
|
* Update MSDOSFS code using NetBSD's msdosfs as a guide to supportjkh1998-02-1812-1913/+3348
| | | | | | | | | | | FAT32 partitions. Unfortunately, we looked around here at Walnut Creek CDROM for any newer FAT32-supporting versions of Win95 and we were unsuccessful; only the older stuff here. So this is untested beyond simply making sure it compiles and someone with access to an actual FAT32 fs will have to let us know how well it actually works. Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru> Obtained from: NetBSD
* Staticize.eivind1998-02-093-16/+16
|
* Back out DIAGNOSTIC changes.eivind1998-02-063-12/+3
|
* Turn DIAGNOSTIC into a new-style option.eivind1998-02-043-3/+12
|
* Unspammed nested include of <vm/vm_zone.h>.bde1997-12-271-1/+2
|
* Reviewed by: various.julian1997-11-121-2/+2
| | | | | | | | | | | | | | | | Ever since I first say the way the mount flags were used I've hated the fact that modes, and events, internal and exported, and short-term and long term flags are all thrown together. Finally it's annoyed me enough.. This patch to the entire FreeBSD tree adds a second mount flag word to the mount struct. it is not exported to userspace. I have moved some of the non exported flags over to this word. this means that we now have 8 free bits in the mount flags. There are another two that might well move over, but which I'm not sure about. The only user visible change would have been in pstat -v, except that davidg has disabled it anyhow. I'd still like to move the state flags and the 'command' flags apart from each other.. e.g. MNT_FORCE really doesn't have the same semantics as MNT_RDONLY, but that's left for another day.
* Removed unused #includes. The need for most of them went away withbde1997-10-271-2/+1
| | | | recent changes (docluster* and vfs improvements).
* VFS interior redecoration.phk1997-10-261-2/+2
| | | | | | | | | | | | | Rename vn_default_error to vop_defaultop all over the place. Move vn_bwrite from vfs_bio.c to vfs_default.c and call it vop_stdbwrite. Use vop_null instead of nullop. Move vop_nopoll from vfs_subr.c to vfs_default.c Move vop_sharedlock from vfs_subr.c to vfs_default.c Move vop_nolock from vfs_subr.c to vfs_default.c Move vop_nounlock from vfs_subr.c to vfs_default.c Move vop_noislocked from vfs_subr.c to vfs_default.c Use vop_ebadf instead of *_ebadf. Add vop_defaultop for getpages on master vnode in MFS.
* Make a set of VOP standard lock, unlock & islocked VOP operators, whichphk1997-10-172-47/+6
| | | | | depend on the lock being located at vp->v_data. Saves 3x3 identical vop procs, more as the other filesystems becomes lock aware.
OpenPOWER on IntegriCloud