HPFS? [PATCH]

Eric Anderson anderson at freebsd.org
Tue Jul 31 03:57:41 UTC 2007


Hi,

Should we make hpfs actually compile, and add it back to the build?  Or, 
optionally, remove it from the tree?

I've attached a patch that makes it compile, adds it to the build, 
updates the man page, etc.  The modules compiles and loads, and seems 
ok, but I have no hpfs file system to test it against.

Can someone test HPFS against a real file system, or at least validate 
this patch actually works for them too?  It probably needs other work too.

Eric

-------------- next part --------------
Index: sbin/Makefile
===================================================================
RCS file: /alt/ncvs/src/sbin/Makefile,v
retrieving revision 1.167
diff -u -r1.167 Makefile
--- sbin/Makefile	25 Jun 2007 05:06:53 -0000	1.167
+++ sbin/Makefile	13 Jul 2007 02:30:40 -0000
@@ -54,6 +54,7 @@
 	mksnap_ffs \
 	mount \
 	mount_cd9660 \
+	mount_hpfs \
 	mount_msdosfs \
 	mount_nfs \
 	mount_ntfs \
Index: sbin/mount_hpfs/Makefile
===================================================================
RCS file: /alt/ncvs/src/sbin/mount_hpfs/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- sbin/mount_hpfs/Makefile	23 Feb 2004 20:13:53 -0000	1.6
+++ sbin/mount_hpfs/Makefile	13 Jul 2007 02:54:32 -0000
@@ -5,10 +5,12 @@
 PROG=	mount_hpfs
 SRCS=	mount_hpfs.c getmntopts.c
 MAN=	mount_hpfs.8
+DPADD=	${LIBKICONV}
+LDADD=	-lkiconv
 
 MOUNT=	${.CURDIR}/../mount
-CFLAGS+=-I${MOUNT} -DHPFS
-WARNS?=	0
+CFLAGS+=-I${MOUNT} -I${.CURDIR}/../../ -DHPFS
+WARNS?=	6
 
 .PATH:	${MOUNT}
 
Index: sbin/mount_hpfs/mount_hpfs.8
===================================================================
RCS file: /alt/ncvs/src/sbin/mount_hpfs/mount_hpfs.8,v
retrieving revision 1.11
diff -u -r1.11 mount_hpfs.8
--- sbin/mount_hpfs/mount_hpfs.8	27 Dec 2002 12:15:32 -0000	1.11
+++ sbin/mount_hpfs/mount_hpfs.8	13 Jul 2007 02:30:01 -0000
@@ -76,9 +76,9 @@
 in the file system.
 .El
 .Sh EXAMPLES
-To mount an hpfs volume located in /dev/wd1s1:
+To mount an hpfs volume located in /dev/ad1s1:
 .Bd -literal -offset indent
-# mount_hpfs /dev/wd1s1 /mnt
+# mount_hpfs /dev/ad1s1 /mnt
 .Ed
 .Sh WRITING
 There is limited writing ability and it is not well-tested.
Index: sbin/mount_hpfs/mount_hpfs.c
===================================================================
RCS file: /alt/ncvs/src/sbin/mount_hpfs/mount_hpfs.c,v
retrieving revision 1.6
diff -u -r1.6 mount_hpfs.c
--- sbin/mount_hpfs/mount_hpfs.c	10 Jun 2005 09:51:41 -0000	1.6
+++ sbin/mount_hpfs/mount_hpfs.c	13 Jul 2007 02:54:50 -0000
@@ -35,7 +35,7 @@
 #include <sys/param.h>
 #include <sys/mount.h>
 #include <sys/stat.h>
-#include <fs/hpfs/hpfsmount.h>
+#include <sys/fs/hpfs/hpfsmount.h>
 #include <ctype.h>
 #include <err.h>
 #include <grp.h>
Index: sys/modules/Makefile
===================================================================
RCS file: /alt/ncvs/src/sys/modules/Makefile,v
retrieving revision 1.535
diff -u -r1.535 Makefile
--- sys/modules/Makefile	30 Jun 2007 04:35:34 -0000	1.535
+++ sys/modules/Makefile	13 Jul 2007 02:31:24 -0000
@@ -93,6 +93,7 @@
 	${_hfa} \
 	hifn \
 	hme \
+	hpfs \
 	${_hptiop} \
 	${_hptmv} \
 	hwpmc \


More information about the freebsd-fs mailing list