06 Jan, 2017
1 commit
-
commit e3d240e9d505fc67f8f8735836df97a794bbd946 upstream.
If maxBuf is not 0 but less than a size of SMB2 lock structure
we can end up with a memory corruption.Signed-off-by: Pavel Shilovsky
Signed-off-by: Greg Kroah-Hartman
04 Nov, 2015
1 commit
-
Since many servers (Windows clients, and non-clustered servers) do not
support persistent handles but do support resilient handles, allow
the user to specify a mount option "resilienthandles" in order
to get more reliable connections and less chance of data loss
(at least when SMB2.1 or later). Default resilient handle
timeout (120 seconds to recent Windows server) is used.Reviewed-by: Pavel Shilovsky
Signed-off-by: Steve French
16 Apr, 2015
1 commit
-
that's the bulk of filesystem drivers dealing with inodes of their own
Signed-off-by: David Howells
Signed-off-by: Al Viro
11 Dec, 2014
1 commit
-
kcalloc manages count*sizeof overflow.
Signed-off-by: Fabian Frederick
Cc: Steve French
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Aug, 2014
1 commit
-
The existing code uses the old MAX_NAME constant. This causes
XFS test generic/013 to fail. Fix it by replacing MAX_NAME with
PATH_MAX that SMB1 uses. Also remove an unused MAX_NAME constant
definition.Cc: # v3.7+
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French
10 Sep, 2013
1 commit
-
and separate smb20_operations struct.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French
09 Sep, 2013
2 commits
-
that prepare the code to handle different types of SMB2 leases.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
that allows to access files through symlink created on a server.
Acked-by: Jeff Layton
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French
11 Jul, 2013
5 commits
-
On reconnects, we need to reopen file and then obtain all byte-range
locks held by the client. SMB2 protocol provides feature to make
this process atomic by reconnecting to the same file handle
with all it's byte-range locks. This patch adds this capability
for SMB2 shares.Signed-off-by: Pavel Shilovsky
Signed-off-by: Steven French -
to prepare it for further durable handle reconnect processing.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steven French -
and pass it to the open() call.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steven French -
by passing durable context together with a handle caching lease or
batch oplock.Signed-off-by: Pavel Shilovsky
Signed-off-by: Steven French -
and eliminated unused file_attribute parms of SMB2_open.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steven French
05 May, 2013
1 commit
-
It's not obvious from reading the macro names that these macros
are for debugging. Convert the names to a single more typical
kernel style cifs_dbg macro.cERROR(1, ...) -> cifs_dbg(VFS, ...)
cFYI(1, ...) -> cifs_dbg(FYI, ...)
cFYI(DBG2, ...) -> cifs_dbg(NOISY, ...)Move the terminating format newline from the macro to the call site.
Add CONFIG_CIFS_DEBUG function cifs_vfs_err to emit the
"CIFS VFS: " prefix for VFS messages.Size is reduced ~ 1% when CONFIG_CIFS_DEBUG is set (default y)
$ size fs/cifs/cifs.ko*
text data bss dec hex filename
265245 2525 132 267902 4167e fs/cifs/cifs.ko.new
268359 2525 132 271016 422a8 fs/cifs/cifs.ko.oldOther miscellaneous changes around these conversions:
o Miscellaneous typo fixes
o Add terminating \n's to almost all formats and remove them
from the macros to be more kernel style like. A few formats
previously had defective \n's
o Remove unnecessary OOM messages as kmalloc() calls dump_stack
o Coalesce formats to make grep easier,
added missing spaces when coalescing formats
o Use %s, __func__ instead of embedded function name
o Removed unnecessary "cifs: " prefixes
o Convert kzalloc with multiply to kcalloc
o Remove unused cifswarn macroSigned-off-by: Joe Perches
Signed-off-by: Jeff Layton
Signed-off-by: Steve French
06 Dec, 2012
1 commit
-
Reviewed-by: Jeff Layton
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French
25 Sep, 2012
7 commits
-
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
if server supports them and we need oplocks.
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
and allow several processes to walk through the lock list and read
can_cache_brlcks value if they are not going to modify them.Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
Signed-off-by: Pavel Shilovsky
-
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French -
Signed-off-by: Pavel Shilovsky
Signed-off-by: Steve French