phk
92eeb70dc6
Hmm, realign the vnops into two columns.
1997-10-15 10:05:29 +00:00
phk
26130e0b77
Stylistic overhaul of vnops tables.
...
1. Remove comment stating the blatantly obvious.
2. Align in two columns.
3. Sort all but the default element alphabetically.
4. Remove XXX comments pointing out entries not needed.
1997-10-15 09:22:02 +00:00
julian
5edc58c755
if we free all the links to a node, then by definition
...
we freed the name we used to find it..
SO DON'T free it again later!
pointy hat over here please..
1997-10-12 22:27:11 +00:00
phk
36e7a51ea1
Last major round (Unless Bruce thinks of somthing :-) of malloc changes.
...
Distribute all but the most fundamental malloc types. This time I also
remembered the trick to making things static: Put "static" in front of
them.
A couple of finer points by: bde
1997-10-12 20:26:33 +00:00
phk
645e7b2ab6
Distribute and statizice a lot of the malloc M_* types.
...
Substantial input from: bde
1997-10-11 18:31:40 +00:00
julian
5f527a96c0
Allow a deleted deveice to delte it's nodes in other mounted devfs
...
filesystems even if not in SPLIT_DEVS mode.
1997-10-10 07:54:05 +00:00
dyson
e64b1984f9
Change the M_NAMEI allocations to use the zone allocator. This change
...
plus the previous changes to use the zone allocator decrease the useage
of malloc by half. The Zone allocator will be upgradeable to be able
to use per CPU-pools, and has more intelligent usage of SPLs. Additionally,
it has reasonable stats gathering capabilities, while making most calls
inline.
1997-09-21 04:24:27 +00:00
julian
35b575df34
devfs changes to allow old (better) and newer (braindamaged) behaviour.
...
I'm going to try migrate back, while keeping the newer code.
1997-09-16 09:10:18 +00:00
peter
ce7feabb13
Convert select -> poll.
...
Delete 'always succeed' select/poll handlers, replaced with generic call.
Flag missing vnode op table entries.
1997-09-14 02:58:12 +00:00
bde
bcade9a903
Removed yet more vestiges of config-time swap configuration and/or
...
cleaned up nearby cruft.
1997-09-07 16:21:11 +00:00
bde
fc775e3711
Removed vestiges of config-time "argument processing" configuration.
1997-09-07 13:49:56 +00:00
julian
03fbc0db67
remove un-needed if statement (now the poul removed the 'then' clause)
1997-08-27 02:58:40 +00:00
julian
4ef08431e3
two fixes submitted by Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
...
fixes problems in unmounting and propogation.
1997-08-26 17:17:52 +00:00
phk
e896542842
Copy&Paste considered harmful:
...
Remove all traces of the name_cache from devfs. It is hardly sensible to
use the namecache for an all-RAM filesystem.
1997-08-25 20:31:00 +00:00
wollman
4542c1cf5d
Fix all areas of the system (or at least all those in LINT) to avoid storing
...
socket addresses in mbufs. (Socket buffers are the one exception.) A number
of kernel APIs needed to get fixed in order to make this happen. Also,
fix three protocol families which kept PCBs in mbufs to not malloc them
instead. Delete some old compatibility cruft while we're at it, and add
some new routines in the in_cksum family.
1997-08-16 19:16:27 +00:00
bde
9195bd1ec7
Removed unused #includes.
1997-08-02 14:33:27 +00:00
julian
2525533d28
two tiny typo's
1997-07-14 04:53:52 +00:00
julian
a85cb80472
remove annoying debug message
1997-07-14 04:30:22 +00:00
joerg
ff12d1d177
Fix the umount problems for DEVFS.
...
PR: 3276 & 3469 (the fixes), 2738, 2033 (reports)
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-05-03 21:19:54 +00:00
bde
5b0d745f8b
Get the declaration of `struct dirent' from <sys/dirent.h>, not from
...
<sys/dir.h>, and use the new macro GENERIC_DIRSIZ() instead of DIRSIZ().
Removed unused #includes.
1997-04-10 15:05:38 +00:00
bde
3990948507
Removed unused or apparently-unused #includes, especially of the
...
deprecated header <sys/dir.h>.
1997-04-10 14:35:32 +00:00
bde
124250ac4c
Use Lite2's stub locking vops instead of nullop.
1997-02-24 17:08:49 +00:00
mpp
51b234aac4
Make this compile again after the Lite2 merge.
...
Call vget/VOP_UNLOCK with the correct number of
arguments. Call vn_lock where appropriate.
vfs_goneall is now replaced by VOP_REVOKE.
Submitted by: bde
1997-02-12 16:19:11 +00:00
julian
534a4e360d
changes to make devfs more 'normal'
...
also fixes a bug I've been chasing for a LONG TIME,
due to the fact that spec_bwrite is a NOP and I didn't realise it..
old symptom:
mount -t devfs devfs /mnt
mount /mnt/wd0e /mnt/mnt2
umount /mnt2 <process hangs>
there are some pretty large structural differences internal to devfs
but outwards it should look the same.
I have not yet tested extensively but will do so and fix 3 warnings tomorrow.
1996-11-21 07:19:00 +00:00
phk
dda935f024
devfs_tree.c: improve our bdevvp() function.
...
devfs_vnops.c: move a debug printf to be consistent.
1996-10-28 11:36:06 +00:00
julian
70536e45de
Just because something doesn't make sense doesn't mean it should be illegal..
...
just ignore it instead.
===================================================================
RCS file: /home/ncvs/src/sys/miscfs/devfs/devfs_vnops.c,v
retrieving revision 1.30
diff -r1.30 devfs_vnops.c
631d630
< (vap->va_size != VNOVAL) || /* doesn't make sense in devfs */
1996-10-17 22:47:23 +00:00
julian
1fc5d71cd6
actually impliment permissions for teh chown/chmod/etc functions
...
that resemble what the man pages say.
also fix braino (type last week)
1996-10-16 23:14:00 +00:00
julian
9ff5511188
Allow the utimes call to work on devfs nodes.
1996-10-16 18:02:53 +00:00
julian
4485d0a878
reads and writes to devices update m and a times
...
add some security onn the chmod/chown operations
should now be root or owner
(still needs more thought but kinda-plugs tow holes pointed out by bde)
1996-10-12 00:07:53 +00:00
bde
796679c034
Started unspamming <sys/systm.h>. Don't include <machine/stdarg.h>
...
to get the declaration of va_list; just use _BSD_VA_LIST. Fixed
the 2 places that need <machine.stdarg.h> but didn't include it
explicitly.
1996-09-29 15:00:37 +00:00
nate
41b14ae59f
Whoops, I should've used the LINT config file. More ts -> tv changes
...
for timespec structure.
1996-09-20 05:56:36 +00:00
julian
c60a92f885
fix the ability of the VFS to reclaim devfs nodes correctly..
...
(was resulting in panics, especially when DIAGNOSTIC was set.)
1996-09-11 07:52:18 +00:00
bde
25556c3b93
Updated #includes to 4.4Lite style.
1996-09-10 08:32:01 +00:00
bde
51ff523803
Eliminated nested include of <sys/unistd.h> in <sys/file.h> in the kernel.
...
Include it directly in the few places where it is used.
Reduced some #includes of <sys/file.h> to #includes of <sys/fcntl.h> or
nothing.
1996-09-03 14:25:27 +00:00
julian
a5c4b94299
Submitted by: doug Rabson (dfr@render.com)
...
cleaning up some of the vnode usage..
(I'm sure it still needs more..)
where can one find out what each vfs call expects to be locked
on completion, and how can one find out what each layer expects
to be freed on error.?
1996-08-13 19:48:41 +00:00
julian
2fd72b710b
symlink support in devfs.
...
it only barely works so don't get too carried away..
I noticed that teh symlink is length 0..
I guess I'll fix that tomorrow..
it also sometimes panics with "cleaned vnode isn't" but it's not more
broken than it was before.. I really want to go over it with someone
who understands the lifecycle of a vnode better than I do..
terry?
kirk?
david?
john?
1996-08-13 07:21:45 +00:00
bde
63ae415aca
Only use the special bdevvp() for DEVFS if DEVFS_ROOT is defined. This
...
makes option DEVFS safe to use again (although mounting devfs is unsafe).
1996-07-30 18:00:32 +00:00
phk
1e7e8dfc1e
DEVFS needs a special bdevvp().
...
I just noticed some junk in my patch. I'll remove that in a sec.
1996-07-24 21:22:36 +00:00
gpalmer
1e4006ada3
Cosmetic change: make the ``ready to run'' line match the
...
``ready for devices'' printed out earlier by changing `devs '
to be `DEVFS: '
1996-06-15 20:37:22 +00:00
gpalmer
d356aa8b62
Clean up -Wunused warnings. Julian asked me to just ifdef
...
out unused code as this is still work in progress.
Reviewed by: bde
1996-06-12 05:08:34 +00:00
joerg
426074daf3
Fix the reproto.sh script that was broken after my KNFification.
...
Pointed out by: bde
1996-04-07 01:15:03 +00:00
joerg
427df293ee
KNFify the function definitions. It's harder to grep around when the
...
function names don't start in column 1.
1996-04-06 13:34:37 +00:00
scrappy
2e8aad5ee1
Merged devfs_add_devsw() into devfs_add_devswf()
1996-04-03 03:03:27 +00:00
scrappy
52b6bf2e18
Made the src code match the man page.
...
Removed dev_link() and dev_linkf(), replacing dev_linkf() with devfs_link()
1996-04-02 04:53:05 +00:00
scrappy
745bb4c905
Added dev_linkf() function (dev_link() + printf-style arguments)
...
Reviewed by: julian@freebsd.org
1996-03-28 14:32:27 +00:00
julian
eae3c9253f
Submitted by: "Marc G. Fournier" <scrappy@ki.net>
...
allows correct creation of subdirectories in devfs_add_devswf()
1996-03-25 21:56:59 +00:00
julian
52cfae633c
really stupid mistake that stopped devices from appearing on the fly in mounted
...
DEVFS filesystems..
- if ( error = dev_add_name(child->name,parent->dnp
+ if ( error = dev_add_name(child->name,falias->dnp
Ok bruce, this is the one you were seeing..
1996-02-18 07:29:53 +00:00
mpp
f3dd75a38d
Fix a bunch of spelling errors in the comment fields of
...
a bunch of system include files.
1996-01-30 23:02:38 +00:00
phk
fd7d88027b
make devfs_add_devswf a little smarter about '/';
1996-01-28 10:07:55 +00:00
phk
395d897625
Make devfs_add_devfsf() which takes printf style args.
1996-01-25 07:17:31 +00:00