Skip to content

Commit

Permalink
Merge pull request ceph#7601 from jjhuo/master
Browse files Browse the repository at this point in the history
os/bluestore: fix a typo in SPDK path parsing

Reviewed-by: Haomai Wang <[email protected]>
  • Loading branch information
yuyuyu101 committed Feb 11, 2016
2 parents 0148eac + 40936fb commit 765c759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ int BlueStore::_setup_block_symlink_or_file(
<< " size " << size << " create=" << (int)create << dendl;
int r = 0;
if (epath.length()) {
if (!epath.compare(0, sizeof(SPDK_PREFIX-1), SPDK_PREFIX)) {
if (!epath.compare(0, sizeof(SPDK_PREFIX)-1, SPDK_PREFIX)) {
string symbol_spdk_file = path + "/" + epath;
r = ::symlinkat(symbol_spdk_file.c_str(), path_fd, name.c_str());
if (r < 0) {
Expand Down

0 comments on commit 765c759

Please sign in to comment.