diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-08 17:14:10 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-01-17 14:35:36 -0500 |
commit | a931c76b3a46d1884e985a3bfc82b947521dab97 (patch) | |
tree | 1141cf9a9a8c123bde3d76d147ee1e910c7c6045 /firmware/include/fileobj_mgr.h | |
parent | 0056ea8a256af0e2daaf451af43c00708a31d4df (diff) | |
download | rockbox-a931c76b3a46d1884e985a3bfc82b947521dab97.tar.gz rockbox-a931c76b3a46d1884e985a3bfc82b947521dab97.zip |
Do some debug and preparatory work for ramcache and playlist
The file system rework introduced incompatibility between dircache
and the tagcache ramcache and playlist dircache path caching. This
update makes changes to filesystem code to reintegrate all that.
It also fixes a couple bugs that were found when vetting all the
code. The filestream cache was being reset without regard to
the stream even if it was shared in write mode (made work of
.playlist_control). Better handling of unmounting gives files a
better go at force-closing them without risk to disk integrity.
Did some miscellaneous pedantic changes. Improved efficiency of
testing a file's existence (a little) since the path parser will
be shared between file code and parsing for the sake of finding
dircache references, not duplicated as before.
This commit doesn't reenable said items just for the sake of
keeping changes separate and related.
Plan for the next is to enable dircache again for the playlists
(easy peasy) and reenable tagcache ramcache but *without* the
dircache path caching because it's rather substantial to change
in itself. The ramcache will still function without dircache.
Change-Id: I7e2a9910b866251fa8333e1275f72fcfc8425d2d
Diffstat (limited to 'firmware/include/fileobj_mgr.h')
-rw-r--r-- | firmware/include/fileobj_mgr.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/include/fileobj_mgr.h b/firmware/include/fileobj_mgr.h index c90a59bea0..627d2df341 100644 --- a/firmware/include/fileobj_mgr.h +++ b/firmware/include/fileobj_mgr.h | |||
@@ -41,12 +41,11 @@ void fileobj_fileop_rename(struct filestr_base *stream, | |||
41 | void fileobj_fileop_remove(struct filestr_base *stream, | 41 | void fileobj_fileop_remove(struct filestr_base *stream, |
42 | const struct file_base_info *oldinfop); | 42 | const struct file_base_info *oldinfop); |
43 | void fileobj_fileop_sync(struct filestr_base *stream); | 43 | void fileobj_fileop_sync(struct filestr_base *stream); |
44 | void fileobj_fileop_truncate(struct filestr_base *stream); | ||
45 | extern void ftruncate_internal_callback(struct filestr_base *stream, | ||
46 | struct filestr_base *s); | ||
47 | 44 | ||
48 | file_size_t * fileobj_get_sizep(const struct filestr_base *stream); | 45 | file_size_t * fileobj_get_sizep(const struct filestr_base *stream); |
49 | unsigned int fileobj_get_flags(const struct filestr_base *stream); | 46 | unsigned int fileobj_get_flags(const struct filestr_base *stream); |
47 | struct filestr_base * fileobj_get_next_stream(const struct filestr_base *stream, | ||
48 | const struct filestr_base *s); | ||
50 | void fileobj_change_flags(struct filestr_base *stream, | 49 | void fileobj_change_flags(struct filestr_base *stream, |
51 | unsigned int flags, unsigned int mask); | 50 | unsigned int flags, unsigned int mask); |
52 | void fileobj_mgr_unmount(IF_MV_NONVOID(int volume)); | 51 | void fileobj_mgr_unmount(IF_MV_NONVOID(int volume)); |