log symlink creation

This commit is contained in:
Thomas Schoebel-Theuer 2012-01-24 10:28:47 +01:00 committed by Thomas Schoebel-Theuer
parent a32b4a9e7a
commit fd0309fee9
1 changed files with 6 additions and 0 deletions

View File

@ -3406,7 +3406,13 @@ void _make_alivelink(const char *name, loff_t val)
{
char *src = path_make("%lld", val);
char *dst = path_make("/mars/%s-%s", name, my_id());
if (!src || !dst) {
MARS_ERR("cannot make symlink paths\n");
goto err;
}
MARS_DBG("'%s' -> '%s'", src, dst);
mars_symlink(src, dst, NULL, 0);
err:
brick_string_free(dst);
brick_string_free(src);
}