*/
static bool vfs_default_durable_reconnect_check_stat(
struct vfs_default_durable_stat *cookie_st,
- SMB_STRUCT_STAT *fsp_st,
- const char *name)
+ struct files_struct *fsp)
{
+ SMB_STRUCT_STAT *fsp_st = &fsp->fsp_name->st;
int ret;
if (cookie_st->st_ex_mode != fsp_st->st_ex_mode) {
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_mode",
(unsigned long long)cookie_st->st_ex_mode,
(unsigned long long)fsp_st->st_ex_mode));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_nlink",
(unsigned long long)cookie_st->st_ex_nlink,
(unsigned long long)fsp_st->st_ex_nlink));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_uid",
(unsigned long long)cookie_st->st_ex_uid,
(unsigned long long)fsp_st->st_ex_uid));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_gid",
(unsigned long long)cookie_st->st_ex_gid,
(unsigned long long)fsp_st->st_ex_gid));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_rdev",
(unsigned long long)cookie_st->st_ex_rdev,
(unsigned long long)fsp_st->st_ex_rdev));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_size",
(unsigned long long)cookie_st->st_ex_size,
(unsigned long long)fsp_st->st_ex_size));
"stat_ex.%s differs: "
"cookie:'%s' != stat:'%s', "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_atime",
timeval_string(talloc_tos(), &tc, true),
timeval_string(talloc_tos(), &ts, true)));
"stat_ex.%s differs: "
"cookie:'%s' != stat:'%s', "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_mtime",
timeval_string(talloc_tos(), &tc, true),
timeval_string(talloc_tos(), &ts, true)));
"stat_ex.%s differs: "
"cookie:'%s' != stat:'%s', "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_ctime",
timeval_string(talloc_tos(), &tc, true),
timeval_string(talloc_tos(), &ts, true)));
"stat_ex.%s differs: "
"cookie:'%s' != stat:'%s', "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_btime",
timeval_string(talloc_tos(), &tc, true),
timeval_string(talloc_tos(), &ts, true)));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_calculated_birthtime",
(unsigned long long)cookie_st->st_ex_iflags,
(unsigned long long)fsp_st->st_ex_iflags));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_blksize",
(unsigned long long)cookie_st->st_ex_blksize,
(unsigned long long)fsp_st->st_ex_blksize));
"stat_ex.%s differs: "
"cookie:%llu != stat:%llu, "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_blocks",
(unsigned long long)cookie_st->st_ex_blocks,
(unsigned long long)fsp_st->st_ex_blocks));
"stat_ex.%s differs: "
"cookie:%"PRIu32" != stat:%"PRIu32", "
"denying durable reconnect\n",
- name,
+ fsp_str_dbg(fsp),
"st_ex_flags",
cookie_st->st_ex_flags,
fsp_st->st_ex_flags);
(void)fdos_mode(fsp);
ok = vfs_default_durable_reconnect_check_stat(&state->cookie.stat_info,
- &fsp->fsp_name->st,
- fsp_str_dbg(fsp));
+ fsp);
if (!ok) {
state->status = NT_STATUS_OBJECT_NAME_NOT_FOUND;
goto fail;