]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Merge pull request #31589 from zhengchengyao/mv_snapshot
authorJason Dillaman <dillaman@redhat.com>
Fri, 6 Dec 2019 15:22:22 +0000 (10:22 -0500)
committerGitHub <noreply@github.com>
Fri, 6 Dec 2019 15:22:22 +0000 (10:22 -0500)
librbd:move all snapshot API functions in internal.cc over to api/Snapshot.cc

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
1  2 
src/librbd/internal.cc
src/librbd/librbd.cc

Simple merge
index fdd7c17d99e558200403a3edd2d82c9b45397285,cd4738b8b6762df54a75e81bfc8b0289a151a19e..0b8db4ff8b7957d17c2e061f596c6dd3cc3dcab7
@@@ -5152,10 -5148,9 +5152,10 @@@ extern "C" int rbd_snap_list(rbd_image_
      tracepoint(librbd, snap_list_exit, -EINVAL, 0);
      return -EINVAL;
    }
 +  // FIPS zeroization audit 20191117: this memset is not security related.
    memset(snaps, 0, sizeof(*snaps) * *max_snaps);
  
-   int r = librbd::snap_list(ictx, cpp_snaps);
+   int r = librbd::api::Snapshot<>::list(ictx, cpp_snaps);
    if (r == -ENOENT) {
      tracepoint(librbd, snap_list_exit, 0, *max_snaps);
      return 0;