]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - dev_tunnelled.h
import smartmontools 7.0
[mirror_smartmontools-debian.git] / dev_tunnelled.h
index 23ac55d2161d9f58489c303afb3b0402a1fa0eb1..d6388bbd767b1b316e7c5a5207443cdeb1408a82 100644 (file)
@@ -5,20 +5,13 @@
  *
  * Copyright (C) 2008 Christian Franke
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
- * any later version.
- *
- * You should have received a copy of the GNU General Public License
- * (for example COPYING); If not, see <http://www.gnu.org/licenses/>.
- *
+ * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #ifndef DEV_TUNNELLED_H
 #define DEV_TUNNELLED_H
 
-#define DEV_TUNNELLED_H_CVSID "$Id: dev_tunnelled.h 4431 2017-08-08 19:38:15Z chrfranke $"
+#define DEV_TUNNELLED_H_CVSID "$Id: dev_tunnelled.h 4848 2018-12-05 18:30:46Z chrfranke $"
 
 #include "dev_interface.h"
 
@@ -71,6 +64,14 @@ protected:
       m_tunnel_dev(tunnel_dev)
     { }
 
+  // For nvme_device
+  explicit tunnelled_device(tunnel_device_type * tunnel_dev, unsigned nsid)
+    : smart_device(smart_device::never_called),
+      BaseDev(nsid),
+      tunnelled_device_base(tunnel_dev),
+      m_tunnel_dev(tunnel_dev)
+    { }
+
 public:
   virtual void release(const smart_device * dev)
     {