forked from samba-team/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
s3/smbd: fix handling of delete-on-close on directories
This implements a check to test the delete-on-close flag of a directory for requests to create files in this directory. Windows server implement this check, Samba doesn't as it has performance implications. This commit implements the check and a new option to control it. By default the check is skipped, setting "check parent directory delete on close = yes" enables it. Signed-off-by: Ralph Boehme <[email protected]> Reviewed-by: Jeremy Allison <[email protected]> Autobuild-User(master): Ralph Böhme <[email protected]> Autobuild-Date(master): Sat Feb 3 23:42:16 CET 2018 on sn-devel-144
- Loading branch information
1 parent
4c857e0
commit 84f07a8
Showing
7 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
docs-xml/smbdotconf/tuning/checkparentdirectorydeleteonclose.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<samba:parameter name="check parent directory delete on close" | ||
context="S" | ||
type="boolean" | ||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> | ||
<description> | ||
<para>A Windows SMB server prevents the client from creating files in a | ||
directory that has the delete-on-close flag set. By default Samba doesn't | ||
perform this check as this check is a quite expensive operation in Samba. | ||
</para> | ||
</description> | ||
|
||
<value type="default">no</value> | ||
</samba:parameter> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters