Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2002 09:18:03 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Nate Lawson <nate@root.org>
Cc:        des@freebsd.org, arch@freebsd.org
Subject:   Re: PATCH: vnode->v_tag to const char * 
Message-ID:  <24013.1031728683@critter.freebsd.dk>
In-Reply-To: Your message of "Tue, 10 Sep 2002 16:38:09 PDT." <Pine.BSF.4.21.0209101629150.19569-100000@root.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.21.0209101629150.19569-100000@root.org>, Nate Lawson wri
tes:
>I have built and tested a patch that changes v_tag and all users of
>it.  Since it should never be accessed other than for debugging, it is now
>a const char *, set by the caller of getnewvnode(9).

Background:

The main motivations for this change is to make it hard(er) for code
to abuse v_tag, since doing so is almost invariably a mistake and to
remove the need to edit the vtagtype enum in <sys/vnode.h> everytime
a filesystem is added.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?24013.1031728683>