Date: Mon, 30 Jul 2007 22:57:34 -0500 From: Eric Anderson <anderson@freebsd.org> To: freebsd-fs@freebsd.org Subject: HPFS? [PATCH] Message-ID: <46AEB32E.6050902@freebsd.org>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------090105070400010401040607
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
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
--------------090105070400010401040607
Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="hpfs.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="hpfs.patch"
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 \
--------------090105070400010401040607--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46AEB32E.6050902>
