// Copy snapshot to target.
- const int proto = std::min({
- Uname::supported_proto(),
- the_big_things.source_btrfs_version.supported_proto(),
- the_big_things.target_btrfs_version.supported_proto()
- });
+ const int proto = the_big_things.proto();
TheBigThings::const_iterator it1 = the_big_things.find_send_parent(*this);
// Copy snapshot to target.
- const int proto = std::min({
- Uname::supported_proto(),
- the_big_things.source_btrfs_version.supported_proto(),
- the_big_things.target_btrfs_version.supported_proto()
- });
+ const int proto = the_big_things.proto();
TheBigThings::const_iterator it1 = the_big_things.find_restore_parent(*this);
}
+ int
+ TheBigThings::proto()
+ {
+ return std::min({
+ Uname::supported_proto(),
+ source_btrfs_version.supported_proto(),
+ target_btrfs_version.supported_proto()
+ });
+ }
+
+
bool
operator<(const TheBigThing& lhs, const TheBigThing& rhs)
{