Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
fs_mgmt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2018-2022 mcumgr authors
3 * Copyright (c) 2022 Laird Connectivity
4 * Copyright (c) 2022-2023 Nordic Semiconductor ASA
5 *
6 * SPDX-License-Identifier: Apache-2.0
7 */
8
9#ifndef H_FS_MGMT_
10#define H_FS_MGMT_
11
19#ifdef __cplusplus
20extern "C" {
21#endif
22
27#define FS_MGMT_ID_FILE 0
28#define FS_MGMT_ID_STAT 1
29#define FS_MGMT_ID_HASH_CHECKSUM 2
30#define FS_MGMT_ID_SUPPORTED_HASH_CHECKSUM 3
31#define FS_MGMT_ID_OPENED_FILE 4
97
98#ifdef __cplusplus
99}
100#endif
101
106#endif
fs_mgmt_err_code_t
Command result codes for file system management group.
Definition fs_mgmt.h:39
@ FS_MGMT_ERR_FILE_OPEN_FAILED
Error occurred whilst attempting to open a file.
Definition fs_mgmt.h:56
@ FS_MGMT_ERR_FILE_WRITE_FAILED
Error occurred whilst attempting to write data to a file.
Definition fs_mgmt.h:71
@ FS_MGMT_ERR_FILE_EMPTY
The operation cannot be performed because the file is empty with no contents.
Definition fs_mgmt.h:95
@ FS_MGMT_ERR_FILE_IS_DIRECTORY
The specified file is a directory, not a file.
Definition fs_mgmt.h:53
@ FS_MGMT_ERR_FILE_INVALID_NAME
The specified file name is not valid.
Definition fs_mgmt.h:47
@ FS_MGMT_ERR_FILE_NOT_FOUND
The specified file does not exist.
Definition fs_mgmt.h:50
@ FS_MGMT_ERR_OK
No error, this is implied if there is no ret value in the response.
Definition fs_mgmt.h:41
@ FS_MGMT_ERR_CHECKSUM_HASH_NOT_FOUND
The requested checksum or hash type was not found or is not supported by this build.
Definition fs_mgmt.h:86
@ FS_MGMT_ERR_FILE_DELETE_FAILED
Error occurred whilst trying to delete file.
Definition fs_mgmt.h:68
@ FS_MGMT_ERR_FILE_SEEK_FAILED
Error occurred whilst attempting to seek to an offset in a file.
Definition fs_mgmt.h:59
@ FS_MGMT_ERR_FILE_OFFSET_LARGER_THAN_FILE
The requested offset is larger than the size of the file on the device.
Definition fs_mgmt.h:83
@ FS_MGMT_ERR_READ_ONLY_FILESYSTEM
The specified mount point is that of a read-only filesystem.
Definition fs_mgmt.h:92
@ FS_MGMT_ERR_MOUNT_POINT_NOT_FOUND
The specified mount point was not found or is not mounted.
Definition fs_mgmt.h:89
@ FS_MGMT_ERR_FILE_READ_FAILED
Error occurred whilst attempting to read data from a file.
Definition fs_mgmt.h:62
@ FS_MGMT_ERR_FILE_OFFSET_NOT_VALID
The specified data offset is not valid, this could indicate that the file on the device has changed s...
Definition fs_mgmt.h:80
@ FS_MGMT_ERR_FILE_TRUNCATE_FAILED
Error occurred whilst trying to truncate file.
Definition fs_mgmt.h:65
@ FS_MGMT_ERR_UNKNOWN
Unknown error occurred.
Definition fs_mgmt.h:44