From patchwork Sun Nov 30 13:42:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shriramana Sharma X-Patchwork-Id: 5408071 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CB274BEEA8 for ; Sun, 30 Nov 2014 13:43:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EA8A52016C for ; Sun, 30 Nov 2014 13:43:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1DA7C2015E for ; Sun, 30 Nov 2014 13:43:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752084AbaK3NnJ (ORCPT ); Sun, 30 Nov 2014 08:43:09 -0500 Received: from mail-qc0-f178.google.com ([209.85.216.178]:34416 "EHLO mail-qc0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751943AbaK3NnH (ORCPT ); Sun, 30 Nov 2014 08:43:07 -0500 Received: by mail-qc0-f178.google.com with SMTP id b13so7221515qcw.37 for ; Sun, 30 Nov 2014 05:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=UO84WkqUZSSqQhmBAHewTLgZBEfId7svVNPcQIAwo4M=; b=FSM2ihugVYcZzDpP1P6qy5rr5wHW9pbLJMrKEiZJYg4sqYe3Ao58qjJ+tVkiBSsHf2 /j15Y5RqtbipdjckeWCpawbMzr8y/k7n5/XhRH/6ZXAdSykDZ6HFtV7iOjzzWlI8wEdn NbLiXFRAymHy5YYDqld5eccYdJesPGKH9tlmk55ElYs6ilS5rnkw1veW7qaNw+LXpP3U XBSxgBXPA1GRPuIqmi3+1zD09kI5pqaCmeuzc5f5kEM8JuGTabzxrM2h3qe58licL/QI 5k2BXVkf8PHP205DJFW9HhON7iv76caxLQI/9eXO+RvVDnUGamHO4GToPIw540X1mLCV v4Xg== X-Received: by 10.140.92.215 with SMTP id b81mr78632023qge.5.1417354986834; Sun, 30 Nov 2014 05:43:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.155.13 with HTTP; Sun, 30 Nov 2014 05:42:46 -0800 (PST) In-Reply-To: References: <20141130115908.GF32735@carfax.org.uk> From: Shriramana Sharma Date: Sun, 30 Nov 2014 19:12:46 +0530 Message-ID: Subject: Re: root subvol id is 0 or 5? To: Hugo Mills , Shriramana Sharma , linux-btrfs Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, T_TVD_MIME_EPI,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On Sun, Nov 30, 2014 at 7:08 PM, Shriramana Sharma wrote: > > So why 5 and not just 0 which seems a logical choice? On top of this, > one needs to alias 0 to 5! Attached patch clarifying this in the documentation. (Should have done this with the previous mail. Sorry for multiple mails.) From 54387ff2155423d990b5a9aca95315fe6e649303 Mon Sep 17 00:00:00 2001 From: Shriramana Sharma Date: Sun, 30 Nov 2014 19:11:39 +0530 Subject: [PATCH 2/2] btrfs subvolume doc clarifications --- Documentation/btrfs-subvolume.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/btrfs-subvolume.txt b/Documentation/btrfs-subvolume.txt index 1360aba..34abdef 100644 --- a/Documentation/btrfs-subvolume.txt +++ b/Documentation/btrfs-subvolume.txt @@ -31,7 +31,7 @@ When `mount`(8) using 'subvol' or 'subvolid' mount option, one can access files/directories/subvolumes inside it, but nothing in parent subvolumes. Also every btrfs filesystem has a default subvolume as its initially top-level -subvolume, whose subvolume id is 5(FS_TREE). +subvolume, whose subvolume id is 5. (0 is also acceptable as an alias.) A btrfs snapshot is much like a subvolume, but shares its data(and metadata) with other subvolume/snapshot. Due to the capabilities of COW, modifications @@ -166,7 +166,7 @@ sleep N seconds between checks (default: 1) EXIT STATUS ----------- -*btrfs subvolume* returns a zero exit status if it succeeds. Non zero is +*btrfs subvolume* returns a zero exit status if it succeeds. A non-zero value is returned in case of failure. AVAILABILITY -- 2.1.3