summaryrefslogtreecommitdiffstats
path: root/doc/legacy/handling-options.txt
blob: 9a3b2510acb5a42124bf2890bd5e69c0d4852982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

How to add a new option to a given volume ?
===========================================

* Add a entry in 'struct volume_options options[]' with your key, what is
  the type of the 'key', etc.

* The 'key' and corresponding 'value' given for the same by user are validated
  before calling init() of the translator/transport/scheduler/auth-module.

* Once the complete init() is successful, user will get a warning if he has
  given a 'key' which is not defined in these modules.