$ sudo apt-btrfs-snapshot snapshot; sudo apt-btrfs-snapshot snapshot
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@' in '/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@apt-snapshot-2016-01-04_09:55:08'
Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-vszwto5y/@' in '/tmp/apt-btrfs-snapshot-mp-vszwto5y/@apt-snapshot-2016-01-04_09:55:08/@'
Possible fix, not sure about name root_snapshot_dir though:
Creation of @ snapshot:
$ sudo apt-btrfs-snapshot snapshot; sudo apt-btrfs-snapshot snapshot btrfs-snapshot- mp-r4lbis5q/ @' in '/tmp/apt- btrfs-snapshot- mp-r4lbis5q/ @apt-snapshot- 2016-01- 04_09:55: 08' btrfs-snapshot- mp-vszwto5y/ @' in '/tmp/apt- btrfs-snapshot- mp-vszwto5y/ @apt-snapshot- 2016-01- 04_09:55: 08/@'
Create a snapshot of '/tmp/apt-
Create a snapshot of '/tmp/apt-
Possible fix, not sure about name root_snapshot_dir though:
$ diff /usr/lib/ python3/ dist-packages/ apt_btrfs_ snapshot. py.orig /usr/lib/ python3/ dist-packages/ apt_btrfs_ snapshot. py -u3 python3/ dist-packages/ apt_btrfs_ snapshot. py.orig 2016-01-04 09:48:53.632890479 -0500 python3/ dist-packages/ apt_btrfs_ snapshot. py 2016-01-04 09:53:30.168895671 -0500
--- /usr/lib/
+++ /usr/lib/
@@ -260,7 +260,15 @@
def delete_ snapshot( self, snapshot_name): btrfs_root_ volume( ) join(snapshot_ dir, "@") isdir(root_ snapshot_ dir): btrfs_delete_ snapshot( btrfs_delete_ snapshot(
self. umount_ btrfs_root_ volume( )
mp = self.mount_
+ snapshot_dir = os.path.join(mp, snapshot_name)
+ # Check for @ snapshot inside snapshot. Need to delete this
+ # snapshot first if exists
+ root_snapshot_dir = os.path.
+ if os.path.
+ res = self.commands.
+ root_snapshot_dir)
+
res = self.commands.
- os.path.join(mp, snapshot_name))
+ snapshot_dir)
return res
$ sudo apt-btrfs-snapshot delete @apt-snapshot- 2016-01- 04_09:55: 08 btrfs-snapshot- mp-4g4167i8/ @apt-snapshot- 2016-01- 04_09:55: 08/@' btrfs-snapshot- mp-4g4167i8/ @apt-snapshot- 2016-01- 04_09:55: 08'
Delete subvolume '/tmp/apt-
Delete subvolume '/tmp/apt-
Also create_ btrfs_root_ snapshot( ) could check for an existing snapshot and not create another one or add milliseconds to snapshot name.