Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Aug 2002 05:03:23 -0700
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Pawel Jakub Dawidek <nick@garage.freebsd.pl>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Replacing kernel functions.
Message-ID:  <3D6CBC0B.A94B7197@mindspring.com>
References:  <20020828021016.GB31943@garage.freebsd.pl> <3D6C3F16.EC09BDB@mindspring.com> <20020828102902.GF31943@garage.freebsd.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
Pawel Jakub Dawidek wrote:
> On Tue, Aug 27, 2002 at 08:10:14PM -0700, Terry Lambert wrote:
> +> The easiest way to do this is to take nullfs and modify it so
> +> that it caches the name of the file for the vnode that is
> +> returned as a value pointed to by the per layer vnode data
> +> area, e.g. modify struct null_node to add a null_name pointer:
> [...]
> 
> Yes, but I don't want to patch kernel at all.
> Everythings should be in one kld module and should works for all file
> systems (ufs/ffs, fat32, procfs, etc.). File system shouldn't be
> important.

You would make your own stacking module named "pawelfs", derived
from "nullfs".

That module would be the only module you would need.  You would
stack it on any FS that you wanted to be able to the the ioctl()
"PAWELS_MAGIC_GET_NAME" on.

No kernel modifications required.

-- Terry

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




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