]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
lirgw: call RGWLibFS::close in rgw_umount
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 19 Dec 2015 16:34:08 +0000 (11:34 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:06:59 +0000 (12:06 -0500)
Also remove an unused warning in currently-disabled rgw_readv.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index cbb07faad1feaa295b62bc95be2284e042bf2003..8527b98abcc4e7488f93f4cd35e6d567911c61b6 100644 (file)
@@ -402,6 +402,7 @@ extern "C" {
 int rgw_umount(struct rgw_fs *rgw_fs)
 {
   RGWLibFS *fs = static_cast<RGWLibFS*>(rgw_fs->fs_private);
+  fs->close();
   delete fs;
   return 0;
 }
@@ -922,6 +923,7 @@ void rgw_readv_rele(struct rgw_uio *uio, uint32_t flags)
 int rgw_readv(struct rgw_fs *rgw_fs,
              struct rgw_file_handle *fh, rgw_uio *uio)
 {
+#if 0 /* XXX */
   CephContext* cct = static_cast<CephContext*>(rgw_fs->rgw);
   RGWLibFS *fs = static_cast<RGWLibFS*>(rgw_fs->fs_private);
   RGWFileHandle* rgw_fh = get_rgwfh(fh);
@@ -930,7 +932,7 @@ int rgw_readv(struct rgw_fs *rgw_fs,
     return -EINVAL;
 
   int rc = 0;
-#if 0 /* XXX */
+
   buffer::list bl;
   RGWGetObjRequest req(cct, fs->get_user(), rgw_fh->bucket_name(),
                      rgw_fh->object_name(), uio->uio_offset, uio->uio_resid,
@@ -964,8 +966,11 @@ int rgw_readv(struct rgw_fs *rgw_fs,
       ++ix;
     }
   }
-#endif
+
   return rc;
+#else
+  return 0;
+#endif
 }
 
 /*