Nathaniel Wesley Filardo
72d15ab6c7
fs_open: return EROFS for non-RO opens
...
The use of EACCES leads to slightly confusing error messages in
downstream consumers, so prefer EROFS to better articulate what's
actually happening.
While here, use O_RDWR to mask the open flags while testing for
non-RO access. This is at least encouraged by POSIX with their
suggestion that "O_RDONLY | O_WRONLY == O_RDWR".
2022-06-28 15:00:48 +01:00
Fufu Fang
6819ad09e4
removed unnecessary includes
2021-09-03 21:23:52 +01:00
Fufu Fang
5e87ac92b0
Change error handling in cache.c, Updated Changelog.md
2021-08-31 18:49:49 +01:00
Fufu Fang
f42264d3c3
Added single file mode
...
Implemented feature request
https://github.com/fangfufu/httpdirfs/issues/86
2021-08-31 13:52:25 +01:00
Fufu Fang
e02042cade
improved logging
2021-08-31 11:50:59 +01:00
Fufu Fang
45d8cb8136
changed indentation style
2021-08-31 11:18:39 +01:00
Fufu Fang
f791ceb308
shortened error log format, changed indentation style
2021-08-31 11:15:00 +01:00
Fufu Fang
0f3cc61875
relabelled all log outputs
2021-08-30 11:24:32 +01:00
Fufu Fang
5f86703f17
janatorial changes
2021-08-08 15:50:35 +01:00
Hristo Iliev
e553463dc4
Patches to build on macOS
2021-05-27 21:49:51 +03:00
Fufu Fang
f3d5ffc3fc
now cache works on subsonic server
2019-10-24 02:15:05 +01:00
Fufu Fang
b7c63f4418
renamed MemoryStruct to DataStruct, removed spurious link type detection logic
2019-10-22 20:26:21 +01:00
Fufu Fang
0892cd0a8a
changed header inclusion order
2019-04-24 04:28:54 +01:00
Fufu Fang
3a0c431bba
Stability improvement
...
Metadata corruption still occasionally happens when it gets read in.
I suspect it is due to some sort of race condition.
2019-04-24 04:28:54 +01:00
Fufu Fang
fb8a132c14
added a mutex lock for closing cache dataset
2019-04-24 04:28:54 +01:00
Fufu Fang
36ddbe9ec5
fixed bug in fs_open(), now handles cache dataset creation properly
2019-04-24 04:28:46 +01:00
Fufu Fang
6536163f98
improve cached dataset creation process, better error handling
2019-04-24 04:28:46 +01:00
Fufu Fang
ac61ddd1c0
stability improvement, hopefully got rid off SIGFPE
2019-04-24 04:28:46 +01:00
Fufu Fang
e166098162
updated README, also moved some status message around
2019-04-24 04:28:46 +01:00
Fufu Fang
e2d2b0dd28
Cache system has been succesfully implemented
2019-04-24 04:28:27 +01:00
Fufu Fang
692ad3f00c
Cache dataset creation is working, time write the function to fill in the cache
2019-04-24 04:27:40 +01:00
Fufu Fang
b6bdf15ad1
removed a bunch of function prototypes
2019-04-24 04:27:38 +01:00
Fufu Fang
77bb715590
fixed memory leak in link table creation
2019-04-24 04:21:38 +01:00
Fufu Fang
5af3def3f8
Linked in CacheSystem_init, Cache_open, Cache_close
2019-04-24 04:21:38 +01:00
Fufu Fang
e9e41165ae
added CacheDir_create() and fs_release()
2019-04-24 04:21:38 +01:00
Jerome Charaoui
f6f50c7cdf
Move source files in src/
2019-04-24 04:21:10 +01:00