]> git.ipfire.org Git - thirdparty/linux.git/commit - fs/cifs/smb2pdu.h
Query File System Alignment
authorSteven French <smfrench@gmail.com>
Thu, 10 Oct 2013 01:55:53 +0000 (20:55 -0500)
committerSteve French <smfrench@gmail.com>
Sat, 2 Nov 2013 17:52:41 +0000 (12:52 -0500)
commitaf6a12ea8d4bb39a87527835b943bde4215897e5
treea237a3054cd667520b22e4bf27009a1f36e79160
parent2167114c6ea6e76fd84e368bae5389d37dd156aa
Query File System Alignment

In SMB3 it is now possible to query the file system
alignment info, and the preferred (for performance)
sector size and whether the underlying disk
has no seek penalty (like SSD).

Query this information at mount time for SMB3,
and make it visible in /proc/fs/cifs/DebugData
for debugging purposes.

This alignment information and preferred sector
size info will be helpful for the copy offload
patches to setup the right chunks in the CopyChunk
requests.   Presumably the knowledge that the
underlying disk is SSD could also help us
make better readahead and writebehind
decisions (something to look at in the future).

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/smb2ops.c
fs/cifs/smb2pdu.c
fs/cifs/smb2pdu.h