dmraid-1.0.0-rc2
Luca Berra
bluca at comedia.it
Tue Aug 3 17:58:11 UTC 2004
hi,
i am testing dmraid 1.0.0-rc2 on Mandrakelinux cooker
i have some issue building it, see the attached patch.
1) le32_to_cpu and le16_to_cpu are protected by an #ifdef __KERNEL__ on
my glibc version, i redefine them in utils.h, since that file does not
exist :)
2) hd_big_geometry has been removed from 2.6
3) better check the fs_type to find sysfs, since the device name can be
an arbitrary string
4) new versions of strip fail to strip read only files, could you avoid
setting the file readonly?
besides that i have some weird behaviour with your makefile
(maybe a make bug on my side, but i never saw it)
if i use make -s
or
make -d
it builds correctly
if i use make without options it continuously loops on the generation of
.d files.
last,
it looks like that when i try to partition my hpt 37x (raid 1) from dos
it creates a partition starting at sector 1 on the physical disks, not
at sector 10, could this be possible?
regards,
L.
--
Luca Berra -- bluca at comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
-------------- next part --------------
--- dmraid/1.0.0-rc2/include/utils.h.mdk 2004-07-24 12:01:26.000000000 +0200
+++ dmraid/1.0.0-rc2/include/utils.h 2004-07-24 12:01:26.000000000 +0200
@@ -0,0 +1,3 @@
+#include <asm/byteorder.h>
+#define le32_to_cpu __le32_to_cpu
+#define le16_to_cpu __le16_to_cpu
--- dmraid/1.0.0-rc2/lib/device/dev-io.h.mdk 2004-07-15 16:10:59.000000000 +0200
+++ dmraid/1.0.0-rc2/lib/device/dev-io.h 2004-07-24 12:01:26.000000000 +0200
@@ -38,7 +38,11 @@
char *path;
char *serial; /* SCSI serial number. */
struct dmraid_dev *rd;
+#ifdef HDIO_GETGEO_BIG
struct hd_big_geometry geometry;
+#else
+ struct hd_geometry geometry;
+#endif
uint64_t sectors;
};
--- dmraid/1.0.0-rc2/lib/device/scan.c.mdk 2004-07-15 21:24:52.000000000 +0200
+++ dmraid/1.0.0-rc2/lib/device/scan.c 2004-07-24 12:03:14.000000000 +0200
@@ -42,7 +42,7 @@
LOG_ERR(0, "Failed to open /etc/mtab");
while ((ent = getmntent(mtab))) {
- if (!strcmp(ent->mnt_fsname, "sysfs")) {
+ if (!strcmp(ent->mnt_type, "sysfs")) {
ret = ent->mnt_dir;
break;
}
--- dmraid/1.0.0-rc2/tools/Makefile.in.mdk 2004-07-24 12:01:26.000000000 +0200
+++ dmraid/1.0.0-rc2/tools/Makefile.in 2004-07-24 12:01:26.000000000 +0200
@@ -59,7 +59,7 @@
install_dmraid_tools: $(TARGETS)
@echo "Installing $(TARGETS) in $(sbindir)"
- $(INSTALL) -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) $(TARGETS) \
+ $(INSTALL) -o $(OWNER) -g $(GROUP) $(STRIP) $(TARGETS) \
$(sbindir)
install: install_dmraid_tools
More information about the Ataraid-list
mailing list