| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
solution. See commitlogs/sys '2000/12/26 11:41:38 PST'
Notes:
svn path=/stable/4/; revision=70504
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=64172
|
| |
|
|
| |
Notes:
svn path=/stable/4/; revision=58160
|
| |
|
|
|
|
|
| |
Suggested by: bde
Notes:
svn path=/head/; revision=55756
|
| |
|
|
| |
Notes:
svn path=/head/; revision=54907
|
| |
|
|
|
|
|
|
|
|
| |
calls, vnops, vfsops, both in /kern, and to individual file systems that
require a vfsop_ array entry.
Reviewed by: eivind
Notes:
svn path=/head/; revision=54803
|
| |
|
|
| |
Notes:
svn path=/head/; revision=54655
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lockstatus() and VOP_ISLOCKED() gets a new process argument and a new
return value: LK_EXCLOTHER, when the lock is held exclusively by another
process.
* The ASSERT_VOP_(UN)LOCKED family is extended to use what this gives them
* Extend the vnode_if.src format to allow more exact specification than
locked/unlocked.
This commit should not do any semantic changes unless you are using
DEBUG_VFS_LOCKS.
Discussed with: grog, mch, peter, phk
Reviewed by: peter
Notes:
svn path=/head/; revision=54444
|
| |
|
|
|
|
|
| |
Obtained from: http://bogon.freebsd.dk/include
Notes:
svn path=/head/; revision=54292
|
| |
|
|
|
|
|
| |
Remove unused dev2budev() function.
Notes:
svn path=/head/; revision=53899
|
| |
|
|
| |
Notes:
svn path=/head/; revision=53503
|
| |
|
|
| |
Notes:
svn path=/head/; revision=53457
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
a CIRCLEQ. Change them to TAILQ_HEAD and TAILQ_ENTRY respectively.
This removes ugly mp != (void*)&mountlist comparisons.
Requested by: phk
Submitted by: Jake Burkholder jake@checker.org
PR: 14967
Notes:
svn path=/head/; revision=53452
|
| |
|
|
|
|
|
|
|
| |
Note: Previous commit to these files (except coda_vnops and devfs_vnops)
that claimed to remove WILLRELE from VOP_RENAME actually removed it from
VOP_MKNOD.
Notes:
svn path=/head/; revision=53131
|
| |
|
|
|
|
|
| |
drivers to enforce the securelevel checks.
Notes:
svn path=/head/; revision=52967
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Merge the contents (less some trivial bordering the silly comments)
of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts
the #defines for the vm_inherit_t and vm_prot_t types next to their
typedefs.
This paves the road for the commit to follow shortly: change
useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE}
as argument.
Notes:
svn path=/head/; revision=52635
|
| |
|
|
|
|
|
|
|
|
|
|
| |
VFS_CHECKEXP.
Add fh(open|stat|stafs) syscalls to allow userland to query filesystems
based on (network) filehandle.
Obtained from: NetBSD
Notes:
svn path=/head/; revision=51138
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
reasonable defaults.
This avoids confusing and ugly casting to eopnotsupp or making dummy functions.
Bogus casting of filesystem sysctls to eopnotsupp() have been removed.
This should make *_vfsops.c more readable and reduce bloat.
Reviewed by: msmith, eivind
Approved by: phk
Tested by: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
Notes:
svn path=/head/; revision=51068
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
the highly non-recommended option ALLOW_BDEV_ACCESS is used.
(bdev access is evil because you don't get write errors reported.)
Kill si_bsize_best before it kills Matt :-)
Use the specfs routines rather having cloned copies in devfs.
Notes:
svn path=/head/; revision=50623
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50523
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50477
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the alias list a SLIST.
Drop the "fast recycling" optimization of vnodes (including
the returning of a prexisting but stale vnode from checkalias).
It doesn't buy us anything now that we don't hardlimit
vnodes anymore.
Rename checkalias2() and checkalias() to addalias() and
addaliasu() - which takes dev_t and udev_t arg respectively.
Make the revoke syscalls use vcount() instead of VALIASED.
Remove VALIASED flag, we don't need it now and it is faster
to traverse the much shorter lists than to maintain the
flag.
vfs_mountedon() can check the dev_t directly, all the vnodes
point to the same one.
Print the devicename in specfs/vprint().
Remove a couple of stale LFS vnode flags.
Remove unimplemented/unused LK_DRAINED;
Notes:
svn path=/head/; revision=50405
|
| |
|
|
|
|
|
| |
specinfo is used to identify both raw and block version sof a device.
Notes:
svn path=/head/; revision=50376
|
| |
|
|
|
|
|
|
|
|
|
| |
In lookup() however it's the other way around as we need to supply the
dev_t for the vnode, so devfs still has a copy of it stashed away.
Sourcing it from the vnode in the vnops however is useful as it makes
a lot of the code almost the same as that in specfs.
Notes:
svn path=/head/; revision=50334
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
specfs version of the same ops. Merging with phk's dev_t changes is not yet
complete.
i.e. devfs still uses it's own devsw pointer rather than following
devsw(a_vp->v_rdev), and it's own copy of the dev_t.
This fixes some broken actions re: syscons and DEVFS due to bitrot in
devfs vops.
Notes:
svn path=/head/; revision=50330
|
| |
|
|
|
|
|
|
| |
block devices are still not handled correctly, though a kludge
may make them "ok".
Notes:
svn path=/head/; revision=50317
|
| |
|
|
|
|
|
|
|
|
|
| |
of a vm_page.
Use it.
Submitted by: dillon
Notes:
svn path=/head/; revision=49945
|
| |
|
|
|
|
|
|
|
| |
a few lines into <sys/vnode.h>.
Add a few fields to struct specinfo, paving the way for the fun part.
Notes:
svn path=/head/; revision=49535
|
| |
|
|
|
|
|
|
|
|
| |
lockmgr locks. This commit should be functionally equivalent to the old
semantics. That is, all buffer locking is done with LK_EXCLUSIVE
requests. Changes to take advantage of LK_SHARED and LK_RECURSIVE will
be done in future commits.
Notes:
svn path=/head/; revision=48225
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
udev_t in the kernel but still called dev_t in userland.
Provide functions to manipulate both types:
major() umajor()
minor() uminor()
makedev() umakedev()
dev2udev() udev2dev()
For now they're functions, they will become in-line functions
after one of the next two steps in this process.
Return major/minor/makedev to macro-hood for userland.
Register a name in cdevsw[] for the "filedescriptor" driver.
In the kernel the udev_t appears in places where we have the
major/minor number combination, (ie: a potential device: we
may not have the driver nor the device), like in inodes, vattr,
cdevsw registration and so on, whereas the dev_t appears where
we carry around a reference to a actual device.
In the future the cdevsw and the aliased-from vnode will be hung
directly from the dev_t, along with up to two softc pointers for
the device driver and a few houskeeping bits. This will essentially
replace the current "alias" check code (same buck, bigger bang).
A little stunt has been provided to try to catch places where the
wrong type is being used (dev_t vs udev_t), if you see something
not working, #undef DEVT_FASCIST in kern/kern_conf.c and see if
it makes a difference. If it does, please try to track it down
(many hands make light work) or at least try to reproduce it
as simply as possible, and describe how to do that.
Without DEVT_FASCIST I belive this patch is a no-op.
Stylistic/posixoid comments about the userland view of the <sys/*.h>
files welcome now, from userland they now contain the end result.
Next planned step: make all dev_t's refer to the same devsw[] which
means convert BLK's to CHR's at the perimeter of the vnodes and
other places where they enter the game (bootdev, mknod, sysctl).
Notes:
svn path=/head/; revision=47028
|
| |
|
|
|
|
|
| |
Reviewed by: dillon, bde
Notes:
svn path=/head/; revision=46580
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a seriously beefed up chroot kind of thing. The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.
For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact: "real virtual servers".
Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.
Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.
It generally does what one would expect, but setting up a jail
still takes a little knowledge.
A few notes:
I have no scripts for setting up a jail, don't ask me for them.
The IP number should be an alias on one of the interfaces.
mount a /proc in each jail, it will make ps more useable.
/proc/<pid>/status tells the hostname of the prison for
jailed processes.
Quotas are only sensible if you have a mountpoint per prison.
There are no privisions for stopping resource-hogging.
Some "#ifdef INET" and similar may be missing (send patches!)
If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!
Tools, comments, patches & documentation most welcome.
Have fun...
Sponsored by: http://www.rndassociates.com/
Run for almost a year by: http://www.servetheweb.com/
Notes:
svn path=/head/; revision=46155
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1:
s/suser/suser_xxx/
2:
Add new function: suser(struct proc *), prototyped in <sys/proc.h>.
3:
s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/
The remaining suser_xxx() calls will be scrutinized and dealt with
later.
There may be some unneeded #include <sys/cred.h>, but they are left
as an exercise for Bruce.
More changes to the suser() API will come along with the "jail" code.
Notes:
svn path=/head/; revision=46112
|
| |
|
|
| |
Notes:
svn path=/head/; revision=44273
|
| |
|
|
|
|
|
| |
kernel compile
Notes:
svn path=/head/; revision=43311
|
| |
|
|
|
|
|
|
| |
instead of breaking out, so a VCHR devices would run the VCHR
routine and then fall through and run the VBLK routine. Fixed.
Notes:
svn path=/head/; revision=43310
|
| |
|
|
|
|
|
| |
kernel compile
Notes:
svn path=/head/; revision=43305
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
changes to the VM system to support the new swapper, VM bug
fixes, several VM optimizations, and some additional revamping of the
VM code. The specific bug fixes will be documented with additional
forced commits. This commit is somewhat rough in regards to code
cleanup issues.
Reviewed by: "John S. Dyson" <root@dyson.iquest.net>, "David Greenman" <dg@root.com>
Notes:
svn path=/head/; revision=42957
|
| |
|
|
|
|
|
| |
enotsupp implementations.
Notes:
svn path=/head/; revision=42568
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41834
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41658
|
| |
|
|
|
|
|
| |
and local variables, goto labels, and functions declared but not defined.
Notes:
svn path=/head/; revision=41591
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41362
|
| |
|
|
| |
Notes:
svn path=/head/; revision=41027
|
| |
|
|
|
|
|
| |
rather than abusing the list next pointer with a magic number.
Notes:
svn path=/head/; revision=40790
|
| |
|
|
|
|
|
| |
options DEVFS.
Notes:
svn path=/head/; revision=39836
|
| |
|
|
|
|
|
|
| |
It isn't for the hidden mountpoint. The static vfs's haven't been
attached then, so mp->mnt_vfc can't be valid.
Notes:
svn path=/head/; revision=38951
|
| |
|
|
|
|
|
|
|
|
|
|
| |
references to them.
The change a couple of days ago to ignore these numbers in statically
configured vfsconf structs was slightly premature because the cd9660,
cfs, devfs, ext2fs, nfs vfs's still used MOUNT_* instead of the number
in their vfsconf struct.
Notes:
svn path=/head/; revision=38909
|
| |
|
|
|
|
|
| |
the other objects in vm.
Notes:
svn path=/head/; revision=38799
|
| |
|
|
|
|
|
| |
integers. Don't forget to cast to (void *) as well.
Notes:
svn path=/head/; revision=38354
|