]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rbd-nbd: fix a typo "moudle"
authorPan Liu <pan.liu@istuary.com>
Sun, 26 Feb 2017 04:14:15 +0000 (12:14 +0800)
committerPan Liu <pan.liu@istuary.com>
Sun, 26 Feb 2017 04:14:15 +0000 (12:14 +0800)
Signed-off-by: Pan Liu <liupan1111@gmail.com>
src/tools/rbd_nbd/rbd-nbd.cc

index 6567e3e7236bc2f6030bfa7a1bde63e3434f4ba0..89a86b3cec24ce6a85db26c973cfa64f7bc0d072 100644 (file)
@@ -449,10 +449,10 @@ public:
   }
 };
 
-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) {