Hello,
My patch has been applied in jfsutils-1.1.11, according to the JFS SF
tracker. Unfortunately, there are new issues wrt GNU/Hurd portability.
Here is a new patch :
diff -urp jfsutils-1.1.11.old/fscklog/extract.c
jfsutils-1.1.11/fscklog/extract.c
--- jfsutils-1.1.11.old/fscklog/extract.c 2006-06-05
19:31:40.470000000 +0000
+++ jfsutils-1.1.11/fscklog/extract.c 2008-06-01 18:48:55.950000000 +0000
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <stdint.h>
#include "devices.h"
#include "diskmap.h"
diff -urp jfsutils-1.1.11.old/libfs/fssubs.c jfsutils-1.1.11/libfs/fssubs.c
--- jfsutils-1.1.11.old/libfs/fssubs.c 2005-11-22 20:43:55.000000000 +0000
+++ jfsutils-1.1.11/libfs/fssubs.c 2008-06-01 18:48:30.000000000 +0000
@@ -106,7 +106,11 @@ int Is_Device_Mounted(char *Device_Name)
/* Attempt to open /etc/mtab for access.
*/
if ((Mount_Records = setmntent(MOUNTED, "r")) == NULL) {
/* Unable to access list of mounted devices in
/etc/mtab! */
+#ifndef __GNU__
return MSG_JFS_MNT_LIST_ERROR;
+#else /* The GNU Hurd is unable to provide a list of mounted devices; so
don't check. */
+ return 0;
+#endif
}
}
The first part is necessary because fscklog/extract.c uses
int64_t/int32_t, which are defined in stdint.h. The second part prevents
fsck from checking if the device is mounted - as GNU/Hurd does not have
any way to know that (no mtab or /proc/mounts), this is the only way to
make it work on GNU/Hurd. That's how e2fsprogs does it, too.
Thanks,
--
Manuel Menal
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]