On Sat, 8 Sep 2001, Chris Costello wrote:

> On Saturday, September 08, 2001, Poul-Henning Kamp wrote:
> > No actually not, I want something short and predictable like
> > "VT_CODA".
>
>    How about my second suggestion: making v_tag point to
> mp->mnt_stat.f_fstypename, or a copy thereof?

Good, but I as far as I understand this, the only legitimate point of
v_tag is to tell applications like fstat(1) the type of the vnode.
fstat can find chase the kernel pointers in
vp->v_mount->mnt_stat->f_fstypename almost as (un)easily as it could
chase vp->v_tag if v_tag is a pointer.  Copying the string would give
ugly bloat, but would not be all that much worse than the bloat for a
pointer on alphas (the contents of the string "VT_CODA" takes the same
space as a pointer on alphas).

Bruce


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to