1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/examples
Ralph Boehme 8fa7848b4a vfs: Add flags and xferlen args to SMB_VFS_OFFLOAD_READ_RECV
We missed these values which follow from MS-FSCC 2.3.80 “FSCTL_OFFLOAD_READ
Reply”:

  Flags (4 bytes):

    A 32-bit unsigned integer that indicates which flags were returned for this
    operation. Possible values for the flags follow. All unused bits are reserved
    for future use, SHOULD be set to 0, and MUST be ignored.

    OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE (0x00000001)
    => The data beyond the current range is logically equivalent to zero.

  TransferLength (8 bytes):

    A 64-bit unsigned integer that contains the amount, in bytes, of data that the
    Token logically represents. This value indicates a contiguous region of the
    file from the beginning of the requested offset in the FileOffset field in the
    FSCTL_OFFLOAD_READ_INPUT data element (section 2.3.79). This value can be
    smaller than the CopyLength field specified in the FSCTL_OFFLOAD_READ_INPUT
    data element, which indicates that less data was logically
    represented (logically read) with the Token than was requested. The value of
    this field MUST be greater than 0x0000000000000000 and MUST be aligned to a
    logical sector boundary on the volume.

As we currently only implement COPY_CHUNK over the OFFLOAD VFS interface, the
VFS COPY_CHUNK backend in vfs_default just sets both values to 0 and they are
unused in the SMB frontend.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-10-08 19:28:32 +00:00
..
ad-bench tests: Use --configfile instead of -s 2021-04-28 03:43:34 +00:00
auth/crackcheck auth3: Remove auth_skel.c 2021-04-19 18:18:31 +00:00
autofs
dce-dfs Remove remaining references to "password level" in the tree 2013-06-11 16:25:54 +02:00
fuse examples: Migrate smb2mount to new cmdline option parser 2021-05-28 02:55:31 +00:00
LDAP OID: Reserve 1.3.6.1.4.1.7165.777.x for use on the wiki 2020-05-27 22:17:10 +00:00
libsmbclient Fix clang 9 missing-field-initializer warnings 2020-05-08 09:31:31 +00:00
logon PY3: change shebang to python3 in misc dirs 2018-12-14 18:00:40 +01:00
misc misc: fix AD trust attributes in adssearch 2019-09-20 01:14:42 +00:00
nss
pam_winbind pam_winbind: update documentation for "DIR" krb5ccname pragma. 2013-07-24 02:43:09 +02:00
pcap2nbench Fix typo for response 2018-05-12 02:09:25 +02:00
pdb lib: modules: Change XXX_init interface from XXX_init(void) to XXX_init(TALLOC_CTX *) 2017-04-22 01:17:00 +02:00
perfcounter examples/perfcounter/perf_writer.c: fix memset 2016-03-30 18:26:09 +02:00
printer-accounting
printing packaging: Move smbprint to a comman location. 2012-10-29 14:08:37 +01:00
scripts s3:script: Remove findsmb from default installation 2021-04-19 14:37:04 +00:00
systemtap examples: add cache effectiveness stats to gencache.stp 2017-08-11 14:19:24 +02:00
tridge Remove remaining references to "password level" in the tree 2013-06-11 16:25:54 +02:00
validchars
VFS vfs: Add flags and xferlen args to SMB_VFS_OFFLOAD_READ_RECV 2021-10-08 19:28:32 +00:00
winexe winexe: Some code cleanup and fixes 2021-06-20 23:26:32 +00:00
README docs: Point to wiki Contribute page rather than samba-technical 2020-06-12 22:11:43 +00:00
smb.conf.default examples/smb.conf.default: Fix typo in comment line: sever -> server 2016-04-09 02:35:23 +02:00

Copyright(C) Samba-Team 1993-2001

This directory contains example config files and related material for
Samba. 

At a minimum please refer to the smb.conf.default file for current
information regarding global and share parameter settings.

To contribute to Samba see: https://wiki.samba.org/index.php/Contribute