Skip to content

Commit

Permalink
Merge pull request #13652 from liupan1111/wip-cleanup-rbd-nbd
Browse files Browse the repository at this point in the history
rbd-nbd: fix a typo "moudle"

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
  • Loading branch information
liewegas committed Feb 26, 2017
2 parents 477ddea + 5cc7771 commit da06227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/rbd_nbd/rbd-nbd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,10 @@ class NBDWatchCtx : public librbd::UpdateWatchCtx
}
};

static int open_device(const char* path, bool try_load_moudle = false)
static int open_device(const char* path, bool try_load_module = false)
{
int nbd = open(path, O_RDWR);
if (nbd < 0 && try_load_moudle && access("/sys/module/nbd", F_OK) != 0) {
if (nbd < 0 && try_load_module && access("/sys/module/nbd", F_OK) != 0) {
ostringstream param;
int r;
if (nbds_max) {
Expand Down

0 comments on commit da06227

Please sign in to comment.