Subject: Re: CVS commit: src/sys
To: Jaromir Dolecek <>
From: Bill Studenmund <>
List: source-changes
Date: 03/18/2003 10:38:53
On Mon, 17 Mar 2003, Jaromir Dolecek wrote:

> Module Name:	src
> Committed By:	jdolecek
> Date:		Mon Mar 17 09:11:31 UTC 2003
> Modified Files:
> 	src/sys/fs/union: union.h union_subr.c union_vfsops.c
> 	src/sys/kern: vfs_vnops.c
> 	src/sys/sys: vnode.h
> Log Message:
> make it possible for UNION fs to be loaded via LKM - instead of
> having some #ifdef UNION code in vfs_vnops.c, introduce variable
> 'vn_union_readdir_hook' which is set to address of appropriate
> vn_readdir() hook by union filesystem when it's loaded & mounted

I think a cleaner way to handle this would be a mount-specific option of
some sort. Either a new VFS hook, or a new VOP. That way different file
systems that need the similar-yet-different functionality will work right.

Take care,