Skip to content

Commit

Permalink
Merge pull request #7036 from xiexingguo/xxg-wip-kvstore
Browse files Browse the repository at this point in the history
KeyValueStore: fix return code of mkfs

Reviewed-by: David Zafman <dzafman@redhat.com>
  • Loading branch information
dzafman committed Dec 23, 2015
2 parents 9bb9b85 + a069ea9 commit 14933e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/KeyValueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ int KeyValueStore::mkfs()
goto close_fsid_fd;
}
if (::fsync(fsid_fd) < 0) {
ret = errno;
ret = -errno;
derr << "mkfs: close failed: can't write fsid: "
<< cpp_strerror(ret) << dendl;
goto close_fsid_fd;
Expand Down

0 comments on commit 14933e7

Please sign in to comment.