Dropped LFS3_YES_* variants of traversal/gc flags
Previously these only implied M/F flags, which risks quite a bit of confusion. It's entirely reasonable to expect these to affect lfs3_fs_gc (arguably the more correct behavior?) but they did not. Maybe these should imply the GC behavior, or maybe we should rename them to LFS3_YES_GC_*/LFS3_YES_M_*/etc, but at the very least the current behavior of implying M/F is probably not a good idea. So, removing for now. This is the safest option, and better thought-out behavior can be added in the future.
This commit is contained in:
-11
@@ -86,9 +86,6 @@
|
||||
#ifdef LFS3_YES_GBMAP
|
||||
#define LFS3_GBMAP
|
||||
#endif
|
||||
#ifdef LFS3_YES_PREERASE
|
||||
#define LFS3_PREERASE
|
||||
#endif
|
||||
#ifdef LFS3_YES_BLEAFCACHE
|
||||
#define LFS3_BLEAFCACHE
|
||||
#endif
|
||||
@@ -331,14 +328,6 @@
|
||||
#define LFS3_IFDEF_PREERASE(a, b) (b)
|
||||
#endif
|
||||
|
||||
#if defined(LFS3_PREERASE) && defined(LFS3_YES_PREERASE)
|
||||
#define LFS3_IFYES_PREERASE(a, b, c) (a)
|
||||
#elif defined(LFS3_PREERASE)
|
||||
#define LFS3_IFYES_PREERASE(a, b, c) (b)
|
||||
#else
|
||||
#define LFS3_IFYES_PREERASE(a, b, c) (c)
|
||||
#endif
|
||||
|
||||
#ifdef LFS3_BLEAFCACHE
|
||||
#define LFS3_IFDEF_BLEAFCACHE(a, b) (a)
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user