diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2017-01-18 04:39:35 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2017-02-10 05:05:23 -0500 |
commit | 7373cf518f4d4c47f49693690c2ab8ec29bb8510 (patch) | |
tree | 0a3c025749be24561e952078e83c5f2e8b838900 /firmware/common/dir.c | |
parent | abd75a17d18c0779b59f64a612f9226b62af5823 (diff) | |
download | rockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.tar.gz rockbox-7373cf518f4d4c47f49693690c2ab8ec29bb8510.zip |
Restore dircache hookup in the database ramcache.
Do a few other changes to dircache and file code flags to
accomodate its demands.
Change-Id: I4742a54e8cfbe4d8b9cffb75faaf920dd907cf8a
Diffstat (limited to 'firmware/common/dir.c')
-rw-r--r-- | firmware/common/dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/common/dir.c b/firmware/common/dir.c index 59f7bd747a..f89129ae34 100644 --- a/firmware/common/dir.c +++ b/firmware/common/dir.c | |||
@@ -311,7 +311,8 @@ int mkdir(const char *path) | |||
311 | 311 | ||
312 | struct filestr_base stream; | 312 | struct filestr_base stream; |
313 | struct path_component_info compinfo; | 313 | struct path_component_info compinfo; |
314 | rc = open_stream_internal(path, FF_DIR, &stream, &compinfo); | 314 | rc = open_stream_internal(path, FF_DIR | FF_PARENTINFO, &stream, |
315 | &compinfo); | ||
315 | if (rc < 0) | 316 | if (rc < 0) |
316 | { | 317 | { |
317 | DEBUGF("Can't open parent dir or path is not a directory\n"); | 318 | DEBUGF("Can't open parent dir or path is not a directory\n"); |