How can I test if a subvolume is a snapshot?
Example:
/test/.snapshot/2017-09-08_1037.single is a snapshot (of /test)
/test/data is a regular subvolume
I know this, because I have created them with suitable names :-)
But how can I see/test it?
root@fex:~/bin# btrfs subvol show /test/.snapshot/2017-09-08_1037.single
/test/.snapshot/2017-09-08_1037.single
Name: 2017-09-08_1037.single
UUID: eff1cebb-b885-6b47-ae69-36a7c3f266eb
Parent UUID: -
Received UUID: -
Creation time: 2017-09-08 10:37:04 +0200
Subvolume ID: 354
Generation: 237
Gen at creation: 237
Parent ID: 5
Top level ID: 5
Flags: readonly
Snapshot(s):
root@fex:~/bin# btrfs subvol show /test/data
/test/data
Name: data
UUID: b32a5949-dfd6-ef45-8616-34ae4cdf6fb8
Parent UUID: -
Received UUID: -
Creation time: 2017-09-06 18:30:33 +0200
Subvolume ID: 257
Generation: 224
Gen at creation: 8
Parent ID: 5
Top level ID: 5
Flags: -
root@fex:~/bin# btrfs subvol show /test
/test is toplevel subvolume
--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
REF:<20170908085446.GA7876@xxxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html