mirror of https://github.com/digint/btrbk
btrbk: add comment on vinfo_child specific keys
parent
2d854c7327
commit
247cb37acf
11
btrbk
11
btrbk
|
@ -2862,6 +2862,10 @@ sub vinfo($$)
|
||||||
URL_PREFIX => $url_prefix, # ssh://hostname[:port] (or "" if local)
|
URL_PREFIX => $url_prefix, # ssh://hostname[:port] (or "" if local)
|
||||||
MACHINE_ID => $url_prefix || "LOCAL:", # unique: "LOCAL:" or hostname and port
|
MACHINE_ID => $url_prefix || "LOCAL:", # unique: "LOCAL:" or hostname and port
|
||||||
CONFIG => $config,
|
CONFIG => $config,
|
||||||
|
|
||||||
|
# These are added in vinfo_init_root
|
||||||
|
#NODE_SUBDIR => undef,
|
||||||
|
#VINFO_MOUNTPOINT => undef,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2885,10 +2889,13 @@ sub vinfo_child($$;$)
|
||||||
URL => "$parent->{URL}/$rel_path",
|
URL => "$parent->{URL}/$rel_path",
|
||||||
URL_PREFIX => $parent->{URL_PREFIX},
|
URL_PREFIX => $parent->{URL_PREFIX},
|
||||||
MACHINE_ID => $parent->{MACHINE_ID},
|
MACHINE_ID => $parent->{MACHINE_ID},
|
||||||
SUBVOL_PATH => $rel_path,
|
|
||||||
SUBVOL_DIR => $subvol_dir, # SUBVOL_PATH=SUBVOL_DIR/NAME
|
|
||||||
CONFIG => $config // $parent->{CONFIG},
|
CONFIG => $config // $parent->{CONFIG},
|
||||||
VINFO_MOUNTPOINT => $parent->{VINFO_MOUNTPOINT},
|
VINFO_MOUNTPOINT => $parent->{VINFO_MOUNTPOINT},
|
||||||
|
|
||||||
|
# NOTE: these are NOT present in non-child vinfo, and should be used
|
||||||
|
# only for printing and comparing results of vinfo_subvol_list.
|
||||||
|
SUBVOL_PATH => $rel_path,
|
||||||
|
SUBVOL_DIR => $subvol_dir, # SUBVOL_PATH=SUBVOL_DIR/NAME
|
||||||
};
|
};
|
||||||
|
|
||||||
# TRACE "vinfo_child: created from \"$parent->{PRINT}\": $info{PRINT}" if($do_trace);
|
# TRACE "vinfo_child: created from \"$parent->{PRINT}\": $info{PRINT}" if($do_trace);
|
||||||
|
|
Loading…
Reference in New Issue