Julian Elischer
72963672f5
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 Wemm
a6aeade2c4
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
Bruce Evans
41fadeeb28
Removed yet more vestiges of config-time swap configuration and/or
...
cleaned up nearby cruft.
1997-09-07 16:21:11 +00:00
Bruce Evans
a910e75cdc
Removed vestiges of config-time "argument processing" configuration.
1997-09-07 13:49:56 +00:00
Julian Elischer
139c7c8e2d
remove un-needed if statement (now the poul removed the 'then' clause)
1997-08-27 02:58:40 +00:00
Julian Elischer
bdb9147f65
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
Poul-Henning Kamp
013739386f
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
Garrett Wollman
57bf258e3d
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
Bruce Evans
1fd0b0588f
Removed unused #includes.
1997-08-02 14:33:27 +00:00
Julian Elischer
0ec278018b
two tiny typo's
1997-07-14 04:53:52 +00:00
Julian Elischer
5897e2693a
remove annoying debug message
1997-07-14 04:30:22 +00:00
Joerg Wunsch
ce34628b4b
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
Bruce Evans
c90607ba7f
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
Bruce Evans
1a2efb7550
Removed unused or apparently-unused #includes, especially of the
...
deprecated header <sys/dir.h>.
1997-04-10 14:35:32 +00:00
Bruce Evans
9135a51377
Use Lite2's stub locking vops instead of nullop.
1997-02-24 17:08:49 +00:00
Mike Pritchard
fd7a659f2f
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 Elischer
acdbeb6b1c
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
Poul-Henning Kamp
7f6a56eff7
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 Elischer
24b3bdfe8d
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 Elischer
138e4d769c
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 Elischer
336cf5014e
Allow the utimes call to work on devfs nodes.
1996-10-16 18:02:53 +00:00
Julian Elischer
1737b9d383
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
Bruce Evans
dc927d0c6b
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 Williams
d977b72dbd
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 Elischer
99892d2317
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
Bruce Evans
f313170d3c
Updated #includes to 4.4Lite style.
1996-09-10 08:32:01 +00:00
Bruce Evans
b71fec07db
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 Elischer
def534af64
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 Elischer
ed9a71b7fc
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
Bruce Evans
8c2ff39670
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
Poul-Henning Kamp
c74bb98638
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
Gary Palmer
75cc5f07de
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
Gary Palmer
1409e0b384
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 Wunsch
cbe4630780
Fix the reproto.sh script that was broken after my KNFification.
...
Pointed out by: bde
1996-04-07 01:15:03 +00:00
Joerg Wunsch
d9fb9dd03e
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
Marc G. Fournier
ad98bd0b24
Merged devfs_add_devsw() into devfs_add_devswf()
1996-04-03 03:03:27 +00:00
Marc G. Fournier
2523e82c8b
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
Marc G. Fournier
0d5b12e38e
Added dev_linkf() function (dev_link() + printf-style arguments)
...
Reviewed by: julian@freebsd.org
1996-03-28 14:32:27 +00:00
Julian Elischer
54a5291b37
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 Elischer
e9ee430593
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
Mike Pritchard
6c5e9bbdf5
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
Poul-Henning Kamp
02ae573ca8
make devfs_add_devswf a little smarter about '/';
1996-01-28 10:07:55 +00:00
Poul-Henning Kamp
831e28a67a
Make devfs_add_devfsf() which takes printf style args.
1996-01-25 07:17:31 +00:00
Julian Elischer
da798be901
Slightly improved debug messages for inserting new items
1996-01-21 09:43:31 +00:00
Julian Elischer
b10669ebad
oops.
...
get the last edit right
1996-01-21 09:07:58 +00:00
Julian Elischer
3daaa0c3bc
Submitted by: Bruce Evans (bde)
...
better naming for exported devfs function
and better place for the prototype
1996-01-21 09:03:15 +00:00
Peter Wemm
689d68d9c2
Remove unnecessary debug printf's ("no references", "bad-id") - these
...
were development aids :-) and normal events.
Initialise the "hidden" blueprint mount "mnt_op" and "mnt_vfc" fields so
that a statfs() on a devfs file would not panic anymore. Fixes PR#911.
Head-scratching by: Julian and Peter
1996-01-02 09:14:49 +00:00
Peter Wemm
a5b996a7ec
recording cvs-1.6 file death
1995-12-30 19:02:48 +00:00
Bruce Evans
a899362e40
Restored lost prototypes.
1995-12-14 19:04:09 +00:00
Poul-Henning Kamp
f708ef1b9e
Another mega commit to staticize things.
1995-12-14 09:55:16 +00:00