Skip to content

Commit 38720f1

Browse files
committed
tree: remove 'ctrl_get_ana_state()'
This function was a hack to begin with, and as we now have namespace filters it can be removed. Signed-off-by: Hannes Reinecke <[email protected]>
1 parent 75c9ce8 commit 38720f1

3 files changed

Lines changed: 0 additions & 23 deletions

File tree

src/libnvme.map

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LIBNVME_1_0 {
1212
nvme_ctrl_first_ns;
1313
nvme_ctrl_first_path;
1414
nvme_ctrl_get_address;
15-
nvme_ctrl_get_ana_state;
1615
nvme_ctrl_get_dhchap_key;
1716
nvme_ctrl_get_discovery_ctrl;
1817
nvme_ctrl_get_fd;

src/nvme/tree.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -801,19 +801,6 @@ const char *nvme_ctrl_get_host_iface(nvme_ctrl_t c)
801801
return c->cfg.host_iface;
802802
}
803803

804-
const char *nvme_ctrl_get_ana_state(nvme_ctrl_t c, __u32 nsid)
805-
{
806-
if (nsid != NVME_NSID_ALL) {
807-
nvme_path_t p;
808-
809-
nvme_ctrl_for_each_path(c, p) {
810-
if (p->n && p->n->nsid == nsid)
811-
return p->ana_state;
812-
}
813-
}
814-
return NULL;
815-
}
816-
817804
struct nvme_fabrics_config *nvme_ctrl_get_config(nvme_ctrl_t c)
818805
{
819806
return &c->cfg;

src/nvme/tree.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -874,15 +874,6 @@ const char *nvme_ctrl_get_host_traddr(nvme_ctrl_t c);
874874
*/
875875
const char *nvme_ctrl_get_host_iface(nvme_ctrl_t c);
876876

877-
/**
878-
* nvme_ctrl_get_ana_state() - ANA state of a controller path
879-
* @c: Constroller instance
880-
* @nsid: Namespace ID to evaluate
881-
*
882-
* Return: ANA state of the namespace @nsid on controller @c.
883-
*/
884-
const char *nvme_ctrl_get_ana_state(nvme_ctrl_t c, __u32 nsid);
885-
886877
/**
887878
* nvme_ctrl_get_dhchap_key() - Return controller key
888879
* @c: Controller for which the key should be set

0 commit comments

Comments
 (0)