From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from plane.gmane.org ([80.91.229.3]:57074 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbbFASJD (ORCPT ); Mon, 1 Jun 2015 14:09:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YzU8z-0007eL-Sn for linux-btrfs@vger.kernel.org; Mon, 01 Jun 2015 20:09:02 +0200 Received: from exa2-in-fw-01-epn.hns.com ([139.85.223.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jun 2015 20:09:01 +0200 Received: from ndbecker2 by exa2-in-fw-01-epn.hns.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Jun 2015 20:09:01 +0200 To: linux-btrfs@vger.kernel.org From: Neal Becker Subject: Re: howto create subvolume at top level? Date: Mon, 01 Jun 2015 14:08:52 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Sender: linux-btrfs-owner@vger.kernel.org List-ID: Duncan wrote: > Neal Becker posted on Mon, 01 Jun 2015 13:25:52 -0400 as excerpted: > >> [nbecker@nbecker2 ~]$ sudo btrfs subvolume create /home2 >> Create subvolume '//home2' >> [nbecker@nbecker2 ~]$ sudo btrfs subvolume list / >> ID 257 gen 66376 top level 5 path root >> ID 316 gen 66376 top level 257 path home2 >> >> This created home2 under root. How do I create home2 with top level as >> top level 5, at the same level as root? >> >> IOW: >> >> ID 257 gen 66376 top level 5 path root >> ID 316 gen 66376 top level 5 path home2 > > Briefly stated, you don't. Just like / is the top of a Unix style > directory tree, the root subvolume is the top of a btrfs subvolume tree. > You can't go higher than that, and that's what the top level /is/. > > But what are you actually trying to do? You _can_ change the default > subvolume pointer so a subvolume other than root/5 is mounted by default, > and you can nest subvolumes, so for most purposes, you can /pretend/ that > some arbitrarily named subvolume is your top subvolume. Alternatively, > you can of course mount subvolumes wherever you want in the directory > tree. > > Also see the subvolumes discussion and related FAQs on the wiki if you > haven't. > > https://btrfs.wiki.kernel.org/ > But I already have a server setup like this, which was created by anaconda: sudo btrfs subvolume list / ID 256 gen 1828545 top level 5 path home ID 259 gen 1818478 top level 5 path root ID 487 gen 1828544 top level 5 path root00 -- Those who fail to understand recursion are doomed to repeat it