mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
291ec3b6c0
devices { # first match is final, eg. /dev/ide/cdrom # get's rejected due to the first pattern filter=["r/cdrom/", # don't touch the music ! "a/hd[a-d][0-9]+/", "a/ide/", "a/sd/", "a/md/", "a|loop/[0-9]+|", # accept devfs style loop back "r/loop/", # and reject old style "a/dasd/", "a/dac960/", "a/nbd/", "a/ida/", "a/cciss/", "a/ubd/", "r/.*/"] # reject all others } Alasdair this is ready to roll into the tools now.
19 lines
342 B
C
19 lines
342 B
C
/*
|
|
* Copyright (C) 2001 Sistina Software (UK) Limited.
|
|
*
|
|
* This file is released under the GPL.
|
|
*/
|
|
|
|
#ifndef _LVM_MATCHER_H
|
|
#define _LVM_MATCHER_H
|
|
|
|
#include "pool.h"
|
|
|
|
struct matcher;
|
|
struct matcher *matcher_create(struct pool *mem,
|
|
const char **patterns, int num);
|
|
|
|
int matcher_run(struct matcher *m, const char *begin);
|
|
|
|
#endif
|