summaryrefslogtreecommitdiff
path: root/include/fs.h
AgeCommit message (Collapse)Author
2017-01-19license: Replace Apache boilerplate with SPDX tagDavid B. Kinder
Replace the existing Apache 2.0 boilerplate header with an SPDX tag throughout the zephyr code tree. This patch was generated via a script run over the master branch. Also updated doc/porting/application.rst that had a dependency on line numbers in a literal include. Manually updated subsys/logging/sys_log.c that had a malformed header in the original file. Also cleanup several cases that already had a SPDX tag and we either got a duplicate or missed updating. Jira: ZEP-1457 Change-Id: I6131a1d4ee0e58f5b938300c2d2fc77d2e69572c Signed-off-by: David B. Kinder <david.b.kinder@intel.com> Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2016-10-31fs: Make API naming adhere to the appropriate namespaceJohan Hedberg
The namespace allocated for the filesystem API is fs_* and FS_*. That means all symbols and defines should adhere to it. Jira: ZEP-1155 Change-Id: I422310448b7c7c347f621aea6d7b1d97ef25c94d Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2016-10-04fs: Fixes some type incompatibilities flagged by llvmRamesh Thomas
Change-Id: I37df470ace779b9654f8b10e50ec83d9f629c965 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-09-23fs: Add file system API to flush cache of an open fileRamesh Thomas
This API flushes the cached data of an open file to the storage media. This can be called after writes to avoid data loss if power is removed unexpectedly. Jira: ZEP-767 Change-Id: I0f99f2f34126aa8e6a43f69c7a1b6d903937de11 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-09-23fs: Adds file system API to get volume statisticsRamesh Thomas
Adds API to return volume statistics. This is similar to fstatvfs() POSIX function but limited to total size, free space, allocation unit size and optimal transfer block size. Jira: ZEP-636 Change-Id: Ie9e7367b9164277875860c2d0e8de883b2fca07a Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-09-23fs: Adds file system API to grow or shrink a fileRamesh Thomas
Adds fs_truncate() function which can be used to change the size of a file. The name is counter intuitive but that is how the POSIX version is named. It shrinks as well as grows a file. Jira: ZEP-635 ZEP-622 Change-Id: If7b8cad17e1b80479a529c60a32c12fb134cd456 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-08-05doc: Fixes a typo in the file system documentationRamesh Thomas
SEE_CUR -> SEEK_CUR Change-Id: I62bba618bb942489e01e66e01d5f4806122a4e21 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-08-05doc: Add file system documentationRamesh Thomas
Adds documentation of file system APIs Jira: ZEP-643 Change-Id: Ieac14a3dcf4913aeba6da2d3dc718eaa09b6cd88 Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>
2016-08-01fs: Add Zephyr File System APIRamesh Thomas
Adds the header files containing Zephyr File System API descriptions and interfaces. Origin: Original Jira: ZEP-228 ZEP-480 Change-Id: I76a000187a133df7a82329af78aec9ea6511915c Signed-off-by: Ramesh Thomas <ramesh.thomas@intel.com>