mirror of
git://sourceware.org/git/lvm2.git
synced 2025-08-03 08:22:00 +03:00
o use dev_name(dev) to get the name of a device, this operation is cheap
since it just get's the first alias.
This commit is contained in:
@ -151,7 +151,7 @@ static int _accept_p(struct dev_filter *f, struct device *dev)
|
||||
int m;
|
||||
struct rfilter *rf = (struct rfilter *) f->private;
|
||||
|
||||
m = matcher_run(rf->engine, dev->name);
|
||||
m = matcher_run(rf->engine, dev_name(dev));
|
||||
|
||||
/*
|
||||
* pass everything that doesn't match,
|
||||
|
Reference in New Issue
Block a user