In past few months, we have developed functionality to share requirements and
configs of share-source and a way to upgrade repository from old format to
share-safe format using debugupgraderepo command.
However there is still no way to upgrade the shares as debugupgraderepo does
not support upgrading that.
Having share-safe rolled out in existing setup is quite important and hence we
need a way to upgrade existing shares once share-source upgrades.
This patch introduces a new debug command debugsharesafe which can be used to
upgrade or downgrade shares.
Functionality to upgrade shares to use the new method is the last thing left in
the whole work.