]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf29849ecc863807f79229efba80e7875388a6abc
treea237a3054cd667520b22e4bf27009a1f36e79160
parentddf4a0ad5b5c085e81509a7ae04a8845465a8e86
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