diff options
author | julian <julian@FreeBSD.org> | 1995-10-04 11:05:09 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1995-10-04 11:05:09 +0000 |
commit | 368d81d28d3e18b2f5282f7c98bd6c83a61c1d4d (patch) | |
tree | bc9161bd15d9dab764dcd567d5089c734d6efdbb /sys/miscfs/devfs/devfsdefs.h | |
parent | 61393d63ff8b556f627e4b656d430ca8470bdd0c (diff) | |
download | FreeBSD-src-368d81d28d3e18b2f5282f7c98bd6c83a61c1d4d.zip FreeBSD-src-368d81d28d3e18b2f5282f7c98bd6c83a61c1d4d.tar.gz |
find some way of letting a node know where in its parent's directory structure
it was referenced from.. stops a rather annoying panic, but
introduces a rather interesting but "I can live with it" bug
`ln a b ; mv a b; echo ?`
returns a rather than b..
I know why but I need to think of the 'correct' answer. at least this is 'safe'
Diffstat (limited to 'sys/miscfs/devfs/devfsdefs.h')
-rw-r--r-- | sys/miscfs/devfs/devfsdefs.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/miscfs/devfs/devfsdefs.h b/sys/miscfs/devfs/devfsdefs.h index 1cbbdd7..6973a98 100644 --- a/sys/miscfs/devfs/devfsdefs.h +++ b/sys/miscfs/devfs/devfsdefs.h @@ -7,7 +7,7 @@ /* * Written by Julian Elischer (julian@DIALIX.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfsdefs.h,v 1.5 1995/09/06 09:29:19 julian Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfsdefs.h,v 1.6 1995/09/06 23:15:55 julian Exp $ */ /* first a couple of defines for compatibility with inodes */ @@ -90,6 +90,7 @@ struct devnode /* the equivalent of an INODE */ u_long vn_id; /* make sure we have the right vnode */ int (***ops)(void *); /* yuk... pointer to pointer(s) to funcs */ int len; /* of any associated info (e.g. dir data) */ + devnm_p last_lookup; /* name I was last looked up from */ union typeinfo { struct { struct cdevsw *cdevsw; @@ -107,7 +108,7 @@ struct devnode /* the equivalent of an INODE */ devnm_p dirlist; devnm_p *dirlast; dn_p parent; - devnm_p myname; + devnm_p myname; /* my entry in .. */ int entrycount; }Dir; struct { |