Hi btrfs team I'm the developer of "btrbk" [1], which uses btrfs send/receive to create backups. In case of errors, "btrfs receive" leaves the partially received subvolume behind, causing some trouble for subsequent incremental backups. As I can see in the wiki, "Delete partially received subvolumes on error" is on the TODO list. Until then, what would be the best way to check if the received subvolume needs to be deleted? As "btrfs receive" does always return an exit value of "1" on errors, I cannot rely on this (e.g. if a file with the received name already exists, I also get an exit code=1, but then I do NOT want to delete anything). Also, "btrfs subvolume show <partially-received-subvol>" does not complain either. Do you have any hints on how I can check for this? (and no, parsing stderr messages is not an option) Thanks in advance, - Axel [1] https://www.digint.ch/btrbk/ https://github.com/digint/btrbk -- 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
