This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_FS_MGMT_MAX_OFFSET_LEN

(No prompt – not directly user assignable.)

Type: int

Help

Maximal byte length of encoded offset/size, within transferred
CBOR frame containing chunk of downloaded file.
This value affects how much of data will fit into download buffer,
as it selects sizes of fields within headers.
NOTE: This option is hidden intentionally as it is intended
to be assigned from limited set of allowed values, depending on
the selection made in FS_MGMT_MAX_FILE_SIZE menu.

Direct dependencies

MCUMGR_CMD_FS_MGMT && MCUMGR

(Includes any dependencies from ifs and menus.)

Kconfig definition

At subsys/mgmt/mcumgr/Kconfig:70

Included via Kconfig:8Kconfig.zephyr:42subsys/Kconfig:35subsys/mgmt/Kconfig:9

Menu path: (Top) → Sub Systems and OS Services → Device Management → mcumgr Support → Command Handlers → Enable mcumgr handlers for file management (insecure)

config FS_MGMT_MAX_OFFSET_LEN
    int
    default 3 if FS_MGMT_MAX_FILE_SIZE_64KB
    default 5 if FS_MGMT_MAX_FILE_SIZE_4GB
    depends on MCUMGR_CMD_FS_MGMT && MCUMGR
    help
      Maximal byte length of encoded offset/size, within transferred
      CBOR frame containing chunk of downloaded file.
      This value affects how much of data will fit into download buffer,
      as it selects sizes of fields within headers.
      NOTE: This option is hidden intentionally as it is intended
      to be assigned from limited set of allowed values, depending on
      the selection made in FS_MGMT_MAX_FILE_SIZE menu.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)