Michael Adam
beb9a27180
s3:smbd:smb2: fix setting of scavenge timeout when reconnecting durable handles
...
The bug fixed with this commit led to reconnected durable handles
having a disconnect timeout of 0 msec. This fix re-establishes the
original timeout for the reconnected handle.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Michael Adam <obnox@samba.org>
2013-04-18 13:15:10 +02:00
Volker Lendecke
cc0b8351a4
smbd: Convert create_file_unixpath to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
940ad94906
smbd: Convert is_visible_file to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
59cfbc7925
smbd: Convert dptr_create to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
d70de0776b
smbd: Convert set_create_timespec_ea to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
fb211c39db
smbd: Convert unix_mode to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
af40d236ea
smbd: Convert rmdir_internals to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
f5873c987c
smbd: Convert recursive_rmdir to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
39470c8056
smbd: Convert delete_all_streams to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
421eeef732
smbd: Convert open_streams_for_delete to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
66beff7dd0
smbd: Convert msg_file_was_renamed to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
39c5a77b0a
smbd: Convert change_dir_owner_to_parent to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
d003f2ff80
smbd: Convert change_dir_owner_to_parent to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
c9a220bdaf
smbd: Convert change_file_owner_to_parent to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
81e9c0102d
smbd: Convert make_connection_snum to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
10d8d7d0bd
smbd: Convert rename_internals_fsp to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
862c561ffc
smbd: Convert remove_msdfs_link to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
576df87428
smbd: Convert create_msdfs_link to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
01b8f34e49
smbd: Convert can_delete_file_in_directory to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
e3a7f70768
smbd: Convert file_new to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
2d76ce3fc0
smbd: Convert open_dir_with_privilege to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
fe79862131
smbd: Convert open_np_file to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
fa3f2fd83b
smbd: Convert smb_file_rename_information to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:01 -07:00
Volker Lendecke
419dd4f844
smbd: Convert smb_file_rename_information to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
9cf8d693de
smbd: Convert smb2_file_rename_information to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
381bd97f13
smbd: Convert smb_set_file_dosmode to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
edb7293020
smbd: Convert call_trans2qfilepathinfo to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
aa523408b4
smbd: Convert posix_sys_acl_blob_get_file to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
1dc29208f3
pysmbd: Convert py_smbd_unlink to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
204d971d89
pysmbd: Convert set_nt_acl_conn to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
1675bf379c
smbd: Convert filename_convert_internal to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
0b147201bd
smbd: Convert vfs_lstat_smb_fname to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
9041f3d6d3
smbd: Convert vfs_stat_smb_fname to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
bde53d8c5b
smbd: Convert check_reduced_name_with_privilege to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
e0866753ce
smbd: Convert vfs_GetWd to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:00 -07:00
Volker Lendecke
75911f94b8
smbd: Convert vfs_default_durable_reconnect to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:59 -07:00
Volker Lendecke
b8dd1749e3
smbd: Convert call_trans2setfilepathinfo to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:57 -07:00
Volker Lendecke
9a42fe2d6d
smbd: Convert smb_set_file_unix_basic to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:57 -07:00
Volker Lendecke
82bf92d08a
smbd: Convert smb_set_file_size to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:57 -07:00
Volker Lendecke
e2e45bd9cd
smbd: Convert call_trans2qfilepathinfo to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:57 -07:00
Volker Lendecke
0831de71e7
smbd: Convert fsp_set_smb_fname to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:57 -07:00
Volker Lendecke
1f39074b83
smbd: Convert copy_file to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:56 -07:00
Volker Lendecke
a062fb813e
smbd: Convert rename_internals_fsp to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:56 -07:00
Volker Lendecke
10f45a16b2
smbd: Convert smbd_dirptr_get_entry to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:56 -07:00
Volker Lendecke
988a341d25
smbd: Convert smbd_smb2_close to cp_smb_filename
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:49:56 -07:00
Jeremy Allison
f340795144
Cleanup. Remove unused function dptr_DirCacheAdd(). Make DirCacheAdd() static.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Tue Apr 16 12:05:13 CEST 2013 on sn-devel-104
2013-04-16 12:05:13 +02:00
Volker Lendecke
0f9eb25183
smbd: Fix an error return in change_dir_owner_to_parent
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Autobuild-User(master): Richard Sharpe <sharpe@samba.org>
Autobuild-Date(master): Mon Apr 15 18:05:06 CEST 2013 on sn-devel-104
2013-04-15 18:05:06 +02:00
Jeremy Allison
0fe894fb89
Remove the "Ugly hack" that was the second use of dirfd().
...
The destructor does all the resource deallocation needed.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-04-12 14:33:40 +02:00
Jeremy Allison
ea14c94431
In the struct smb_Dir destructor, use the fsp back pointer to release resources.
...
Removes one use of dirfd().
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-04-12 14:33:11 +02:00
Jeremy Allison
e89ec641fc
Maintain a back-pointer to the fsp in struct smb_Dir when opening with FDOPENDIR.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2013-04-12 14:29:51 +02:00