From owner-freebsd-questions@FreeBSD.ORG Sun Jun 15 02:19:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CC91106564A for ; Sun, 15 Jun 2008 02:19:47 +0000 (UTC) (envelope-from fbsd06+W5=e1c463e1@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 10E118FC16 for ; Sun, 15 Jun 2008 02:19:46 +0000 (UTC) (envelope-from fbsd06+W5=e1c463e1@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id D8C7623E49C for ; Sat, 14 Jun 2008 22:19:45 -0400 (EDT) Date: Sun, 15 Jun 2008 03:19:43 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080615031943.3a8842f0@gumby.homeunix.com.> In-Reply-To: <48546AC3.5010506@onetel.com> References: <485453CE.3040908@onetel.com> <20080615014316.0723f0da@gumby.homeunix.com.> <48546AC3.5010506@onetel.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: how to view environment variables X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2008 02:19:47 -0000 On Sun, 15 Jun 2008 02:05:07 +0100 Chris Whitehouse wrote: > RW wrote: > > On Sun, 15 Jun 2008 00:27:10 +0100 > > Chris Whitehouse wrote: > > > >> Hello, > >> > >> sysutils/fusefs-ntfs/files/README.FreeBSD refers to various > >> environment variables, eg UBLIO_BLOCKSIZE and others. How do I find > >> out what they are set to? set and printenv don't find them. I'm > >> using standard csh and FreeBSD 7.0-STABLE, fuse.ko is loaded and > >> ntfs-3g works except it seems very slow. > > > > If you didn't set them, they probably aren't set. You'll need to > > consult the fusefs-ntfs documentation (or source) to find the > > default value. > > I think this explains part of my confusion. If the variables are not > set ntfs-3g assumes some defaults (in README.FreeBSD) but doesn't set > them as environment variables. I thought ntfs-3g would actually set > them. I still don't know how to view them when I have explicitly set > them, as per previous reply to Robert Huff. > > eco# env UBLIO_BLOCKSIZE=65536 ntfs-3g /dev/ad0s1 /ad0s1 > eco# setenv |grep UBLIO > eco# If you set them separately in the shell the new process will inherit them - env only sets the environment in the new process. This wont buy you anything though for the reason you mention, and because parent processes don't pick-up changes to the environment made by child-processes anyway.