-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I've installed openSUSE Leap 42.2 with root on btrfs. Now I'm unable to synchronize this volume with snapsync, because the first snapshot on the volume is the active root I'm working on:
/dev/sdb3 / btrfs rw,noatime,ssd,discard,space_cache,subvolid=259,subvol=/@/.snapshots/1/snapshot 0 0
If snapshots enumeration code would check the snapshot flags and only return the readonly ones, it would work for me too.
Output of btrfs subvolume show for the first snapshot:
# btrfs subvolume show /.snapshots/1/snapshot/ /.snapshots/1/snapshot Name: snapshot UUID: 70852390-2dd8-7d4c-9d14-b7f2950b710e Parent UUID: 58124ad5-d42e-f242-bf2a-75ea472b560a Received UUID: - Creation time: 2017-01-05 21:55:21 +0100 ... Flags: - Snapshot(s): @/.snapshots/20/snapshot @/.snapshots/209/snapshot
Output of btrfs subvolume show for the first readonly snapshot (20):
# btrfs subvolume show /.snapshots/20/snapshot/ /.snapshots/20/snapshot Name: snapshot UUID: f7ff685f-2406-1747-bc07-acad29716e39 Parent UUID: 70852390-2dd8-7d4c-9d14-b7f2950b710e Received UUID: - Creation time: 2017-01-06 21:37:48 +0100 ... Flags: readonly Snapshot(s):