]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
FileStore: Add filestore version stamp
authorSamuel Just <samuel.just@dreamhost.com>
Wed, 17 Aug 2011 23:23:00 +0000 (16:23 -0700)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 30 Aug 2011 00:43:06 +0000 (17:43 -0700)
commit341fb208aa32117f58ed4ce623f4b152f64ac72e
tree88fc2ab506fca8e420eeaf7d0c9fe78dbfad8aed
parente23e1924dc3f036173b64fc7e09fb3f750f53a27
FileStore: Add filestore version stamp

A filestore will now be tagged with a version stamp during
mkfs.  If on mount the version stamp detected lags the current
version, the mount will fail unless filestore_update_collections
is set in gconf.  If it is set, opening a collection will cause
the version stamp on the collection to be read and the
appropriate indexing implmentation to be used.  This will allow
for conversion from old collection indexing schemes to new
ones.

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/common/config.cc
src/common/config.h
src/os/CollectionIndex.h
src/os/FileStore.cc
src/os/FileStore.h
src/os/FlatIndex.h
src/os/LFNIndex.h
src/os/ObjectStore.h