From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6AD34C742A7 for ; Sat, 13 Jul 2019 11:28:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 44C4520838 for ; Sat, 13 Jul 2019 11:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727711AbfGML2g (ORCPT ); Sat, 13 Jul 2019 07:28:36 -0400 Received: from smtp02.belwue.de ([129.143.71.87]:35470 "EHLO smtp02.belwue.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727704AbfGML2g (ORCPT ); Sat, 13 Jul 2019 07:28:36 -0400 Received: from fex.rus.uni-stuttgart.de (fex.rus.uni-stuttgart.de [129.69.1.129]) by smtp02.belwue.de (Postfix) with SMTP id 20BC7ACBF for ; Sat, 13 Jul 2019 13:28:33 +0200 (MEST) Date: Sat, 13 Jul 2019 13:28:32 +0200 From: Ulli Horlacher To: linux-btrfs@vger.kernel.org Subject: Re: find subvolume directories Message-ID: <20190713112832.GA30696@tik.uni-stuttgart.de> Mail-Followup-To: linux-btrfs@vger.kernel.org References: <20190712231705.GA16856@tik.uni-stuttgart.de> <75e5bd20-fafa-07fd-afd9-159e9aacb7db@gmail.com> <20190713082759.GB16856@tik.uni-stuttgart.de> <62366a29-a8ea-a889-f857-0305eba99051@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62366a29-a8ea-a889-f857-0305eba99051@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org On Sat 2019-07-13 (14:10), Andrei Borzenkov wrote: > >> It is entirely up to the user who creates it how subvolumes are named and > >> structured. You can well have /foo, /bar, /baz mounted as /, /var and > >> /home. > > > > And how can I find them in my mounted filesystem? > > THIS is my problem. > > I am not sure what problem you are trying to solve I want a list of all subvolumes directories (which I can access with UNIX tools like cd and ls or btrfs subvolume ...). > but you can use list of current mounts to build path to each subvolume > (as long as it is either below one of mounted subvolumes or explicitly > mounted). Is there an easy/standard way to do this? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum TIK Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de Allmandring 30a Tel: ++49-711-68565868 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/ REF:<62366a29-a8ea-a889-f857-0305eba99051@gmail.com>