mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3: smbd/durable: remove dev and inode check from vfs_default_durable_reconnect_check_stat()
On a cluster filesystem the device numbers may differ on the cluster nodes. We already verify the file_id in vfs_default_durable_reconnect(), so we can safely remove the dev/inode checks. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13318 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3430c9c3c2
commit
0a91ade527
@ -302,30 +302,6 @@ static bool vfs_default_durable_reconnect_check_stat(
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (cookie_st->st_ex_dev != fsp_st->st_ex_dev) {
|
||||
DEBUG(1, ("vfs_default_durable_reconnect (%s): "
|
||||
"stat_ex.%s differs: "
|
||||
"cookie:%llu != stat:%llu, "
|
||||
"denying durable reconnect\n",
|
||||
name,
|
||||
"st_ex_dev",
|
||||
(unsigned long long)cookie_st->st_ex_dev,
|
||||
(unsigned long long)fsp_st->st_ex_dev));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cookie_st->st_ex_ino != fsp_st->st_ex_ino) {
|
||||
DEBUG(1, ("vfs_default_durable_reconnect (%s): "
|
||||
"stat_ex.%s differs: "
|
||||
"cookie:%llu != stat:%llu, "
|
||||
"denying durable reconnect\n",
|
||||
name,
|
||||
"st_ex_ino",
|
||||
(unsigned long long)cookie_st->st_ex_ino,
|
||||
(unsigned long long)fsp_st->st_ex_ino));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (cookie_st->st_ex_mode != fsp_st->st_ex_mode) {
|
||||
DEBUG(1, ("vfs_default_durable_reconnect (%s): "
|
||||
"stat_ex.%s differs: "
|
||||
|
Loading…
Reference in New Issue
Block a user