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 F0773C7618F for ; Mon, 15 Jul 2019 11:39:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CCA8F206B8 for ; Mon, 15 Jul 2019 11:39:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729874AbfGOLjG (ORCPT ); Mon, 15 Jul 2019 07:39:06 -0400 Received: from smtp02.belwue.de ([129.143.71.87]:61698 "EHLO smtp02.belwue.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbfGOLjG (ORCPT ); Mon, 15 Jul 2019 07:39:06 -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 E3F958B8C for ; Mon, 15 Jul 2019 13:39:03 +0200 (MEST) Date: Mon, 15 Jul 2019 13:39:03 +0200 From: Ulli Horlacher To: linux-btrfs@vger.kernel.org Subject: Re: find subvolume directories Message-ID: <20190715113903.GB17669@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: > I am not sure what problem you are trying to solve, 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). I have tried it this way (many hours of programming), but it is a horrible complex task, because subvolumes can be mounted several times at different places (mount points). Why is such a common command "list all subvolumes directories" not possible with the standard btrfs tools? Am I really the only one who wants to know it? -- 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>