diff -u dmraid-1.0.0.rc16/debian/changelog dmraid-1.0.0.rc16/debian/changelog --- dmraid-1.0.0.rc16/debian/changelog +++ dmraid-1.0.0.rc16/debian/changelog @@ -1,3 +1,9 @@ +dmraid (1.0.0.rc16-4.2ubuntu4) xenial; urgency=low + + * Do not skip removable devices (LP: #1611277) + + -- Stefan Bader Thu, 11 Aug 2016 14:26:45 +0200 + dmraid (1.0.0.rc16-4.2ubuntu3) trusty; urgency=medium * Correct dmraid fallback imsm assembly logic. diff -u dmraid-1.0.0.rc16/debian/patches/series dmraid-1.0.0.rc16/debian/patches/series --- dmraid-1.0.0.rc16/debian/patches/series +++ dmraid-1.0.0.rc16/debian/patches/series @@ -19,0 +20 @@ +28_do-not-skip-removable-devices.patch only in patch2: unchanged: --- dmraid-1.0.0.rc16.orig/debian/patches/28_do-not-skip-removable-devices.patch +++ dmraid-1.0.0.rc16/debian/patches/28_do-not-skip-removable-devices.patch @@ -0,0 +1,31 @@ +Description: Do not skip removable devices on scan + Disks on AHCI and RAID mode controllers which are hot-plug capable always + should have been considered removable. Newer kernels (~3.17 onwards) are + getting more correct in setting this right. However that makes dmraid as + it is now ignoring those disks. +Ubuntu-Bug: https://bugs.launchpad.net/bugs/1611277 +Author: Stefan Bader +Forwarded: no + +Index: dmraid-1.0.0.rc16/1.0.0.rc16/lib/device/scan.c +=================================================================== +--- dmraid-1.0.0.rc16.orig/1.0.0.rc16/lib/device/scan.c 2009-09-16 10:55:23.000000000 +0200 ++++ dmraid-1.0.0.rc16/1.0.0.rc16/lib/device/scan.c 2016-08-11 14:17:43.415063877 +0200 +@@ -225,7 +225,6 @@ out: + + /* + * Read the size in sectors from the sysfs "size" file. +- * Avoid access to removable devices. + */ + static int + sysfs_get_size(struct lib_context *lc, struct dev_info *di, +@@ -275,8 +274,7 @@ get_size(struct lib_context *lc, char *p + goto out; + } + +- if (removable_device(lc, dev_path) || +- !(di = alloc_dev_info(lc, dev_path)) || ++ if (!(di = alloc_dev_info(lc, dev_path)) || + (sysfs && !sysfs_get_size(lc, di, path, name)) || + (fd = open(dev_path, O_RDONLY)) == -1) + goto out;