summaryrefslogtreecommitdiff
path: root/sys/miscfs
AgeCommit message (Collapse)Author
2004-01-10store a i/o priority hint in struct buf for buffer queue discipline.yamt
2003-12-10a little bit more namespace sanitydrochner
2003-12-10The file system snapshot pseudo driver.hannken
Uses a hook in spec_strategy() to save data written from a mounted file system to its block device and a hook in dounmount(). Not enabled by default in any kernel config. Approved by: Frank van der Linden <fvdl@netbsd.org>
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-30Typo fixes in comments from jmc@openbsd.wiz
2003-11-29Restore a change that made AF_LOCAL sockets block on connect(2) untilmatt
accepted. However, this time this behavor is not the default. Instead it must enabled by using the LOCAL_CONNWAIT socket option on either the connecting or accepting socket.
2003-11-29Revert a change that altered the semantics of AF_LOCAL sockets. Sadlyperry
this made us API incompatible with other Unixes.
2003-11-27genfs_revoke: use ltsleep() to release the vnode spin lock to avoid apk
sleep/wakeup race.
2003-11-26spec_close: asserting that the terminal's process group be set if it ispk
associated with a session is too strong; a foreground group may go away without being immediately replaced with another.
2003-11-25spec_close: we don't need to lock the vnode just to make a copy of its flags.pk
2003-11-24spec_close: controlling terminal hack: drop session reference count only ifpk
we actually had a reference.
2003-11-17Various typo fixes from Jonathon Gray via jmc@openbsd.wiz
2003-11-06When closing a process's controlling terminal, also remove the linksdsl
to the session and pgrp from the tty. The way that the console is handled means that the vrele() may not actually do the final close on the tty itself.
2003-10-30t_pgrp can be null.christos
2003-10-30Remove some assigned-to but otherwise unused variables.simonb
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-15Set vnode size of character disk devices to that of the partition when theydsl
are opened (was always done for block devices). This means that fstat will report the partition size and hence newfs needn't grovel into the disklabel to find the filesystem size.
2003-10-03terminate snprintb 'new' format strings correctly.yamt
(fixes overrun in mount_*)
2003-09-27Put pfsnode in the #ifdef _KERNEL too, so this actually compiles.mycroft
2003-09-27Changes as discussed with itojun on tech-kern. I have modified the enumsdarcy
to have KFS or PFS differentiators. Further I have wrapped the enum in procfs in "#ifdef _KERNEL" as it is done in kernfs. To see the discussion go to http://mail-index.NetBSD.org/tech-kern/2003/09/ and look for "Mismatched enums in include files" in the list.
2003-09-26Make kernfs peacefully co-exist with procfs.atatat
2003-09-24fix a bug of lfs.yamt
genfs_getpages() can read in more blocks than it should due to faked filesize of lfs_gop_size(). it's a security problem and it makes gcc3 "internal error" to fix this, - in genfs_getpages(), always calculate diskeof and memeof separately so that filesystems (in this case, lfs) can use different strategies for them. - introduce GOP_SIZE_MEM flag and use it to request in-core filesize. (it was an intention of GOP_SIZE_READ, but after the above change _READ is not a straightforward name) after this, no one uses GOP_SIZE_{READ,WRITE} anymore but leave them for now.
2003-09-13move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; wejdolecek
use curlwp where the lwp is not directly available, i.e. in device open routines briefly discussed on tech-kern
2003-09-10check before deref kfs_ktitojun
2003-09-10Make /kern/. have linkcount 2 in non-IPSEC case, 4 in IPSEC case.dan
Thanks to Valeriy E. Ushakov.
2003-09-10check if rootdev/rrootdev actually exists.itojun
2003-09-10fix permission of /kern/hostname to 0644itojun
2003-09-10test against kt to get the right node of the given type, from enami@dan
2003-09-108 spaces is evil, convert to tab.simonb
2003-09-10Make vnode times on /kern/boottime be the boot time, not "now".dan
Handy because ls(1) helpfully converts the time to human-readable format when printing, and because shell tools like "test -nt" and "find -newer" can be used against it. "Inspired" by a discussion about removing lockfiles older than the last reboot, and Al Crooks' handy observation that a close approximation can be found with /var/run/dmesg.boot While here, notice that a lot of the kernfs structures and naming changed suddenly, and though it seems a clear improvement, there was no mention in commit logs.
2003-09-08remove non-precise commentitojun
2003-09-08add /kern/ipsecsa and /kern/ipsecsp, which can be inspected by setkey(8).itojun
it allows easier access to ipsecsa/sp. it works around problem where setkey -D does not work with large number of ipsec SAs due to socket buffer size.
2003-09-07remove meaningless line (variable overwritten 2 lines below)itojun
2003-09-04Adjust to the new calling convention of unp_connect2.matt
2003-09-03Change the behavor of AF_LOCAL connect() to sleep until the server hasmatt
accepted the connection. This can prevent a client from overwhelming a server.
2003-08-21Add casts of LINUX_USRSTACK and USRSTACK to handle the caseshe
where these are not constants.
2003-08-09LINUX_USRSTACK is only defined on i386. Thanks Izumi!christos
2003-08-09Only choose the linux usrstack if the netbsd usrstack was higher.christos
2003-08-09Change the way we compute the top of the stack. This makes java-1.4.2 work.christos
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-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-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-29Adjust for ktrace/lwp changes.thorpej
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-17Micro-optimisation- move the "pgs == NULL" check from the previoussimonb
change to immediately after the malloc call. This can't fail in the non-malloc case. Reviewd by YAMAMOTO Takashi.
2003-06-15genfs_getpages: if number of pages requested is >16,yamt
use malloc/free for array of pointers to vm_page. otherwise, use on-stack array as used to. this change fixes assertion failure when nfsd gets a big read request that isn't aligned with filesystem block. discussed on tech-kern.
2003-05-29Change "%qu" to "PRIu64" to make it compile on sparc64.hannken
2003-05-28Add /proc/<pid>/stat for linux compat. j2sdk1.4.2 depends on it.christos
2003-05-08Add breaks which were forgotten in rev. 1.2 change.nakayama
Inspired from a report by HIRATSUKA Kouichirou in tech-pkg-ja mailing list.
2003-04-23Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessarytls
first step towards per-device MAXPHYS, and has the beneficial side effect of allowing clustering to MAXPHYS even on systems that need to run with a reduced MAXBSIZE to get more metadata buffers.