You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation has the dir attribute in the storage/volume section of the config file. However, the dir field is always relative to the environment variable ZENOH_BACKEND_FS_ROOT (or ZENOH_HOME based on some complicated rules).
It seems like it would be more consistent and user friendly if the storage configuration could be completely self contained in the config file. This could be accomplished by allowing the dir attribute to be an absolute path or by adding another attribute to the config file possibly at the storage_manager level for the backend root location.
The text was updated successfully, but these errors were encountered:
Hello @mschuckmann
My understanding is that by default ZENOH_BACKEND_FS_ROOT=${ZENOH_HOME}/zenoh-backend-filesystem. The same logic applies to all backends. This behavior aligns with CLI and database tools that limit their actions to their home directory by default. If you wish to use an absolute path for your database file, you can set ZENOH_BACKEND_FS_ROOT=/ before running your zenoh instance, which will effectively interpret the dir as an absolute path.
@Charles-Schleich could you please confirm if we plan on implementing a different behavior for database file paths?
It just seems really odd that this is the only thing that is not configurable from a zenoh configuration file.
I'm also not sure about the concept of limiting it to the home directory. I would expect that many deployments would run the zenohd process as a service and have a user with no home directory. Yes the service could set ZENOH_BACKEND_FS_ROOT=/ but why not allow the configuration to be completely self-contained in the configuration file?
Describe the feature
The current implementation has the
dir
attribute in thestorage/volume
section of the config file. However, thedir
field is always relative to the environment variableZENOH_BACKEND_FS_ROOT
(orZENOH_HOME
based on some complicated rules).It seems like it would be more consistent and user friendly if the storage configuration could be completely self contained in the config file. This could be accomplished by allowing the
dir
attribute to be an absolute path or by adding another attribute to the config file possibly at thestorage_manager
level for the backend root location.The text was updated successfully, but these errors were encountered: