void *private_data)
{
struct cleanup_disconnected_state *state = private_data;
- struct share_mode_data *d = state->lck->data;
bool disconnected;
disconnected = server_id_is_disconnected(&e->pid);
DBG_INFO("file (file-id='%s', servicepath='%s', name='%s') "
"is used by server %s ==> do not cleanup\n",
file_id_str_buf(state->fid, &tmp1),
- d->servicepath,
+ share_mode_servicepath(state->lck),
name,
server_id_str_buf(e->pid, &tmp2));
TALLOC_FREE(name);
"has share_file_id %"PRIu64" but expected "
"%"PRIu64"==> do not cleanup\n",
file_id_str_buf(state->fid, &tmp),
- d->servicepath,
+ share_mode_servicepath(state->lck),
name,
e->share_file_id,
state->open_persistent_id);
void *private_data)
{
struct cleanup_disconnected_state *state = private_data;
- struct share_mode_data *d = state->lck->data;
bool disconnected;
DBG_ERR("file (file-id='%s', servicepath='%s', name='%s') "
"is used by server %s ==> internal error\n",
file_id_str_buf(state->fid, &tmp1),
- d->servicepath,
+ share_mode_servicepath(state->lck),
name,
server_id_str_buf(e->pid, &tmp2));
TALLOC_FREE(name);
.fid = fid,
.open_persistent_id = open_persistent_id
};
- struct share_mode_data *data;
bool ret = false;
TALLOC_CTX *frame = talloc_stackframe();
char *name = NULL;
goto done;
}
name = share_mode_filename(frame, state.lck);
- data = state.lck->data;
ok = share_mode_forall_entries(
state.lck, share_mode_find_connected_fn, &state);
"name='%s') and open_persistent_id %"PRIu64" "
"==> do not cleanup\n",
file_id_str_buf(fid, &idbuf),
- data->servicepath,
+ share_mode_servicepath(state.lck),
name,
open_persistent_id);
goto done;
"name='%s') and open_persistent_id %"PRIu64" "
"==> do not cleanup\n",
file_id_str_buf(fid, &idbuf),
- data->servicepath,
+ share_mode_servicepath(state.lck),
name,
open_persistent_id);
goto done;
"from open_persistent_id %"PRIu64"\n",
state.num_disconnected,
file_id_str_buf(fid, &idbuf),
- data->servicepath,
+ share_mode_servicepath(state.lck),
name,
open_persistent_id);
"==> do not cleanup\n",
state.num_disconnected,
file_id_str_buf(fid, &idbuf),
- data->servicepath,
+ share_mode_servicepath(state.lck),
name,
open_persistent_id);
goto done;