[PATCH] Fix Linux RAID detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After upgrading to udev 128, the devices of my RAID array stopped being
detected as such by vol_id.  The reason is that libvolume_id lacks large
file support, so it couldn't seek to the end of my 500GB devices to find
the RAID magic.  This patch simply #includes config.h in util.c so that
the proper macros are defined, bringing in a 64-bit lseek().  If any
other backends apart from Linux RAID require a volume_id_get_buffer()
that has 64-bit support, they will obviously be fixed by this as well.

diff -ru udev-128/extras/volume_id/lib/util.c udev-128.new/extras/volume_id/lib/util.c
--- udev-128/extras/volume_id/lib/util.c	2008-09-09 17:37:38.000000000 -0700
+++ udev-128.new/extras/volume_id/lib/util.c	2008-09-30 15:55:19.402775372 -0700
@@ -21,6 +21,7 @@
 #define _GNU_SOURCE 1
 #endif
 
+#include <config.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux