Back to index

lshw  02.16
Functions
volumes.h File Reference
#include "hw.h"
#include "blockio.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool scan_volume (hwNode &n, source &s)

Function Documentation

bool scan_volume ( hwNode n,
source s 
)

Definition at line 1063 of file volumes.cc.

{
  int i = 0;

  while(fs_types[i].id)
  {
    if(fs_types[i].detect && fs_types[i].detect(n, s))
    {
      n.addCapability(fs_types[i].id, fs_types[i].description);
      if(n.getConfig("filesystem") == "")
        n.setConfig("filesystem", fs_types[i].id);
      n.addCapability("initialized", _("initialized volume"));
      if(n.getDescription()=="")
        n.setDescription(string(fs_types[i].description) + " "+string(_("volume")));
      return true;
    }
    i++;
  }

  return scan_lvm(n,s);
}

Here is the call graph for this function:

Here is the caller graph for this function: