1
0
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:
Alasdair Kergon 2011-01-27 00:21:37 +00:00
parent 23fb1fbd48
commit a1d4ec1d6e
2 changed files with 2 additions and 1 deletions

View File

@ -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
===================================

View File

@ -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;
}