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.5 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 AA295C0650E for ; Sat, 6 Jul 2019 20:43:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A1EF20836 for ; Sat, 6 Jul 2019 20:43:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbfGFUnq (ORCPT ); Sat, 6 Jul 2019 16:43:46 -0400 Received: from smtp01.belwue.de ([129.143.71.86]:35420 "EHLO smtp01.belwue.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726691AbfGFUnq (ORCPT ); Sat, 6 Jul 2019 16:43:46 -0400 Received: from fex.rus.uni-stuttgart.de (fex.rus.uni-stuttgart.de [129.69.1.129]) by smtp01.belwue.de (Postfix) with SMTP id 24CC29F23 for ; Sat, 6 Jul 2019 22:43:43 +0200 (MEST) Date: Sat, 6 Jul 2019 22:43:39 +0200 From: Ulli Horlacher To: linux-btrfs@vger.kernel.org Subject: Re: find snapshot parent? Message-ID: <20190706204339.GB13656@tik.uni-stuttgart.de> Mail-Followup-To: linux-btrfs@vger.kernel.org References: <20190706155353.GA13656@tik.uni-stuttgart.de> <1e70c50e-54d7-0507-60ad-9c486e3517a9@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1e70c50e-54d7-0507-60ad-9c486e3517a9@suse.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-06 (19:57), Nikolay Borisov wrote: > > And how can I see whether /test/tmp/xx/ss1 is a snapshot at all? > > Do all snapshots have a "Parent UUID" and regular subvolumes not? > > Indeed, only snapshots have a Parent UUID. Not all: root@xerus:/test# btrfs subvolume snapshot -r /test /test/ss1 Create a readonly snapshot of '/test' in '/test/ss1' root@xerus:/test# btrfs subvolume show /test/ss1 /test/ss1 Name: ss1 UUID: 02bd07bc-0bab-3442-96be-40790e1ba9be Parent UUID: - Received UUID: - Creation time: 2019-07-06 22:37:37 +0200 Subvolume ID: 1036 Generation: 9824 Gen at creation: 9824 Parent ID: 5 Top level ID: 5 Flags: readonly Snapshot(s): root@xerus:/test# btrfs subvolume show /test /test is toplevel subvolume -- 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:<1e70c50e-54d7-0507-60ad-9c486e3517a9@suse.com>