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

rbd-nbd: fix up return code handling #7215

Merged
merged 3 commits into from
Jan 13, 2016
Merged

Commits on Jan 13, 2016

  1. rbd-nbd: returned length equal requested only for read and write

    On success aio_discard returns 0.
    
    Signed-off-by: Mykola Golub <mgolub@mirantis.com>
    Mykola Golub committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    3ff60a6 View commit details
    Browse the repository at this point in the history
  2. rbd-nbd: correctly set exit status if map command failed

    - parent_wait() returns child exit status so test for "!= 0";
    - do_map() is expected to return a negative value on failure.
    
    Signed-off-by: Mykola Golub <mgolub@mirantis.com>
    Mykola Golub committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    299288c View commit details
    Browse the repository at this point in the history
  3. tests: improve rbd-nbd tests

    - cleanup on a test failure;
    - minimize interference with other processes (tests) that are
      run concurrently;
    - use xmlstarlet when parsing rbd output;
    - add exit status test.
    
    Signed-off-by: Mykola Golub <mgolub@mirantis.com>
    Mykola Golub committed Jan 13, 2016
    Configuration menu
    Copy the full SHA
    cf56490 View commit details
    Browse the repository at this point in the history