linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs-send -c fails: reproduction case
@ 2016-04-16 20:08 Zachary Vance
  2016-04-17  3:37 ` Duncan
  0 siblings, 1 reply; 2+ messages in thread
From: Zachary Vance @ 2016-04-16 20:08 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 2592 bytes --]

Reproduction case after running into the same problem as Paride Legovini: http://article.gmane.org/gmane.comp.file-systems.btrfs/48706/match=send

To recap, the basic problem is that you can get into a state where "btrfs-send -c" fails for a subvolume, with "ERROR: parent determination failed for 9622".

I'm pretty sure this isn't the intended behavior, and it's certainly preventing me from copying my backups right now. If someone could confirm on a **completely** fresh system I'd appreciate it.

[root@burn ~]# sudo btrfs sub create m
Create subvolume './m'
[root@burn ~]# sudo btrfs sub create m/a
Create subvolume 'm/a'
[root@burn ~]# sudo btrfs sub create m/b
Create subvolume 'm/b'
[root@burn ~]# sudo btrfs sub snapshot m/a -r a
Create a readonly snapshot of 'm/a' in './a'
[root@burn ~]# sudo btrfs sub snapshot m/b -r b
Create a readonly snapshot of 'm/b' in './b'
[root@burn ~]# sudo btrfs sub delete m/a
Delete subvolume (no-commit): '/root/m/a'
[root@burn ~]# sudo btrfs sub delete m/b
Delete subvolume (no-commit): '/root/m/b'
[root@burn ~]# sudo btrfs sub delete m
Delete subvolume (no-commit): '/root/m'
[root@burn ~]# sudo btrfs send -c a b >/dev/null
At subvol b
ERROR: parent determination failed for 9622

[root@burn ~]# sudo btrfs subvolume show a
/root/a
        Name:                   a
        UUID:                   c86cbbb0-9dea-cf43-809d-637c57dc7e65
        Parent UUID:            bbad9a60-b418-3b46-93f5-84b8ac62adf6
        Received UUID:          -
        Creation time:          2016-02-19 08:31:47 -0800
        Subvolume ID:           9622
        Generation:             18121
        Gen at creation:        18121
        Parent ID:              5
        Top level ID:           5
        Flags:                  readonly
        Snapshot(s):

[root@burn ~]# sudo btrfs subvolume show b
/root/b
        Name:                   b
        UUID:                   bb9256c1-4fb4-ee4e-b072-0ee570521d06
        Parent UUID:            c5890f1a-94f0-ac48-a69d-656f8e0b7fc6
        Received UUID:          -
        Creation time:          2016-02-19 08:31:49 -0800
        Subvolume ID:           9623
        Generation:             18122
        Gen at creation:        18122
        Parent ID:              5
        Top level ID:           5
        Flags:                  readonly
        Snapshot(s):

[root@burn ~]# btrfs --version
btrfs-progs v4.4.1

[root@burn ~]# uname -a
Linux burn 4.5.0-1-ARCH #1 SMP PREEMPT Tue Mar 15 09:41:03 CET 2016 x86_64 GNU/Linux

---
Zachary Vance


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-17  3:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-16 20:08 btrfs-send -c fails: reproduction case Zachary Vance
2016-04-17  3:37 ` Duncan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).