]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/blk/pmem/PMEMDevice.h
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / blk / pmem / PMEMDevice.h
index 4613d7dbc57bd5be38618147ac868e920080112a..af42eb65630fbd0f7ee73454a15acdb5ad35fa08 100644 (file)
@@ -30,6 +30,7 @@ class PMEMDevice : public BlockDevice {
   int fd;
   char *addr; //the address of mmap
   std::string path;
+  bool devdax_device = false;
 
   ceph::mutex debug_lock = ceph::make_mutex("PMEMDevice::debug_lock");
   interval_set<uint64_t> debug_inflight;
@@ -40,7 +41,7 @@ class PMEMDevice : public BlockDevice {
 public:
   PMEMDevice(CephContext *cct, aio_callback_t cb, void *cbpriv);
 
-
+  bool supported_bdev_label() override { return !devdax_device; }
   void aio_submit(IOContext *ioc) override;
 
   int collect_metadata(const std::string& prefix, std::map<std::string,std::string> *pm) const override;