SHA256
1
0
forked from pool/lvm2

Accepting request 138672 from Base:System

- lvm2.spec: merge rules for device-mapper and
  lvm2-clvm packages, so there is only one
  spec file and all packages are built consistently.

OBS-URL: https://build.opensuse.org/request/show/138672
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lvm2?expand=0&rev=47
This commit is contained in:
Stephan Kulow
2012-10-23 17:40:13 +00:00
committed by Git OBS Bridge
parent 56e5ad2fa6
commit f1a960eb91
26 changed files with 306 additions and 1513 deletions

View File

@@ -1,7 +1,9 @@
Index: lib/filters/filter.c
===================================================================
--- lib/filters/filter.c.orig 2011-01-27 08:21:37.000000000 +0800
+++ lib/filters/filter.c 2011-02-15 14:56:43.000000000 +0800
---
lib/filters/filter.c | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
--- LVM2.2.02.98.orig/lib/filters/filter.c
+++ LVM2.2.02.98/lib/filters/filter.c
@@ -13,6 +13,12 @@
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -15,16 +17,16 @@ Index: lib/filters/filter.c
#include "lib.h"
#include "dev-cache.h"
#include "filter.h"
@@ -147,11 +153,18 @@
@@ -111,11 +117,18 @@ static int _passes_lvm_type_device_filte
}
/* Check it's accessible */
- if (!dev_open_flags(dev, O_RDONLY, 1, 1)) {
- if (!dev_open_readonly_quiet(dev)) {
+ if (!dev_open_flags(dev, O_RDONLY|O_NONBLOCK, 1, 1)) {
log_debug("%s: Skipping: open failed", name);
return 0;
}
+ /* Skip cdrom device */
+ #define CDROM_GET_CAPABILITY 0x5331
+ if (ioctl(dev->fd, CDROM_GET_CAPABILITY) >= 0) {