From owner-freebsd-stable@FreeBSD.ORG Thu Apr 28 22:35:32 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 597F21065672 for ; Thu, 28 Apr 2011 22:35:32 +0000 (UTC) (envelope-from frimik@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1345A8FC0C for ; Thu, 28 Apr 2011 22:35:31 +0000 (UTC) Received: by vws18 with SMTP id 18so3160351vws.13 for ; Thu, 28 Apr 2011 15:35:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Qpd29VjsyFnqG6YPXo8xwdTUKyxiRcqJaYNGMRthOoo=; b=Zh1BY9P5LkbuM4NRV139e8TugtujlsINtwLKVDmC6IqIHoBXEBAqoMTqHIyUpGW02O 63BIbZD0N23UV78pBUlF951oBSMCanJyJejN0kspDcNgLjEt4WB7xyB39EA8BtAgLiQ3 /RrZ3XbM1rRk13eFdDQkXxQbloiZHzfEILOzw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=C7YTyd+xZcPy4t9DXoub+gcHEx8MV3Y2rxWyGweG6fn6RLzMsMBZUcOlF53/mZCVgd 3sfKneop4TEN+TKb86kbPvH6YyPiG3mWojKK1m1aR+brpQj6YYF5ZDlOIoRwrZmcVvFq cNpVFbqjHQd9kFBjzZKVUfbPKiJuB/R3e5ZVY= MIME-Version: 1.0 Received: by 10.52.115.232 with SMTP id jr8mr1859179vdb.38.1304030131389; Thu, 28 Apr 2011 15:35:31 -0700 (PDT) Received: by 10.52.116.8 with HTTP; Thu, 28 Apr 2011 15:35:31 -0700 (PDT) In-Reply-To: <20110428215954.GA34030@icarus.home.lan> References: <537A8F4F-A302-40F9-92DF-403388D99B4B@gsoft.com.au> <20110428195601.GA31807@icarus.home.lan> <201104281727.04425.jhb@freebsd.org> <20110428215954.GA34030@icarus.home.lan> Date: Fri, 29 Apr 2011 00:35:31 +0200 Message-ID: From: Mikael Fridh To: Jeremy Chadwick Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-stable@freebsd.org, John Baldwin Subject: Re: ZFS vs OSX Time Machine X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2011 22:35:32 -0000 On Thu, Apr 28, 2011 at 11:59 PM, Jeremy Chadwick wrote: > > I've seen cases where entries in /boot/loader.conf throw parser errors > during loader(8) when quotes aren't used. =A0The man page denotes that > quotes are required, which doesn't appear to be true? =A0Possibly the > parser only throws errors if non-numeric/non-integer values (e.g. > strings) are specified without quotes. > > It's interesting that in the BUGS section of the man page the syntax > shown for hw.ata.ata_dma=3D0 also ""violates"" the ""required"" syntax. > > So the question is: what's reality, and would better documentation > suffice? My reality: zfs_load=3D"YES" vfs.root.mountfrom=3D"zfs:zroot" vfs.root.mountfrom.options=3Drw vfs.zfs.debug=3D1 geom_mirror_load=3D"YES" ahci_load=3D"YES" ... works. And I've used even more sloppy syntax on occasion, basically I've left out quotes on pretty much all values which are pure alphanumeric. loader.conf(5) does say: > All settings have the following format: > variable=3D"value" but it also says it's format was defined explicitly to resemble rc.conf(5) and can be sourced by sh(1), which should mean that quoting is not required anywhere. If you read that literally, you should even be able to do this in loader.co= nf: some_value=3DVALUE\ WITH\ SPACES ... because that can be sourced by sh(1) and would result in some_value=3D'VALUE WITH SPACES', but I haven't tried rebooting a machine with such settings in loader.conf yet and I wouldn't bet on it working nor would I actually use such madness in loader.conf even if I could. -- Mikael