Hi all,

I've encountered a bug in btrfs-receive. When receiving a certain
incremental send, it will error with:

    ERROR: cannot open
backup/detritus/root/root.20160524T1800/var/log/journal/9cbb44cf160f4c1089f77e32ed376a0b/user-1000.journal:
No such file or directory

even though that path exists and the parent subvolume is identical on
both ends (I checked manually).

I've noticed this happen before on the same directory (and google
confirms it has also happened to others) and /var/log/journal/ and its
children are the only directories with 'chattr +C' on this system, so
it might be related to that?

This was reported on IRC a week or so ago and Josef requested a tree
--inode of the file/the dirs leading to it and the incremental send,
so here you go:


send side:
    /mnt
        [    256]  btrfs_pool_ssd

    /mnt/btrfs_pool_ssd
        [    256]  backup

    /mnt/btrfs_pool_ssd/backup
        [    256]  root

    /mnt/btrfs_pool_ssd/backup/root
        [    256]  root.20160524T1800
        [    256]  root.20160524T1900

    /mnt/btrfs_pool_ssd/backup/root/root.20160524T1800
        [    268]  var

    /mnt/btrfs_pool_ssd/backup/root/root.20160524T1800/var
        [   9035]  log

    /mnt/btrfs_pool_ssd/backup/root/root.20160524T1800/var/log
        [35122105]  journal

    /mnt/btrfs_pool_ssd/backup/root/root.20160524T1800/var/log/journal
        [35122136]  9cbb44cf160f4c1089f77e32ed376a0b

    
/mnt/btrfs_pool_ssd/backup/root/root.20160524T1800/var/log/journal/9cbb44cf160f4c1089f77e32ed376a0b
        [53198460]  user-1000.journal


receive side:
    /backup
        [    256]  detritus

    /backup/detritus
        [    256]  root

    /backup/detritus/root
        [    256]  root.20160524T1800

    /backup/detritus/root/root.20160524T1800
        [    267]  var

    /backup/detritus/root/root.20160524T1800/var
        [    856]  log

    /backup/detritus/root/root.20160524T1800/var/log
        [ 316157]  journal

    /backup/detritus/root/root.20160524T1800/var/log/journal
        [ 316158]  9cbb44cf160f4c1089f77e32ed376a0b

    
/backup/detritus/root/root.20160524T1800/var/log/journal/9cbb44cf160f4c1089f77e32ed376a0b
        [ 738979]  user-1000.journal

both trimmed down to only the relevant path.

I don't know how the ML handles attachments, so incremental send
stream (with --no-data) is here:
http://dev.exherbo.org/~moben/send-receive_incremental.stream

Let me know if you need anything else or if I misunderstood the tree
thing. (I _think_ I can also provide the with-data send, but I'd like
to take a look at that first ;) )


Cheers
Benedikt
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to