summaryrefslogtreecommitdiff
path: root/sys/fs
AgeCommit message (Collapse)Author
2003-12-05Include <sys/sysctl.h> for sysctl stuff.bjh21
Also, create the vfs.filecore subtree, rather than vfs.union.
2003-12-04Dynamic sysctl.atatat
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(), vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all nodes are registered with the tree, and nodes can be added (or removed) easily, and I/O to and from the tree is handled generically. Since the nodes are registered with the tree, the mapping from name to number (and back again) can now be discovered, instead of having to be hard coded. Adding new nodes to the tree is likewise much simpler -- the new infrastructure handles almost all the work for simple types, and just about anything else can be done with a small helper function. All existing nodes are where they were before (numerically speaking), so all existing consumers of sysctl information should notice no difference. PS - I'm sorry, but there's a distinct lack of documentation at the moment. I'm working on sysctl(3/8/9) right now, and I promise to watch out for buses.
2003-11-11KASSERT was not the right thing here. Instead only set the type if f_typechristos
has been inititialized. Reported by pooka
2003-10-30Remove some assigned-to but otherwise unused variables.simonb
2003-10-25Fix typo.christos
2003-10-25FIx uninitialized variable warningschristos
2003-10-25Fix uninitialized variable warningchristos
2003-10-25fix uninitialized variablechristos
2003-10-22Fix a panic that occurred when trying to traverse a corrupt msdosfsbriggs
filesystem. With this particular corruption, the code in pcbmap() would compute an offset into an array that was way out of bounds, so check the bounds before trying to access and return an error if the offset would be out of bounds.
2003-10-15Add the gating of system calls that cause modifications to the underlyinghannken
file system. The function vfs_write_suspend stops all new write operations to a file system, allows any file system modifying system calls already in progress to complete, then sync's the file system to disk and returns. The function vfs_write_resume allows the suspended write operations to complete. From FreeBSD with slight modifications. Approved by: Frank van der Linden <fvdl@netbsd.org>
2003-10-14add mnt_iflag field to struct mount for internal flagsdbj
mv MNT_GONE, MNT_UNMOUNT and MNT_WANTRDWR to this field additonally add mnt_writeopcountupper and mnt_writeopcountlower fields in preparation for pending write suspension support work bump kernel version to 1.6ZD
2003-10-08add bpbReserved fieldslukem
2003-10-06change accidentaly left debug printf to dprintf()jdolecek
2003-10-06Consistently use "bsBPB" as the struct member for the BIOS parameter block.lukem
2003-10-03terminate snprintb 'new' format strings correctly.yamt
(fixes overrun in mount_*)
2003-09-07add -t option for gmt time offset (normally MS-DOS filesystem has timestampitojun
in localtime, not GMT). PR kern/22717
2003-09-06sprinkle __attribute__((__packed__)) to structures representing on-disk datajdolecek
this hopefully fixes problem with reading filecore FS under i386, reported on current-users@ (thread 'acorn32 disk on i386')
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-02remove all traces of non-working quota supportjdolecek
add quota support to TODO - makes sense only once writing support would be implemented, and only once NTFS would support notion of file 'owner' adresses kern/21967 by Martin Husemann
2003-08-02Allow separate masks for files and directories. Useful e.g. to turnjdolecek
the execute bit off for files, but keep search permission for directories. Change contributed in PR kern/21538 by Pavel Arnost, based on some FreeBSD patches. Further manpage changes, and backward-compatibility adjustments done by me. Also fixes PR kern/16778 by Johan Danielsson, and PR kern/3400 by Rick Byers
2003-07-06Fix a build failure when NFSSERVER. Unconditionally definerearnsha
filecore_lease_check to genfs_lease_check (was previously lease_check which isn't defined anywhere). No need to include opt_nfsserver.h any more.
2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl
and need to be examined and discussed more.
2003-06-29Fix problems with the ktrace/lwp changes.thorpej
2003-06-29Undo part of the ktrace/lwp changes. In particular:thorpej
* Remove the "lwp *" argument that was added to vget(). Turns out that nothing actually used it! * Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(), and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted above, didn't use it). * Remove all of the "lwp *" arguments to internal functions that were added just to appease the above.
2003-06-29Fix problems with Darren's ktrace/lwp changes.thorpej
2003-06-29Fix a few small glitches (struct proc -> struct lwp)martin
2003-06-29More changes for providing lwpid for ktrace (sparc GENERIC built)darrenr
2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr
be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
2003-06-26strlcpyitojun
2003-06-23#ifdef _KERNEL_OPT policemartin
2003-06-23Disable QUOTA for ntfs - it's broken.martin
2003-06-23Make sure to include opt_foo.h if a defflag option FOO is used.martin
2003-06-07Fix a botch in a boolean expression. Thanks to Martim Husemann for the fixreinoud
:) PR kern/21816: Big DVD's with cd9660 fs (can) crash Alpha can be closed allready :)
2003-05-16use strlcpy. check size if we are to use namei buffer.itojun
2003-04-24fix a few missing malloc attach/detach. Now this works.christos
2003-04-22forgot one malloc attach/detachchristos
2003-04-22explicitly attach and detach malloc types like smbfs does; thanks jaromir.christos
2003-04-16PR/1796: John Kohl: statfs misbehaves under chrooted environments.christos
- Under chroot it displays only the visible filesystems with appropriate paths. - The statfs f_mntonname gets adjusted to contain the real path from root. - While was there, fixed a bug in ext2fs, locking problems with vfs_getfsstat(), and factored out some of the vfsop statfs() code to copy_statfs_info(). This fixes the problem where some filesystems forgot to set fsid. - Made coda look more like a normal fs.
2003-04-10back to genfs_eopnotsupp() for vop_remove, vop_link, vop_rename,jdolecek
vop_mkdir, vop_rmdir - it does the right unlocking now
2003-04-10change some printf()s on easily-triggerable codepaths to dprintf()jdolecek
2003-04-09fix couple more simple lock issues on smbfs_close() code path:jdolecek
* vinvalbuf needs to be called without simplelocks held * need to release the lock in opencount > 0 case * need to release the lock before smbfs_findclose(), since that can send a request to SMB server and attempt to pool_get() a request buffer problem path found & testing by Martin Husemann, fix adresses PR kern/21067
2003-04-09move ntfs_remove() to be together with the other dummies - easier to c&pjdolecek
eventually
2003-04-09add dummy link, rename, mkdir, rmdir vnode ops, which release thejdolecek
appropriate vnodes before failing with EOPNOTSUPP - this is necessary to not deadlock later
2003-04-09#if 0 some no longer used macros; keep around for refencejdolecek
2003-04-09replace VOP__UNLOCK(), VN_LOCK(), VGET() macros with the real thing, tojdolecek
imporove readability g/c some non-NetBSD code for same reason
2003-04-09print some potentially useful stuff in ntfs_print()jdolecek
replace the VOP__UNLOCK() macros with VOP_UNLOCK() directly - it just obfuscates the code similarily for VN_LOCK()->vn_lock() unlock dvp before ntvattrget call in ntfs_lookup() in '..' case, not after fix problem in ntfs_lookup() where PDIRUNLOCK was not set in one code path after unlocking parent directory vnode
2003-04-09add real ntfs remove vnode op, which releases vnode locks on parent directoryjdolecek
and the file vnode before returning EOPNOTSUPP fixes PR kern/19595 by Erik Berls
2003-04-08back to passing magic '1' as lock id in smbfs_advlock() - the numberjdolecek
is used to setup a 'PID' for the lock; if a SMB write request is sent to server, it returns EDEADLK if it doesn't have same PID. since we use '1' as request PID (see smb_rq_new()), we must use '1' here too, for now add a comment what is the ID used for, to avoid similar mistake in future this partially back off rev 1.5, and makes advisory locking work on SMB shares mounted from Windows again (sigh)
2003-04-08smbfs_remove(): undo broken condition change from rev. 1.3 - apparentlyjdolecek
the condition was changed to be true when the file _should_ be removed, but ended up wrong way this fixes a problem where it wasn't possible to remove regular files from mounted smbfs share
2003-04-08fix locking issues uncovered by LOCKDEBUG, reorganize code a bit so thatjdolecek
even the initial directory notify request is sent by smbkq thread problems found during LOCKDEBUG hunt, adresses PR kern/21067 by Martin Husemann