Lines Matching full:vdev
34 * \file vdev.h
36 * Definition of the Vdev class.
56 /*----------------------------------- Vdev -----------------------------------*/
58 * \brief Wrapper class for a vdev's name/value configuration list
59 * simplifying access to commonly used vdev attributes.
61 class Vdev
65 * \brief Instantiate a vdev object for a vdev that is a member
68 * \param pool The pool object containing the vdev with
70 * \param vdevConfig Vdev configuration data.
72 * This method should be used whenever dealing with vdev's
74 * data for a vdev does not contain all of the items found in
75 * the on-disk label. This requires the vdev class to augment
78 Vdev(zpool_handle_t *pool, nvlist_t *vdevConfig);
81 * \brief Instantiate a vdev object for a vdev that is a member
84 * \param poolConfig The pool configuration containing the vdev
86 * \param vdevConfig Vdev configuration data.
88 * This method should be used whenever dealing with vdev's
90 * data for a vdev does not contain all of the items found in
91 * the on-disk label. This requires the vdev class to augment
94 Vdev(nvlist_t *poolConfig, nvlist_t *vdevConfig);
97 * \brief Instantiate a vdev object from a ZFS label stored on
101 * the label information on a leaf vdev.
103 Vdev(nvlist_t *vdevConfig);
108 Vdev();
114 virtual ~Vdev();
118 * \brief Return a list of the vdev's children.
120 std::list<Vdev> Children();
131 Vdev Parent();
132 Vdev RootVdev();
149 extern Vdev NonexistentVdev;
151 //- Vdev Inline Public Methods ------------------------------------------------
152 inline Vdev::~Vdev()
157 Vdev::PoolGUID() const
163 Vdev::GUID() const
169 Vdev::PoolConfig() const
175 Vdev::Config() const
181 Vdev::DoesNotExist() const