mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Use O_DIRECT when reading block devices.
This commit is contained in:
parent
23fb1fbd48
commit
a1d4ec1d6e
@ -1,5 +1,6 @@
|
||||
Version 2.02.83 -
|
||||
===================================
|
||||
Always use O_DIRECT when opening block devices to check for partitioning.
|
||||
|
||||
Version 2.02.82 - 24th January 2011
|
||||
===================================
|
||||
|
@ -147,7 +147,7 @@ static int _passes_lvm_type_device_filter(struct dev_filter *f __attribute__((un
|
||||
}
|
||||
|
||||
/* Check it's accessible */
|
||||
if (!dev_open_flags(dev, O_RDONLY, 0, 1)) {
|
||||
if (!dev_open_flags(dev, O_RDONLY, 1, 1)) {
|
||||
log_debug("%s: Skipping: open failed", name);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user