From owner-p4-projects@FreeBSD.ORG Thu Oct 13 22:02:58 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 06FF416A421; Thu, 13 Oct 2005 22:02:58 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A533E16A41F for ; Thu, 13 Oct 2005 22:02:57 +0000 (GMT) (envelope-from soc-chenk@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 627AA43D45 for ; Thu, 13 Oct 2005 22:02:57 +0000 (GMT) (envelope-from soc-chenk@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9DM2vgB089016 for ; Thu, 13 Oct 2005 22:02:57 GMT (envelope-from soc-chenk@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9DM2u6r089013 for perforce@freebsd.org; Thu, 13 Oct 2005 22:02:56 GMT (envelope-from soc-chenk@freebsd.org) Date: Thu, 13 Oct 2005 22:02:56 GMT Message-Id: <200510132202.j9DM2u6r089013@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to soc-chenk@freebsd.org using -f From: soc-chenk To: Perforce Change Reviews Cc: Subject: PERFORCE change 85237 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 22:02:58 -0000 http://perforce.freebsd.org/chv.cgi?CH=85237 Change 85237 by soc-chenk@soc-chenk_leavemealone on 2005/10/13 22:02:29 Makefile tunings - Merge in Anish Mistry's patch for mount_fusefs/Makefile - fuse_module/Makefile: - no invariants by default - add (non-automated support) for using old clonehandler API - update README.html accordingly Submitted by: soc-chenk Affected files ... .. //depot/projects/soc2005/fuse4bsd2/README.html#9 edit .. //depot/projects/soc2005/fuse4bsd2/fuse_module/Makefile#4 edit .. //depot/projects/soc2005/fuse4bsd2/mount_fusefs/Makefile#4 edit Differences ... ==== //depot/projects/soc2005/fuse4bsd2/README.html#9 (text+ko) ==== @@ -32,7 +32,7 @@ The main part of Fuse for FreeBSD is a kernel module which provides a kernel messaging interface to the Fuse library in userspace which is compatible with that of the Linux module. The userspace part is pretty portable. A lightweight patch is enough to get that compile and work.

-The module can be expected work with RELENG_6 snapshots of version number at least 600034, or with HEAD snapshots of version number at least 700002. (Hint: you can get the version number of your currently running kernel by sysctl -n kern.osreldate; or you can extract the version number directly from the source code by awk '/#define/{if ($2 == "__FreeBSD_version") { print $3; exit }}' /sys/sys/param.h.) (Desperate types can try with older HEAD/RELENG_6 snapshots if they set the -DUSE_OLD_CLONEHANDLER_API flag for cc.) +The module can be excepted to work with RELENG_6 and HEAD (ie., 7.x) snapshots.

What can be considered as a public homepage for the project is [WWW]http://wikitest.freebsd.org/moin.cgi/FuseFilesystem; for updates, further info go there. Get in contact with me via the soc-chenk email addrees of the FreeBSD organization (freebsd.org). @@ -88,6 +88,12 @@

  • + For older snapshots, you'll need a special make flag. If you use a 6.x kernel and its __FreeBSD_version is lesser than 600034, or you use a 7.x kernel and its __FreeBSD_version is lesser than 700002, you will also have to add -DUSE_OLD_CLONEHANDLER_API to make's parameters below. You can check this variable by the +

     awk '/#define/{if ($2 == "__FreeBSD_version") { print $3; exit }}' /sys/sys/param.h
    command. +

    +
  • +
  • +

    Type make. If you want normal quantity of debug output, use the make flag -DDEBUG2G, if you want tons of debug output, use -DDEBUG.

  • ==== //depot/projects/soc2005/fuse4bsd2/fuse_module/Makefile#4 (text+ko) ==== @@ -5,6 +5,14 @@ CFLAGS+= -DFMASTER .endif +.if defined(USE_OLD_CLONEHANDLER_API) +CFLAGS+= -DUSE_OLD_CLONEHANDLER_API +.endif + +.if defined(INVARIANTS) +CFLAGS+= -DINVARIANTS +.endif + .if defined(DEBUG) DEBUG_FLAGS+= -D_DEBUG -g .endif @@ -14,17 +22,13 @@ .endif .if defined(DEBUG_MSGING) -CFLAGS+= -D_DEBUG_MSGING +DEBUG_FLAGS+= -D_DEBUG_MSGING .endif .if defined(FMASTER) || defined(DEBUG) || defined(DEBUG2G) SRCS+= fuse_opnames.c .endif -.if !defined(NOINVARIANTS) -CFLAGS+= -DINVARIANTS -.endif - KMOD=fuse CLEANFILES+= fuse_kernel.h fuse_opnames.c fuse_opnames.o fmaster.o vnode_if.h vnode_if_typedef.h vnode_if_newproto.h fuse.ko.debug ==== //depot/projects/soc2005/fuse4bsd2/mount_fusefs/Makefile#4 (text+ko) ==== @@ -2,7 +2,8 @@ PROG = mount_fusefs SRCS = mount_fusefs.c getmntopts.c -MAN = mount_fusefs.8 +MAN8 = mount_fusefs.8 +NO_MANCOMPRESS?= yes CLEANFILES += mount_fusefs_safe mount_fusefs_safe.o mount_fusefs_safe.c # mount_fusefs needs mntopts.h and getmntopts.c from src/sbin/mount/