marsadm: create initial versionlink upon create-resource

This commit is contained in:
Thomas Schoebel-Theuer 2013-06-05 10:05:15 +02:00
parent 2fee24fe49
commit eec86bf1af
1 changed files with 1 additions and 0 deletions

View File

@ -933,6 +933,7 @@ sub create_res {
set_link($size, "$resdir/syncstatus-$host"); set_link($size, "$resdir/syncstatus-$host");
set_link("log-000000001-$host,0,0", "$resdir/replay-$host"); set_link("log-000000001-$host,0,0", "$resdir/replay-$host");
system("touch $resdir/log-000000001-$host"); system("touch $resdir/log-000000001-$host");
set_link("00000000000000000000000000000000,log-000000001-$host,0:", "$resdir/version-000000001-$host");
finish_links(); finish_links();
lprint "successfully created resource '$res'\n"; lprint "successfully created resource '$res'\n";
} else { } else {