Merge pull request #752 from Ostrokrzew/special_devs
Allow to add special deviced as cores to the cache
This commit is contained in:
commit
1cec062f67
@ -626,7 +626,13 @@ static bool is_dev_link_whitelisted(const char* path)
|
|||||||
{
|
{
|
||||||
regex_t regex;
|
regex_t regex;
|
||||||
int result;
|
int result;
|
||||||
static const char* const whitelist[] = {"/dev/cas[0-9]\\+-[0-9]\\+$"};
|
static const char* const whitelist[] = {
|
||||||
|
"/dev/cas[0-9]\\+-[0-9]\\+$",
|
||||||
|
"/dev/cas[0-9]\\+-[0-9]\\+p[0-9]\\+$",
|
||||||
|
"/dev/ram[0-9]\\+$",
|
||||||
|
"/dev/ram[0-9]\\+p[0-9]\\+$",
|
||||||
|
"/dev/nullb[0-9]\\+$"
|
||||||
|
};
|
||||||
static const unsigned count = ARRAY_SIZE(whitelist);
|
static const unsigned count = ARRAY_SIZE(whitelist);
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user