]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: Fix spacing in UpdateWatchCtx 29036/head
authorMike Christie <mchristi@redhat.com>
Mon, 15 Jul 2019 05:49:55 +0000 (14:49 +0900)
committerJason Dillaman <dillaman@redhat.com>
Tue, 23 Jul 2019 17:23:42 +0000 (13:23 -0400)
UpdateWatchCtx used a mix of 2 spaces and 4 spaces. This fixes the
function to use 2 spaces which is used in the rest of the file.

Signed-off-by: Mike Christie <mchristi@redhat.com>
src/tools/rbd_nbd/rbd-nbd.cc

index 85a51bbd2da0d64a7b1a47d38c1d379abf1cf6e1..7164d097dcf1a2fb2b2c79381ef4c288f8bba63e 100644 (file)
@@ -509,8 +509,8 @@ public:
       if (new_size != size) {
         dout(5) << "resize detected" << dendl;
         if (ioctl(fd, BLKFLSBUF, NULL) < 0)
-            derr << "invalidate page cache failed: " << cpp_strerror(errno)
-                 << dendl;
+          derr << "invalidate page cache failed: " << cpp_strerror(errno)
+               << dendl;
        if (use_netlink) {
          ret = netlink_resize(nbd_index, new_size);
        } else {
@@ -527,7 +527,7 @@ public:
                << dendl;
         }
         if (image.invalidate_cache() < 0)
-            derr << "invalidate rbd cache failed" << dendl;
+          derr << "invalidate rbd cache failed" << dendl;
       }
     }
   }