]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: Fix spacing in UpdateWatchCtx 30532/head
authorMike Christie <mchristi@redhat.com>
Mon, 15 Jul 2019 05:49:55 +0000 (14:49 +0900)
committerMike Christie <mchristi@redhat.com>
Tue, 24 Sep 2019 20:41:21 +0000 (15:41 -0500)
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>
(cherry picked from commit ca3fad1af31638fdda5dbe847ca6bdc55755d73b)

src/tools/rbd_nbd/rbd-nbd.cc

index 6708790a23eb9b813daaa595ea55ddc6b271e993..ea36ba8b3584874d2c0707a59b9c0cc3188065d3 100644 (file)
@@ -508,8 +508,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 {
@@ -526,7 +526,7 @@ public:
                << dendl;
         }
         if (image.invalidate_cache() < 0)
-            derr << "invalidate rbd cache failed" << dendl;
+          derr << "invalidate rbd cache failed" << dendl;
       }
     }
   }