From owner-freebsd-current@freebsd.org Fri Mar 11 01:28:23 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1050AACAE4B for ; Fri, 11 Mar 2016 01:28:23 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: from mail-vk0-x230.google.com (mail-vk0-x230.google.com [IPv6:2607:f8b0:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC11E25F for ; Fri, 11 Mar 2016 01:28:22 +0000 (UTC) (envelope-from ultima1252@gmail.com) Received: by mail-vk0-x230.google.com with SMTP id e185so117749225vkb.1 for ; Thu, 10 Mar 2016 17:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=M+1GBgmLhTSUT4tzTVzAa12obil6iRqdf2TNlXR7jms=; b=oHlVObA6mvLFnZC7oA0bwCKv6/qRZTOuar1mchQNX1OvgN7hXfbewWCylGqQR985/r U2b0EHLMQ7f+YLMxi6m9+nclI48rpZPBlaQuCxcvoWn7HFGnGa8XiNA5A+cPps93McPu xSR7CyPFVipVrB9Nr7GBW0hHuusM4Ou+77sWdh+tC8AsQpFG0JUqhsG91jD3FIzDI5e8 h+k4DIFRATlXW2nsgnrNChDLBWXoTJoa2ZI7uUZyxH3Y6vJfOModoa68+qoyIisF02hA e2T8YgCDZRxmjANWx5grhHPkyQlaPU+LVgwosHN+ygWouvwnzs3V4NTXPsIyWET/ZIWF zamg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=M+1GBgmLhTSUT4tzTVzAa12obil6iRqdf2TNlXR7jms=; b=Cv7iZVW34Iz9YxonmqajlevIJ6zz3kYc5sJ+9KZ9FJcHWN3u6H4yyJWS0sFaQzkNuv 3XwelXUAwoUNTEHUyjZQfuw9drb4R/uyblqltHSyrgaD6tF7keiILPXp4CuvFMLPuWsH 8wxH+/D8o0CEHGVcybA6zH+1pj7ixzZmSg4iZNUtRnaMnawI16tu0PszXD+2OIvZavx4 ONkK10jQ/JDbrFJHZzMe3lBGjgRkzLvwcJrzmO9WJOIyT3U0Z1+BYYp8611SeRWeK2X0 1wyHd4/I98li/dBpx7jyKXjKjpNleQuCeigk/mmIKGt3sFbFfn20uFNNaIX9w1iXNc4C ln9A== X-Gm-Message-State: AD7BkJJJ3+byvnt9x3kEycsK4eayPWegMD1cAn8+JmaL/PCYut9jlpSrhH3zk6dx3cxLbclD3BQP6OBdMNmPUA== MIME-Version: 1.0 X-Received: by 10.31.128.15 with SMTP id b15mr6670392vkd.128.1457659701745; Thu, 10 Mar 2016 17:28:21 -0800 (PST) Received: by 10.31.194.194 with HTTP; Thu, 10 Mar 2016 17:28:21 -0800 (PST) In-Reply-To: <56e20c0b.9021620a.6a3f7.ffff9443SMTPIN_ADDED_MISSING@mx.google.com> References: <56e20c0b.9021620a.6a3f7.ffff9443SMTPIN_ADDED_MISSING@mx.google.com> Date: Thu, 10 Mar 2016 20:28:21 -0500 Message-ID: Subject: Re: zfsboot patch for /usr From: Ultima To: marquis@roble.com Cc: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 01:28:23 -0000 No need to ignore the output of zfs list, here is an explanation of zfs list's output, this is in the zfs man page. I think you're confusing used with refer. used The amount of space consumed by this dataset and all its descendents. This is the value that is checked against this dataset's quota and reservation. The space used does not include this dataset's reserva=E2=80=90 tion, but does take into account the reservations of any descenden= t datasets. The amount of space that a dataset consumes from its par= =E2=80=90 ent, as well as the amount of space that are freed if this dataset is recursively destroyed, is the greater of its space used and its reservation. When snapshots (see the "Snapshots" section) are created, their space is initially shared between the snapshot and the file system, and possibly with previous snapshots. As the file system changes, spac= e that was previously shared becomes unique to the snapshot, and counted in the snapshot's space used. Additionally, deleting snap= =E2=80=90 shots can increase the amount of space unique to (and used by) other snapshots. The amount of space used, available, or referenced does not take into account pending changes. Pending changes are generally accounted for within a few seconds. Committing a change to a disk using fsync(2) or O_SYNC does not necessarily guarantee that the space usage informa= =E2=80=90 tion is updated immediately. available The amount of space available to the dataset and all its children, assuming that there is no other activity in the pool. Because spac= e is shared within a pool, availability can be limited by any number of factors, including physical pool size, quotas, reservations, or other datasets within the pool. This property can also be referred to by its shortened column name= , avail. referenced The amount of data that is accessible by this dataset, which may o= r may not be shared with other datasets in the pool. When a snapshot or clone is created, it initially references the same amount of space as the file system or snapshot it was created from, since its content= s are identical. This property can also be referred to by its shortened column name= , refer. On Thu, Mar 10, 2016 at 7:06 PM, Roger Marquis wrote: > > You don't mkdir it, you create it as a ZFS dataset, and mark it with th= e > > 'canmount=3Dno' property, so it only exists to be a parent, not as an > > actual dataset. This is the default in zfboot currently. > > Thanks to everyone for pointing this out. I'll forget about mkdir then, > ignore the output of 'zfs list' and get comfortable doing things the zfs > way. > > Still have to tweak scripts/zfsboot to create a /var/spool subvol, a /hom= e > subvol in place of /usr/home and specify atime=3Dnone in the default data= set. > At least the latter works as expected. > > Roger > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >