Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: fix error handling of posix_fallocate() #10277

Merged
merged 2 commits into from Jul 19, 2016

Commits on Jul 13, 2016

  1. os/bluestore: fix error handling of posix_fallocate()

    According to Linux man page:
    
    posix_fallocate() returns zero on success, or an error number on failure.
    Note that errno is not set.
    
    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Jul 13, 2016
    Copy the full SHA
    38c4286 View commit details
    Browse the repository at this point in the history
  2. os/bluestore: count length of SPDK_PREFIX in a more human-readable way

    The strlen() will automatically exclude the NUL terminator of a literal
    constant. Also by calling strlen(), we know that we are definitely
    operate on a string instead of something odd.
    
    Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
    xiexingguo committed Jul 13, 2016
    Copy the full SHA
    de59926 View commit details
    Browse the repository at this point in the history