From: Jianpeng Ma Date: Tue, 16 Feb 2016 15:33:25 +0000 (+0800) Subject: os/bluestore: Only enable bluestore_bluefs, symlink or create db or db.wal. X-Git-Tag: v10.1.0~310^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dbfee62430442ed0a5499599e2d7cd3e0ff58a90;p=ceph.git os/bluestore: Only enable bluestore_bluefs, symlink or create db or db.wal. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index d35cd44156cc..d52be76251be 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -1711,16 +1711,18 @@ int BlueStore::mkfs() g_conf->bluestore_block_create); if (r < 0) goto out_close_fsid; - r = _setup_block_symlink_or_file("block.wal", g_conf->bluestore_block_wal_path, - g_conf->bluestore_block_wal_size, - g_conf->bluestore_block_wal_create); - if (r < 0) - goto out_close_fsid; - r = _setup_block_symlink_or_file("block.db", g_conf->bluestore_block_db_path, - g_conf->bluestore_block_db_size, - g_conf->bluestore_block_db_create); - if (r < 0) - goto out_close_fsid; + if (g_conf->bluestore_bluefs) { + r = _setup_block_symlink_or_file("block.wal", g_conf->bluestore_block_wal_path, + g_conf->bluestore_block_wal_size, + g_conf->bluestore_block_wal_create); + if (r < 0) + goto out_close_fsid; + r = _setup_block_symlink_or_file("block.db", g_conf->bluestore_block_db_path, + g_conf->bluestore_block_db_size, + g_conf->bluestore_block_db_create); + if (r < 0) + goto out_close_fsid; + } r = _open_bdev(true); if (r < 0)