]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/FileStore: refactor backend instantiation
authorSage Weil <sage@inktank.com>
Sat, 19 Apr 2014 15:47:11 +0000 (08:47 -0700)
committerSage Weil <sage@inktank.com>
Fri, 23 May 2014 18:47:16 +0000 (11:47 -0700)
commit9312c5ea03b926ae786703a5d83563246d3c262e
tree57aca70572f82a73c54f41588986d38c26e8f5fc
parent3cf723c53e6e482bad02b366f5c946a14e3466c3
os/FileStore: refactor backend instantiation

Use a factory method for creating the backend so that the logic is not
duplicated in mkfs() and _detect_fs().  Make the other fs-dependent logic
(xattr limits) key off of the fs_type magic.

Signed-off-by: Sage Weil <sage@inktank.com>
src/os/BtrfsFileStoreBackend.h
src/os/FileStore.cc
src/os/FileStore.h
src/os/GenericFileStoreBackend.h
src/os/XfsFileStoreBackend.h