ceph connection #881
-
I need to read the ceph configuration file and then link ceph. Currently I know only two methods, ReadDefaultConfigFile() and ReadConfigFile(). Is there any other way to read.
I wonder if the following code would help
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi there, So, it's not clear to me what you are really trying to do. The library provides three ways to configure the underlying ceph libraries. The functions for reading configuration files (ReadDefaultConfigFile, ReadConfigFile as you know), then the functions for parsing command line options (ParseConfigArgv, ParseCmdLineArgs which you asked about) and then there's SetConfigOption which is the most simple and direct way to set an individual configuration option via code. If you need more details than I've shared here you'll have to elaborate more on what you are trying to accomplish. Thanks! |
Beta Was this translation helpful? Give feedback.
Hi there,
Unfortunately your statements appear somewhat contradictory to me. You start off by asking for methods to read the ceph configuration file and then imply the two functions to perform that action are somehow not suitable for that purpose. Then you ask if the functions for reading ceph command line arguments are suitable.
So, it's not clear to me what you are really trying to do. The library provides three ways to configure the underlying ceph li…