[PATCH] FS_SECTOR_SIZE_INFORMATION and FSCTL_FILE_LEVEL_TRIM

Steve French smfrench at gmail.com
Sat Mar 14 11:30:44 MDT 2015


This looks very interesting - am intrigued also about how the client
end might look, wondering how I might expose them in cifs.ko for end
to end, Linux to Linux

On Fri, Mar 13, 2015 at 10:02 AM, David Disseldorp <ddiss at suse.de> wrote:
> This patch-set adds client and server support for the query-info
> FS_SECTOR_SIZE_INFORMATION level. This info level provides sector
> alignment information for an underlying share volume, as well as
> NO_SEEK_PENALTY and TRIM_ENABLED flags useful for SSD /
> thin-provisioned storage detection.
>
> Additional changes are included to provide basic FSCTL_FILE_LEVEL_TRIM
> testing. The test is dependent on the TRIM_ENABLED query-info flag,
> otherwise it's skipped.
>
> Feedback appreciated.
>
> Cheers, David
>
> --
>
> The following changes since commit 07330d248bd3feb3c9748174dac407fca592638e:
>
>   replace: Remove superfluous check for gcrypt header. (2015-03-13 01:00:27 +0100)
>
> are available in the git repository at:
>
>   git://git.samba.org/ddiss/samba.git sector_size_info_trim
>
> for you to fetch changes up to cb764c7759a6aea4360bcfea3e181726d011b920:
>
>   torture/ioctl: add simple FSCTL_FILE_LEVEL_TRIM test (2015-03-13 15:25:42 +0100)
>
> ----------------------------------------------------------------
> David Disseldorp (7):
>       smbd/trans2: function scope qfsinfo bytes_per_sector
>       s3/smbd: support FS_SECTOR_SIZE_INFORMATION query-info
>       s4/client: add FS_SECTOR_SIZE_INFORMATION query support
>       s4/ntvfs: support FS_SECTOR_SIZE_INFORMATION query-info
>       torture: test FS_SECTOR_SIZE_INFORMATION queries
>       idl: FSCTL_FILE_LEVEL_TRIM request & response structs
>       torture/ioctl: add simple FSCTL_FILE_LEVEL_TRIM test
>
>  librpc/idl/ioctl.idl              |  21 +++++
>  source3/include/trans2.h          |   9 ++
>  source3/smbd/trans2.c             |  38 ++++++--
>  source4/client/client.c           |  17 ++++
>  source4/libcli/raw/interfaces.h   |  20 ++++-
>  source4/libcli/raw/rawfsinfo.c    |  21 +++++
>  source4/libcli/raw/trans2.h       |   8 ++
>  source4/ntvfs/ntvfs_generic.c     |  16 ++++
>  source4/ntvfs/posix/pvfs_fsinfo.c |  15 ++++
>  source4/smb_server/blob.c         |  20 +++++
>  source4/torture/smb2/getinfo.c    |   3 +-
>  source4/torture/smb2/ioctl.c      | 140 ++++++++++++++++++++++++++++++
>  12 files changed, 320 insertions(+), 8 deletions(-)



-- 
Thanks,

Steve


More information about the samba-technical mailing list