cgd
21bbd49bf2
in vfs_shutdown(), print "syncing disks... " before dropping to spl0(),
...
so that if the drop to spl0() causes another panic (e.g. because there's
still some fatal hardware interrupt that's pending) we'll know that we
dropped IPL to sync the disks.
1997-06-07 17:27:57 +00:00
mycroft
06fb68217b
Oops; fix reversed test for VDIR.
1997-05-08 16:34:54 +00:00
mycroft
e3f99a9397
Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure
...
that the mode bits passed to vaccess() and returned by foo_getattr() contain
only permission bits.
1997-05-08 16:19:43 +00:00
mycroft
8f5978a181
GC VS[UG]ID and VSVTX, and add a new VLOOKUP, since the semantics are now
...
different from VEXEC.
1997-05-08 10:21:35 +00:00
mycroft
c32418bf82
Fix error in vfs_hang_addrlist() that caused file systems to be exported
...
to more subnets than expected when using netmasks. From Mike Hibler.
1997-04-25 02:43:10 +00:00
mycroft
5e62a0725b
Change previous test slightly.
1997-04-23 20:19:45 +00:00
mycroft
b34794e10f
Do not return success when checking for execute permission by super-user and no
...
execute bits are set. Also, this test is no longer needed in execve(2).
1997-04-23 20:18:16 +00:00
mycroft
6911ff7d13
Fix two performance issues:
...
* When a delayed write buffer falls off the LRU queue, arrange for it to go on
the AGE queue after being flushed out to disk.
* When a delayed write buffer is synced, leave it in its relative position in
the LRU queue.
1997-04-09 21:12:10 +00:00
kleink
5ec0772a62
In checkalias(), initialize the speclockf structure member invented
...
with the specfs advisory locking support; this could cause a panic.
1997-04-03 23:15:52 +00:00
fvdl
501f1a3eb9
Do previous change properly (pasto; should have been inside the loop).
1997-02-23 00:07:18 +00:00
fvdl
0538233e2c
Implement changes to make fix for NQNFS and MFS unmounting (race conditions)
...
work. Not quite as good as with the Lite2 merges, but it'll do until then.
* dounmount() expects to be called with the mountpoint marked busy
* all callers of dounmount() thus make the call themselves
* if a filesystem was being unmounted, and we're woken up in vfs_busy(),
don't reference the mountpoint struct pointer, as it has very probably
been freed.
1997-02-22 03:22:32 +00:00
thorpej
2ca27c5550
Garbage-collect "argdev".
1997-01-31 19:10:27 +00:00
thorpej
68de7ca719
- Implement vfs_mountroot(). This function is called my main() to
...
mount the root file system. If the operator specified the root
file system type in the kernel configuration file, attempt to
mount that file system type on the root device. If the root
file system type was wildcarded (or unspecified), try all of
the file systems statically built into the kernel until one
succeeds. If no file systems succeed, return an error. The
system will recover from this condition.
- Implement vfs_getopsbyname(). This function returns the file
system ops vector given a file system name.
1997-01-31 02:50:36 +00:00
christos
f443b89c92
backout previous kprintf change
1996-10-13 02:32:29 +00:00
christos
60d201973e
printf -> kprintf, sprintf -> ksprintf
1996-10-10 22:46:11 +00:00
cgd
60b9a20b61
initialize vnode_free_list and mountlist at compile time with the new
...
queue.h list/queue head initializer macros. mountlist was converted so
that panics (or other reboots) early on in kernel startup don't cause
sys_sync() to croak. vnode_free_list was converted because it was nearby.
1996-10-01 22:49:11 +00:00
jtk
ef561b71a7
print out file systems being unmounted, #ifdef DEBUG. pr#1492
1996-06-01 20:24:05 +00:00
christos
4ef330b934
remove include of <sys/cpu.h>
1996-04-22 01:38:12 +00:00
christos
c9e746a335
Fix printf() formats.
1996-03-16 23:17:04 +00:00
christos
09afd77655
More proto fixes
1996-02-09 18:59:18 +00:00
christos
e630447d8c
First pass at prototyping
1996-02-04 02:17:43 +00:00
jtc
e19bfae4f9
Rename struct timespec fields to conform to POSIX.1b
1996-02-01 00:18:04 +00:00
mycroft
436d930db5
Use insmntque() rather than manually frobbing the mount list.
1996-01-30 18:21:08 +00:00
mycroft
245f292fed
Prefix names of system call implementation functions with `sys_'.
1995-10-07 06:25:19 +00:00
mycroft
083ba962e2
Oops; need fcntl.h.
1995-07-03 16:58:38 +00:00
mycroft
9a4505cb89
Close routines take file flags, not I/O flags. Fix two incorrect usages.
1995-07-02 18:13:02 +00:00
jtc
95ded74f58
Moved egid credential from cr_groups[0] to new field cr_gid. POSIX.1
...
requires that sgid executables and the setuid() syscall *not* change
the supplemental group list.
1995-06-01 22:43:30 +00:00
mycroft
78356f06b3
Add two vprint()s, to give more informative panic messages.
1995-05-04 03:11:06 +00:00
mycroft
954487037b
Rearrange vfs_shutdown() slightly.
1995-04-21 22:09:53 +00:00
mycroft
84f803aef6
Add a return type for vaccess().
1995-04-21 22:03:24 +00:00
mycroft
f51cb8c974
Print a message for each file system that does not unmount cleanly. Add a
...
vfs_shutdown() routine that does the unmount and sync.
1995-04-21 21:55:11 +00:00
mycroft
6cabaea642
Define vfs_unmountall(), to unmount file systems at shutdown time.
1995-04-10 19:46:56 +00:00
mycroft
9843f45605
Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS
...
differently.
1995-01-18 06:19:49 +00:00
cgd
7fb59862ff
undo charles's accidental changes.
1995-01-15 09:23:05 +00:00
mycroft
d903b2aa28
Remove unused extern.
1995-01-09 19:54:28 +00:00
ws
2f0fb8ee09
Implement and use a common access checking routine
1994-12-24 16:44:12 +00:00
cgd
f3dc337d8a
fix done in rev. 1.23 over again. it was clobbered, and problem masked
1994-07-10 05:53:25 +00:00
deraadt
318b9c6b63
limit st_dev to 15 bits set for nfs filesystems
1994-07-02 04:51:18 +00:00
cgd
cf92afd66e
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
1994-06-29 06:29:24 +00:00
mycroft
33d82e8a8b
Move definition of prtactive.
1994-06-13 15:37:55 +00:00
mycroft
699bbb84b6
Update to 4.4-Lite fs code.
1994-06-08 11:28:29 +00:00
cgd
91cf0fbaf3
copyright foo
1994-05-17 04:21:49 +00:00
cgd
e15a2ee17e
sysctl update
1994-05-07 00:53:37 +00:00
cgd
d071d1cf05
some prototype cleanup, eliminate/replace bogus types (e.g. quad and
...
u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes),
some cleanup.
1994-04-25 03:49:27 +00:00
cgd
b1f4730729
some more queue code (that's #ifdef DEBUG)
1994-04-23 08:41:05 +00:00
cgd
4917d8beec
make fs types consistent over new kernels. also, some proto foo.
1994-04-23 07:54:38 +00:00
cgd
3dda0064a5
Convert mount, vnode, and buf structs to use <sys/queue.h>. Also,
...
some knf and structure frobbing to do along with it.
1994-04-21 07:47:31 +00:00
cgd
3fe93ccc24
don't let cons dev vnode get subsumed by a 'real' vnode. the current
...
scheme of vnode aliasing just *has* to go.
1994-04-18 21:03:14 +00:00
cgd
4be7b669e2
fs types are names now; accompanying changes.
1994-04-14 04:05:28 +00:00
mycroft
6076d8a10d
Fix typo.
1994-04-12 02:23:14 +00:00