Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Jun 2001 17:42:06 -0400 (EDT)
From:      "Alexander N. Kabaev" <kabaev@mail.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/28206: UMAPFS module should depend on NULLFS - patch
Message-ID:  <200106162142.f5GLg6a44139@kan.dnsalias.net>

next in thread | raw e-mail | index | archive | help

>Number:         28206
>Category:       kern
>Synopsis:       UMAPFS module should depend on NULLFS - patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 16 14:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alexander N. Kabaev
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Verizon Information Technologies
>Environment:
System: FreeBSD kan.dnsalias.net 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Thu Jun 14 21:29:05 EDT 2001 root@kan.dnsalias.net:/usr/src/sys/compile/KAN i386

>Description:
	In its current state, it is impossible to load umapfs.ko module
	without getting "exec format error message" from kldload due to
	missing null_bypass symbol.
>How-To-Repeat:
	kldload umapfs
>Fix:
	Attached patch add required MODULE_DEPEND statement to the umap_vfsops.c
	file and MODULE_VERSION to the null_vfsops.c file. Version 1 has been 
	choosen for nullfs.ko somewhat arbitrary :)


Index: nullfs/null_vfsops.c
===================================================================
RCS file: /home/ncvs/src/sys/fs/nullfs/null_vfsops.c,v
retrieving revision 1.49
diff -u -u -r1.49 null_vfsops.c
--- nullfs/null_vfsops.c	2001/06/13 18:58:11	1.49
+++ nullfs/null_vfsops.c	2001/06/16 21:31:47
@@ -423,3 +423,4 @@
 };
 
 VFS_SET(null_vfsops, nullfs, VFCF_LOOPBACK);
+MODULE_VERSION(nullfs, 1);
Index: umapfs/umap_vfsops.c
===================================================================
RCS file: /home/ncvs/src/sys/fs/umapfs/umap_vfsops.c,v
retrieving revision 1.40
diff -u -u -r1.40 umap_vfsops.c
--- umapfs/umap_vfsops.c	2001/05/24 15:20:11	1.40
+++ umapfs/umap_vfsops.c	2001/06/16 21:14:09
@@ -452,3 +452,4 @@
 };
 
 VFS_SET(umap_vfsops, umapfs, VFCF_LOOPBACK);
+MODULE_DEPEND(umapfs, nullfs, 1, 1, 1);
>Release-Note:
>Audit-Trail:
>Unformatted:

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




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