Peter Andersson
c1c0f5e91c
Merge pull request #38 from jmattsson/fix_gc_quick_test
Fix qc_quick test. (Thanks #jmattsson et al)
9 years ago
Johny Mattsson
d0c8a60a2d
Fix qc_quick test.
Remove assumption SPIFFS_OBJ_LOOKUP_PAGES(FS) is always an even number.
This assumption can be invalid when there is a smaller number of pages
per block.
9 years ago
Peter Andersson
a51e5b2e00
Add SPIFFS_EXCL #36
9 years ago
Peter Andersson
8f566cfa65
SPIFFS_close may fail silently if cache is enabled #37
Changed function void SPIFFS_close to s32_t SPIFFS_close, now with return code.
Also sneaked in a forgotten file for User data in callbacks #34
9 years ago
Peter Andersson
8444681afb
removed old forgotten unused placeholder from API
9 years ago
Peter Andersson
88996e3e05
User data in callbacks #34
Added config SPIFFS_HAL_CALLBACK_EXTRA. Enabling will change prototypes for
spiffs_read, spiffs_write, spiffs_erase, spiffs_check_callback functions,
adding pointer to the spiffs struct as first parameter.
Also added a field void *user_data in spiffs struct.
9 years ago
Peter Andersson
b061a04ef0
Ignoring SINGLETON build in cache setup (thanks Luca)
9 years ago
Peter Andersson
bfe75c4844
compilation error #32 (thanks #chotasanjiv)
9 years ago
Peter Andersson
4afdbe760f
Merge pull request #29 from hefloryd/upstream
align cand_scores
9 years ago
Peter Andersson
4796974291
Merge pull request #30 from ajaybhargav/master
Fix build warnings when SPIFFS_CACHE set to 0
9 years ago
Ajay Bhargav
389510fd24
Fix build warnings when SPIFFS_CACHE set to 0
When SPIFFS_CACHE is defined as 0 there are warnings during build
for unused variables and unused static functions. This patch fix those
build warnings.
Signed-off-by: Ajay Bhargav <bhargav.ajay@gmail.com>
9 years ago
Ajay Bhargav
55f131c6fd
Trivial: Fix spelling mistake for SPIFFS_CACHE
There is an empty ifdef in src/spiffs.h where SPIFFS_CACHE is
misspelled as SPIFFS_CHACHE.
Signed-off-by: Ajay Bhargav <bhargav.ajay@gmail.com>
9 years ago
Hans-Erik Floryd
7c5493732d
align cand_scores
align cand_scores to prevent data aborts on architectures with alignment
restrictions
9 years ago
Peter Andersson
7236147f63
Update readme for 0.3.2 again
9 years ago
Peter Andersson
4c46a0d6a0
Update readme for 0.3.2
9 years ago
Peter Andersson
79abcb89a2
Limit cache size if too much cache is given
9 years ago
Peter Andersson
ce78955a30
New feature - Controlled erase. #23
Added SPIFFS_gc_quick and SPIFFS_gc
9 years ago
Peter Andersson
b56da72e35
SPIFFS_rename leaks file descriptors #28
9 years ago
Peter Andersson
04315241ff
moved dbg print defines in test framework to params_test.h
9 years ago
Peter Andersson
ff9505d687
Merge branch 'master' of https://github.com/pellepl/spiffs
9 years ago
Peter Andersson
88b34340f0
Merge pull request #27 from hefloryd/master
lseek should return the resulting offset
9 years ago
Peter Andersson
cd9bb46904
fixed typo in dbg ifdefs
9 years ago
Hans-Erik Floryd
d032aaf881
lseek should return the resulting offset
Posix lseek returns the resulting offset
9 years ago
Peter Andersson
beb32b9b4b
Merge pull request #24 from benpicco/master
fix warning when spiffs_obj_id is 32 bit
10 years ago
Benjamin Valentin
26649c5a6f
silence warning about signed/unsigned comparision when spiffs_obj_id is 32 bit
SPIFFS_OBJ_ID_IX_FLAG should be the same type as spiffs_obj_id, but defaults to int
10 years ago
Peter Andersson
17f12cda64
Possible error in test_spiffs.c #21
10 years ago
Peter Andersson
1f6a6a683e
Cache might writethrough too often #16
10 years ago
Peter Andersson
59889c530d
even moar testrunner updates
10 years ago
Peter Andersson
00a81fbee3
Test framework update and some added tests
10 years ago
Peter Andersson
e92d1db58e
Some thoughts for next gen
10 years ago
Peter Andersson
88b5473bfe
Test sigsevs when having too many sectors #13
10 years ago
Peter Andersson
be4af57ceb
GC might be suboptimal #11
GC check more promiscuous
Early abort on crammed systems
Panic gc when full, ignoring erase count
Testcase added
10 years ago
Peter Andersson
5b1480bab2
Fix eternal readdir when obj header at last block, last entry
Bug in spiffs_obj_lu_find_entry_visitor where it wrapped even
if SPIFFS_VIS_NO_WRAP was set. Special case, if wrap needed at
function entry. This gave eternal readdir loop if there was an
object header at last block, in last entry
10 years ago
Peter Andersson
5f57130f93
Removed rwo return warnings, was to triggerhappy on release
10 years ago
Peter Andersson
617a1e68e1
readme update for 0.3.0
10 years ago
Peter Andersson
7ff48b074e
Spiffs filesystem magic, definable in config
Controlled in config by SPIFFS_USE_MAGIC, disabled by default
Initialization tests on all api functions, added functions
SPIFFS_format
SPIFFS_mounted
10 years ago
Peter Andersson
bce989eb57
Struct alignment needed for some targets, define in spiffs_config #10
Added config define SPIFFS_ALIGNED_OBJECT_INDEX_TABLES, default
disabled
10 years ago
Peter Andersson
23b5c941a5
gc check preempts gc, truncate even less picky
10 years ago
Peter Andersson
30bcf298fe
improved gc checks. fixed an append bug. more robust truncate for very special case.
10 years ago
Tobias Badertscher
7e11b462e6
Changed name in spiffs from "errno" to "err_code" due to conflicts compiling in mingw.
Added #defines toe spiffs.h in C++ code.
10 years ago
Peter Andersson
aab5cbf33d
made build a bit more configurable
10 years ago
Peter Andersson
be290fd329
added reading beyond file length testcase
10 years ago
Peter Andersson
01d60ae3aa
Merge pull request #7 from nodemcu/master
fix SPIFFS_read length when reading beyond file size
10 years ago
funshine
54aae1cd3b
fix SPIFFS_read length when reading beyond file size
10 years ago
Peter Andersson
75fc133d77
added rename func
10 years ago
Peter Andersson
056dff1ad9
Lots of static analysis bugs #6
10 years ago
Peter Andersson
0d6e707407
added existing namecheck when creating files
10 years ago
Peter Andersson
658cd67974
updated licence and version
10 years ago
Peter Andersson
f81638cbc6
added SPIFFS_open_by_dirent
10 years ago
Peter Andersson
ce684c5a9e
fixed some testcase bugs
10 years ago