def search(name):
    name = str(name)
    all_ports = list_all()
    if '/' in name:
        if name.count('/') > 1:
            raise SaltInvocationError(
                'Invalid search string \'{0}\'. Port names cannot have more '
                'than one slash'
            )
        else:
            return fnmatch.filter(all_ports, name)
    else:
        ret = []
        for port in all_ports:
            if fnmatch.fnmatch(port.rsplit('/')[-1], name):
                ret.append(port)
        return ret
Unounts the volume from the filesystem.
dataset/ETHPy150Open saltstack/salt/salt/modules/freebsdports.py/search--crossover with--dataset/ETHPy150Open ralphje/imagemounter/imagemounter/volume.py/Volume.unmount