Zephyr API Documentation  3.7.0
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
12#ifdef __cplusplus
13extern "C" {
14#endif
15
19#define FS_MGMT_ID_FILE 0
20#define FS_MGMT_ID_STAT 1
21#define FS_MGMT_ID_HASH_CHECKSUM 2
22#define FS_MGMT_ID_SUPPORTED_HASH_CHECKSUM 3
23#define FS_MGMT_ID_OPENED_FILE 4
24
31
34
37
40
43
46
49
52
55
58
61
70
73
76
79
82
85};
86
87#ifdef __cplusplus
88}
89#endif
90
91#endif
fs_mgmt_err_code_t
Command result codes for file system management group.
Definition: fs_mgmt.h:28
@ FS_MGMT_ERR_FILE_OPEN_FAILED
Error occurred whilst attempting to open a file.
Definition: fs_mgmt.h:45
@ FS_MGMT_ERR_FILE_WRITE_FAILED
Error occurred whilst attempting to write data to a file.
Definition: fs_mgmt.h:60
@ FS_MGMT_ERR_FILE_EMPTY
The operation cannot be performed because the file is empty with no contents.
Definition: fs_mgmt.h:84
@ FS_MGMT_ERR_FILE_IS_DIRECTORY
The specified file is a directory, not a file.
Definition: fs_mgmt.h:42
@ FS_MGMT_ERR_FILE_INVALID_NAME
The specified file name is not valid.
Definition: fs_mgmt.h:36
@ FS_MGMT_ERR_FILE_NOT_FOUND
The specified file does not exist.
Definition: fs_mgmt.h:39
@ FS_MGMT_ERR_OK
No error, this is implied if there is no ret value in the response.
Definition: fs_mgmt.h:30
@ 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:75
@ FS_MGMT_ERR_FILE_DELETE_FAILED
Error occurred whilst trying to delete file.
Definition: fs_mgmt.h:57
@ FS_MGMT_ERR_FILE_SEEK_FAILED
Error occurred whilst attempting to seek to an offset in a file.
Definition: fs_mgmt.h:48
@ 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:72
@ FS_MGMT_ERR_READ_ONLY_FILESYSTEM
The specified mount point is that of a read-only filesystem.
Definition: fs_mgmt.h:81
@ FS_MGMT_ERR_MOUNT_POINT_NOT_FOUND
The specified mount point was not found or is not mounted.
Definition: fs_mgmt.h:78
@ FS_MGMT_ERR_FILE_READ_FAILED
Error occurred whilst attempting to read data from a file.
Definition: fs_mgmt.h:51
@ 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:69
@ FS_MGMT_ERR_FILE_TRUNCATE_FAILED
Error occurred whilst trying to truncate file.
Definition: fs_mgmt.h:54
@ FS_MGMT_ERR_UNKNOWN
Unknown error occurred.
Definition: fs_mgmt.h:33