#include <bm_zms.h>
Gets the length of the data that is stored in an entry with a given id
- Parameters
-
| fs | Pointer to the file system. |
| id | ID of the entry whose data length to retrieve. |
- Returns
- Data length contained in the ATE. On success, it will be equal to the number of bytes in the ATE. On error, returns negative value of error codes defined in
errno.h.
- Return values
-
| Length | of the entry with the given id (> 0) on success. |
| -EFAULT | if fs is NULL. |
| -EACCES | if BM_ZMS is still not initialized. |
| -EIO | if there is a memory read/write error. |
| -ENOENT | if there is no entry with the given id and history counter. |