]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-nbd: 'id' instead of 'pid' as column name in list-mapped output 19704/head
authorMykola Golub <mgolub@suse.com>
Wed, 27 Dec 2017 19:10:10 +0000 (21:10 +0200)
committerMykola Golub <mgolub@suse.com>
Wed, 3 Jan 2018 12:44:10 +0000 (14:44 +0200)
(to make output look similar to krbd)

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd_nbd/rbd-nbd.cc

index 647cbb1de722a6e16a868cbaf1f6c49a95b17b2e..777d5447f36110be2981a1b5f7a74a5d4978747d 100644 (file)
@@ -960,7 +960,7 @@ static int do_list_mapped_devices(const std::string &format, bool pretty_format)
   if (f) {
     f->open_array_section("devices");
   } else {
-    tbl.define_column("pid", TextTable::LEFT, TextTable::LEFT);
+    tbl.define_column("id", TextTable::LEFT, TextTable::LEFT);
     tbl.define_column("pool", TextTable::LEFT, TextTable::LEFT);
     tbl.define_column("image", TextTable::LEFT, TextTable::LEFT);
     tbl.define_column("snap", TextTable::LEFT, TextTable::LEFT);